Docker Log Based Metrics
The Docker input plugin you collect Docker container metrics, including memory usage and CPU consumption.
Configuration parameters
The plugin supports the following configuration parameters:
Interval_Sec
Polling interval in seconds
1
Include
A space-separated list of containers to include.
none
Exclude
A space-separated list of containers to exclude.
none
path.containers
Used to specify the container directory if Docker is configured with a custom data-root
directory.
/var/lib/docker/containers
If you set neither Include
nor Exclude
, the plugin will try to get metrics from all running containers.
Configuration file
The following example configuration collects metrics from two docker instances (6bab19c3a0f9
and 14159be4ca2c
).
This configuration will produce records like the following:
Last updated
Was this helpful?