Grafana v10.3.1, cAdvisor, Prometheus. All running with docker-compose.
I want to monitor the status of the containers on my system (running, restarted, stopped, etc.). I’d like to create a view of the status for the last few hours. (Status History can work)
I’m trying to use:
container_last_seen{name=~".+"}
and:
(container_tasks_state{name=~".+", state="running"} or vector(-1)) + 1
Both are providing some indication, such as returning 0 when there is a running machine but null when nothing is running. However, I’m trying to get the actual status. For example, a restarted machine should appear in yellow.