Description
Component(s)
No response
What happened?
Description
I am trying to keep certain metrics for kube-state-metrics , we started using otel collector target allocator recently instead of kube prometheus stack as its working with same template...
Steps to Reproduce
metricRelabelings:
- action: labeldrop
regex: '(endpoint|instance|location|prometheus|prometheus_replica|service|uid)'
- sourceLabels: [name]
action: keep
regex: '(kube_pod_container_resource_requests|kube_pod_container_status_restarts_total|kube_pod_status_phase|kube_pod_info)'
Expected Result
we need only this metrics and labels
Actual Result
instead , its not able to scrape them...
please let us know if the metrics setup is not done properly
Collector version
ghcr.io/open-telemetry/opentelemetry-operator/target-allocator:0.120.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
Additional context
No response