Docker Log Based Metrics
The docker input plugin allows you to collect Docker container metrics such as memory usage and CPU consumption.
Configuration Parameters
The plugin supports the following configuration parameters:
Key | Description | Default |
---|---|---|
Interval_Sec | Polling interval in seconds | 1 |
Include | A space-separated list of containers to include | |
Exclude | A space-separated list of containers to exclude | |
Threaded | Indicates whether to run this input in its own thread. |
|
path.containers | Used to specify the container directory if Docker is configured with a custom "data-root" directory. |
|
If you set neither Include
nor Exclude
, the plugin will try to get metrics from all the running containers.
Configuration File
Here is an example configuration that collects metrics from two docker instances (6bab19c3a0f9
and 14159be4ca2c
).
This configuration will produce records like below.
Last updated