Docker daemon metrics
809

Created 5/7/2024
Updated 5/19/2024
Revision 1
Categories
Docker
Grafana Version >=10.3.1
Datasources
Prometheus

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:
{
  "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

Get Dashboard
Download
Copy to Clipboard
Source Grafana.com

Used Metrics 7

  • engine_daemon_engine_info

  • engine_daemon_engine_cpus_cpus

  • engine_daemon_container_states_containers

  • engine_daemon_container_actions_seconds_count

  • engine_daemon_engine_memory_bytes

  • engine_daemon_network_actions_seconds_count

  • builder_builds_triggered_total