Skip to content

Healthy status not taken into account in the containers count #50

Description

@nicolargo

Glances 4.5 introduces a new status for the containers: 'healthy' (see nicolargo/glances#3402).

For the moment, Glances-API only takes into account 'running':

active_containers = [
container
for container in containers_data
# "status" since Glance v4, "Status" in v3 and earlier
if container.get("status") == "running"
or container.get("Status") == "running"
]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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