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

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code