cAdvisor has long been a favorite monitoring tool of mine. I’m using Docker Compose for local testing and have begun including a
cAdvisor in my
# - --prometheus_endpoint="/metrics" # Default
- "/var/snap/docker/current:/var/lib/docker:ro" #- "/var/lib/docker/:/var/lib/docker:ro"
I’d not realized until recently, that
cAdvisor also surfaces a Prometheus metrics endpoint and so, if you do follow this path and you’re also using Prometheus, don’t forget to add
cAdvisor to your Prometheus targets.
The primary advantage to this is being able to monitor services (containers) in the aggregate:
As well as for specific services (containers):