Docker daemon metrics

Docker daemon (engine) metrics

Docker daemon metrics screenshot 1

Collect Docker metrics with Prometheus

Currently, you can only monitor Docker itself. You can’t currently monitor your application using the Docker target.

Configure the daemon

To configure the Docker daemon as a Prometheus target, you need to specify the metrics-address in the daemon.json configuration file. This daemon expects the file to be located at one of the following locations by default. If the file doesn’t exist, create it.

  • Linux: /etc/docker/daemon.json
  • Windows Server: C:\ProgramData\docker\config\daemon.json
  • Docker Desktop: Open the Docker Desktop settings and select Docker Engine to edit the file. Add the following configuration:
json
{
  "metrics-addr": "127.0.0.1:9323"
}

Save the file, or in the case of Docker Desktop for Mac or Docker Desktop for Windows, save the configuration. Restart Docker.

Docker now exposes Prometheus-compatible metrics on port 9323 on the loopback interface. arsalanse.ir

Revisions
RevisionDescriptionCreated
Docker

Docker

by Grafana Labs
Grafana Labs solution

Easily monitor Docker with Grafana Cloud's out-of-the-box monitoring solution.

Learn more

Get this dashboard

Import the dashboard template

or

Download JSON

Datasource
Dependencies