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 team is instrumenting a new internal service (inventory-api) for the first time. They have a Prometheus setup but no existing dashboards or alerting. The engineering manager wants a complete starter monitoring package that her team can hand directly to the on-call engineers — not just the queries, but enough context for someone unfamiliar with PromQL to understand what each query does, how to use it, and how to customize it for their own environment.
The service exposes:
inventory_http_requests_total — a counter with labels job, endpoint, method, status_codeinventory_request_duration_seconds — a classic histogram with labels job, endpoint, leinventory_cache_size — a gauge (number of items currently in cache) with label jobThe team wants three queries:
Produce a single file called monitoring_package.md that contains:
The queries must be formatted across multiple lines if they involve more than one operator.