-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
metric_relabel_configs drop action doesn't work #35720
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Can you fix the formatting of the issue above? We pass through the configuration you provide to prometheus server code without modification, so it would be strange for behavior to differ between the Prometheus server and the collector. Can you reproduce the issue with the prometheus server? |
Sorry new to submitting issues here - I think I cleaned up formatting - any other issues with submission? trying on astronomy shop - will post results |
There is a bunch of yaml above that isn't wrapped in a yaml markdown block, and is hard to read |
Any updates? |
I don't see anything obviously wrong with the config, but I suspect the regex isn't working properly. Can you try
The only other thing that I would try is removing the unnecessary |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Component(s)
receiver/prometheus
What happened?
Description
I have a prometheus configured like this:
Namespace keep and drop rules seem to work fine but the metric_relabel_configs do not. I tested same on grafana agent and it works fine there.
Steps to Reproduce
Deployed this pod on my cluster which emits metrics as expected -
Expected Result
For this configuration I would expect this metrics to not be scraped - http_request_duration_seconds_bucket
Actual Result
It gets scraped and sent.
Collector version
0.111.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
Using latest contrib image on eks
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: