Filter OTEL configuration metrics
Configure the OTEL collector to filter Snaplex node metrics.
You can filter Snaplex node metrics so that the collector only reports on a subset. Refer to Node metric reference for a list of all node metrics.
- Open the otel/config.yaml file.
- In the
processors
element, add the following:
For example, to include CPU, memory, and disk metrics:processors: filter: metrics: include: match_type: regexp metric_names: <plexnode.name>
processors: filter: metrics: include: match_type: regexp metric_names: - plexnode_cpu.* - plexnode.mem.* - plexnode.disk.*
- Add filter to the
service: pipelines: metrics: receivers: [otlp] processors: [batch,attributes,filter] # added filter exporters: [otlphttp, logging]
element: - Copy the config.yaml file to all nodes.
- On each node:
- Run
docker ps
to get the OTEL container ID. - Restart the OTEL service:
docker restart <container-id>
- Run
The OTEL collector will only report on the specified metrics.