In the default metrics exported with app.usehttpmetrics(), certain metrics, such as http_requests_received_total will have scraped data that only contain ''code' and 'method' labels which I see is defined here in HttpRequestLabelNames.cs <https://github.com/prometheus-net/prometheus-net/blob/38d45fa0a102e9afc76f031675aa0719d4f063d1/Prometheus.AspNetCore/HttpMetrics/HttpRequestLabelNames.cs>. I'm trying to replicate the same thing with custom middleware that records the response body content length. But when requests with bad query params return 404 responses there is no controller, endpoint, or action fields in HttpContext and I can't use my custom counters with those label names specified. How do you deal with dynamic label names without having to create separate metrics counters?
-- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/1710cbfd-d2ed-4c12-8697-3309a56efb16n%40googlegroups.com.

