Complete PromQL toolkit with generation and validation capabilities
94
94%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
A developer is building a Grafana dashboard for an e-commerce platform. The platform runs 40 microservices, each exposing HTTP metrics. The developer submitted the following query to show total request rates.
sum(rate(http_requests_total[5m]))"I want a single panel showing the overall request rate across all our services. The platform has about 40 microservices and the metric has labels: job, instance, method, path, status_code."
Produce a validation report cardinality-report.md that:
path and
status_code labels across 40 services).sum() aggregation means the
result is a single scalar, so query load is high but dashboard performance is
acceptable IF the cluster can handle the fan-out).Produce a single file cardinality-report.md with sections: Cardinality Analysis,
When This Pattern Is Acceptable, Alternative Queries, Recording Rule Recommendation.