Collect Docker metrics with Prometheus
doc:
https://docs.docker.com/config/daemon/prometheus/
Configure /etc/docker/daemon.json
:
{
"metrics-addr" : "127.0.0.1:9323",
"experimental" : true
}
Prometheus config:
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'docker'
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ['localhost:9323']
grafana id:
https://grafana.com/grafana/dashboards/1229