-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Filter processor metrics are dropped randomly #36900
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Pinging code owners for processor/filter: @TylerHelmuth @boostchicken. See Adding Labels via Comments if you do not have permissions to add labels yourself. For example, comment '/label priority:p2 -needs-triaged' to set the priority and remove the needs-triaged label. |
Hi @afreyermuth98! Quick question to clarify: Is it consistently the same metric that fails to be filtered (e.g. |
Hey @bacherfl . Yes always the same, i've reduced to 2 metrics with one that works and the other that never works. It's ununderstanble really.
I kept only the metrics part of the config and kept the real names of the metrics that work and does not work.
And it failed the same way on the same metrics that didnt worked on the filter processor ... |
Thanks for the additional information @afreyermuth98 - can you try to remove the Therefore, please try to change the filter expressions to the following:
|
It worked thanks a lot @bacherfl !!! 😍 |
That's good news, glad to hear it worked!
On the collector side, if you would like to know the metric type, you can use the
This will print all received metrics to the console, and there you can inspect the type of a metric via the
I will close this issue as the filter is working as expected now, but if yu have any further questions, feel free to reach out! |
Hello @bacherfl ! |
Component(s)
internal/filter
What happened?
Description
I'm using filter processor to drop some metrics inside my otel configuration. And some of them are not dropped without any reason
Steps to Reproduce
Use this filter in your otel config
Expected Result
Not be able to query METRIC1, METRIC2 and all the others
Actual Result
METRIC1 is not here for example as expected but METRICN is here
Collector version
0.111.0
Environment information
Environment
OS: Amazon Linux 2, ARM64
Container Runtime: containerd://1.7.23
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: