← Back to tasks
Metrics promqldiscoverymetricslabels

promql-discover-http-metric

View in GitHub

Instruction

I'm writing a traffic-by-service chart for **user-service**, **order-service**, and **payment-service**. In this environment those three backends are the ones that emit `http_requests_total` for API traffic - webapp and api-gateway don't carry that counter on the scrape. What metric and label should I use to break volume down by service here? Once you've chosen them, run an aggregate requests-per-second query in Prometheus for all HTTP traffic on that metric (scoped to those backends) as of the current time shown above, and include that numeric total (req/s) in your answer so I can sanity-check chart scale.