You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docker exposes metrics in Prometheus format. This section describes the available metrics and their meaning.
156
+
157
+
> [!WARNING]
158
+
>
159
+
> The available metrics and the names of those metrics are in active
160
+
> development and may change at any time.
161
+
162
+
### Metric types
163
+
164
+
Docker metrics use the following Prometheus metric types:
165
+
166
+
-**Counter**: A cumulative metric that only increases (or resets to zero on restart). Use counters for values like total number of events or requests.
167
+
-**Gauge**: A metric that can go up or down. Use gauges for values like current memory usage or number of running containers.
168
+
-**Histogram**: A metric that samples observations and counts them in configurable buckets. Histograms expose multiple time series:
169
+
-`<basename>_bucket{le="<upper_bound>"}`: Cumulative counters for observation buckets
170
+
-`<basename>_sum`: Total sum of all observed values
171
+
-`<basename>_count`: Count of events that have been observed
172
+
173
+
For histogram metrics, you can calculate averages, percentiles, and rates. For example, to calculate the average duration: `rate(<basename>_sum[5m]) / rate(<basename>_count[5m])`.
174
+
175
+
### Engine metrics
176
+
177
+
These metrics provide information about the Docker Engine's operation and resource usage.
|`engine_daemon_container_actions_seconds`| Histogram | Time taken to process container operations (start, stop, create, etc.). Labels indicate the action type. |
182
+
|`engine_daemon_container_states_containers`| Gauge | Number of containers currently in each state (running, paused, stopped). Labels indicate the state. |
183
+
|`engine_daemon_engine_cpus_cpus`| Gauge | Number of CPUs available on the host system. |
184
+
|`engine_daemon_engine_info`| Gauge | Static information about the Docker Engine. Always set to 1. Labels provide version, architecture, and other engine details. |
185
+
|`engine_daemon_engine_memory_bytes`| Gauge | Total memory available on the host system in bytes. |
186
+
|`engine_daemon_events_subscribers_total`| Gauge | Number of current subscribers to Docker events. |
187
+
|`engine_daemon_events_total`| Counter | Total number of events processed by the daemon. Labels indicate the event action and type. |
188
+
|`engine_daemon_health_checks_failed_total`| Counter | Total number of health checks that have failed. |
189
+
|`engine_daemon_health_checks_total`| Counter | Total number of health checks performed. |
190
+
|`engine_daemon_host_info_functions_seconds`| Histogram | Time taken to gather host information. |
191
+
|`engine_daemon_network_actions_seconds`| Histogram | Time taken to process network operations (create, connect, disconnect, etc.). Labels indicate the action type. |
192
+
193
+
### Swarm metrics
194
+
195
+
These metrics are only available when the Docker Engine is running in Swarm mode.
0 commit comments