Configuring which metrics to monitor
You can customize a Monitoring agent and specify which metrics to include and which ones to filter out.
Filtering custom metrics in a Monitoring agent
To filter custom metrics, you must customize the metrics_filter section in the agent configuration file. You can specify which metrics to include and which ones to filter out by configuring the include and exclude filtering parameters.
For more information on how to configure the Monitoring agent, see:
- Linux Monitoring agent: Including and excluding metrics
- Kubernetes Monitoring agent: Including and excluding metrics
- Docker container Monitoring agent: Including and excluding metrics
Logging into a file what metrics are included or excluded
You can log the custom metrics that are collected by an agent. You must set the metrics_excess_log to true in the log section will enable logging of the custom metrics that are included or excluded.
For more information on how to configure the Monitoring agent to report which metrics are collected, see:
- Linux Monitoring agent: Logging into a file what metrics are included or excluded
- Kubernetes Monitoring agent: Logging into a file what metrics are included or excluded
- Docker container Monitoring agent: Logging into a file what metrics are included or excluded