-
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
Failed to discard traces and metrics using the filterprocessor #36780
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hi @ixiaoyi93! I tried to reproduce the issue but so far it seems like the filtering is working as expected. In your config I see the you have two |
Thank you very much for your reply! I tried through your suggestions and if I change any of the following configurations, I will have problems. service:
extensions: [health_check]
telemetry:
logs:
level: "debug"
metrics:
address: "0.0.0.0:8888"
pipelines:
traces:
receivers: [otlp]
processors: [filter, memory_limiter, batch]
exporters: [otlp, spanmetrics]
metrics:
receivers: [otlp, prometheus]
processors: [memory_limiter, batch]
exporters: [prometheus]
metrics/spanmetrics:
receivers: [spanmetrics]
processors: [memory_limiter, batch]
exporters: [prometheus] For example, if I remove My scenario is to remove some access about monitoring checks, such as URLs like |
Thanks, I've solved it. |
Thank you for the update @ixiaoyi93! Glad to hear it's working - In this case I will close this issue now, but if there are any further questions, feel free to reopen or create a new issue. Just out of curiosity - what was the solution in this case? This may be of help for others who run into the same problem |
Component(s)
processor/filter
What happened?
Description
The
http.route=/xxx/health
related links are discarded by the filtering processor, and the links are pipelined to be converted to Prometheus-supported metrics viaspanmetrics
, but it is still possible to see thehttp_server_request_count
in Prometheus. duration_seconds_countmetric for the
http.route=/xxx/health` tag.Steps to Reproduce
Expected Result
In Prometheus, http_server_request_duration_seconds_count{http_route=~"/xxx/health"} returns 0.
Actual Result
continue to grow.
Collector version
v0.114.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: