OpenTelemetry: How can I count requests for each downstream? #2266
-
Hello, I followed the sample in order to expose forwarder metrics to Prometheus. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The ReverseProxy.Metrics.Sample project shows how you can correlate those E.g. in .NET 8 will include more HttpClient metrics out of the box, so there should be less of a need to expose some of these metrics manually. |
Beta Was this translation helpful? Give feedback.
The ReverseProxy.Metrics.Sample project shows how you can correlate those
IForwarderTelemetryConsumer
(and other) events back to the route/cluster/destination.E.g. in
ForwarderTelemetryConsumer.OnForwarderStart
, you can look atmetrics.DestinationId
..NET 8 will include more HttpClient metrics out of the box, so there should be less of a need to expose some of these metrics manually.