A Grafana panel and the Prometheus UI show different values for the same query
IntermediateTroubleshootingPromQL and recording rules
Answer
Likely causes → Different step: Grafana computes step from the panel width and Min interval, which changes how rate() windows align; or Grafana is querying a different data source / Thanos with downsampling.
Diagnose → In Grafana Query inspector check the actual step, start, end, and the data source URL.
Fix → Use $__rate_interval, set Min interval to the scrape interval, and confirm the data source.
Prevent → Document data sources clearly in dashboard descriptions.
More on PromQL and recording rules
A PromQL query in the UI returns `Empty query result` for a metric you can see on `/metrics`Beginner`rate(http_requests_total[1m])` returns nothing but `http_requests_total` has dataBeginner`rate()` applied to a gauge shows huge spikesBeginnerBinary operation fails: `many-to-many matching not allowed: matching labels must be unique on one side`Advanced`found duplicate series for the match group {pod="api-1"} on the right hand-side of the operation`IntermediateError ratio query returns no data during quiet hoursIntermediate