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
rate() Misuse on a Gauge MetricA developer submitted the following PromQL query for a Grafana dashboard panel intended
to show the current memory usage of a service in megabytes. The metric
process_resident_memory_bytes is a gauge — it tracks the current value and can
go up or down.
rate(process_resident_memory_bytes{job="api-service"}[5m])"This query is for a dashboard panel showing memory usage. I want to see how much memory the API service is using right now."
Produce a validation report validation-report.md that:
rate() is being applied to a gauge, which is
semantically incorrect (rate is only meaningful for monotonically increasing counters).Produce a single file validation-report.md structured with sections: Syntax Check,
Metric Type Analysis, Intent vs Implementation, Recommended Query, Cardinality Notes.