Why is /metrics showing up in my dashboard? #1875
Unanswered
leandrobattochio
asked this question in
Q&A
Replies: 3 comments 3 replies
-
@reyang Is there a way to opt requests out of telemetry exporting? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Well, so I just got a workaround. By editing Prometheus.yml file, add the following config in the target: `
` And there you go, endpoint is gone from metrics. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am also trying to avoid to display from the Aspire dashboard the Prometheus requests over Suggestions?
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I just added OpenTelemetry to my API, configured prometheus and grafana and when using the .NET Grafana dashboards I can see that calls to /metrics are polluting all my charts.
I ended up editing the dashboard json to exclude all routes that contained "/metrics". Why is that endpoint showing up in the dashboard? It does not make sense to me. I don't care about that endpoint. Is there a way to configure it so it won't even show in the data prometheus gather or I really have to filter the dashboard?
Maybe I configured the OpenTelemetry wrong in my API?
Beta Was this translation helpful? Give feedback.
All reactions