Skip to content

Metric shows exit code 137 when the exit code is actually 0 #6

@cherbst

Description

@cherbst

I experience a lot of alerts regarding the exit code 137 when services are re-deployed. When using docker inspect ... using the container name in container_attributes_name the output shows an exit code of 0 like here:

[
    {
        "Id": "38be06a7263e4b06d9f38186f7425e8ad9ed3df77c7c2973f79fc02979cee3ca",
        "Created": "2025-02-26T07:24:38.142125498Z",
        "Path": "docker-entrypoint.sh",
        "Args": [
            "apache2-foreground"
        ],
        "State": {
            "Status": "exited",
            "Running": false,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 0,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2025-02-26T07:24:45.565705089Z",
            "FinishedAt": "2025-02-26T10:03:00.267463824Z"
        },
 ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions