My original goal was to include only metrics with the label namespace starting with a given string. Since this did not work i tried filtering with a static string, which also gave me problems.
The original config should include only metrics/timeseries with a namespace label starting with "graf".
The additional filters i have tried (see configuration section) should exclude timeseries with a namespace label set to "grafana".
Actual Result
The original config result also includes metrics/timeseries with a namespace label not starting with "graf".
The additional filters result includes timeseries with a namespace label set to "grafana".
# Original config
k logs -l "app.kubernetes.io/instance=tenant" -n otel-col | grep -v namespace=grafana
kube_daemonset_status_number_available{daemonset=kube-proxy,namespace=kube-system} 1
# Additional filter processors
k logs -l "app.kubernetes.io/instance=tenant" -n otel-col | grep namespace=grafana
kube_pod_container_status_running{container=grafana,namespace=grafana,pod=grafana-684d8b87db-7zklg,uid=bf6ffb23-746b-476b-8e95-fd6a26da572a} 1
Additional context
The Include/Exclude filter config featuring regex examples was removed from the readme. While using it there was no configuration error nor warning message. Is this still supported? If not what is the current way to filter metric labels/attributes via regex?
Component(s)
processor/filter
What happened?
Description
My original goal was to include only metrics with the label namespace starting with a given string. Since this did not work i tried filtering with a static string, which also gave me problems.
Steps to Reproduce
kind create cluster install mimir (chart default values) install kube-state-metrics exporter (chart default values)
Expected Result
The original config should include only metrics/timeseries with a namespace label starting with "graf". The additional filters i have tried (see configuration section) should exclude timeseries with a namespace label set to "grafana".
Actual Result
The original config result also includes metrics/timeseries with a namespace label not starting with "graf". The additional filters result includes timeseries with a namespace label set to "grafana".
Collector version
v0.111.0
Environment information
Environment
OS: macOS 14.0 (23A344)
OpenTelemetry Collector configuration
Log output
Additional context
The Include/Exclude filter config featuring regex examples was removed from the readme. While using it there was no configuration error nor warning message. Is this still supported? If not what is the current way to filter metric labels/attributes via regex?
Thanks in Advance! :)