Grafana and Prometheus
InferCrane’s results show up in the monitoring stack you already run. One dashboard puts gateway traffic and vLLM engine signals next to every Release Guard verdict, the share of traffic a canary gets, each rollback, and the latest optimization run with its cost per million output tokens. Prometheus alerts page through Alertmanager when a release is blocked on answer quality or a deployment rolls back.Set it up
1
Scrape three sources
Add these jobs to The results job needs an API key with read permission. A key reads its own workspace only, so
scrape once per workspace. Keep the interval at 15 seconds or longer.
prometheus.yml
(deploy/grafana/prometheus-scrape.yaml):prometheus.yml
2
Load the alert rules
Add
deploy/prometheus-rules.yaml
under rule_files. The infercrane-results group holds the alerts below.3
Import the dashboard
In Grafana, open Dashboards › New › Import and upload
deploy/grafana/infercrane-dashboard.json,
or provision it from a file. Pick your Prometheus data source at the top. The job, model,
deployment, and endpoint selectors fill themselves from the scraped series.4
Route pages
Merge
deploy/grafana/alertmanager.yaml
into your Alertmanager configuration and keep the PagerDuty or Opsgenie receiver you use.What the dashboard shows
Unknown is not zero
A panel that says unknown has no evidence behind it. The deployment was never evaluated, the engine does not export the signal, no request finished in the window, or the run’s report has no price. InferCrane leaves those series out instead of writing a zero, so Grafana shows unknown. A counter that shows 0 counted stored records and found none.- Error ratio and latency are unknown while no request arrives, not 0% and 0 ms.
- Speculative acceptance is unknown when speculative decoding is off.
- Cost is unknown when the run had no sourced GPU price or no measured throughput.
Alerts
The rules use
increase() on counters of stored records. Each new evaluation or rollback fires
once. A control-plane restart does not fire them, because the counts come from PostgreSQL, not from
process memory. A blocked release has not moved production traffic: Release Guard rejected the
candidate before promotion. A rollback has: production is back on the retained revision.
Series reference
GET /api/v1/metrics returns the Prometheus text format for a scrape and JSON
(infercrane.result-metrics/v1) when Accept is application/json, which the Python and
TypeScript SDKs send.
The traffic share is configuration, not measured traffic. A weighted plan splits new requests by
weight. Manual and primary-fallback plans send them all to the first binding; requests a fallback
answers after a failure are not counted. Measured traffic per binding is in the
endpoint monitoring API.
The cost comes from the latest optimization run’s report: the run’s measured throughput priced with
the sourced GPU price, for the starting setup and the setup it chose (the same setup when it kept
the baseline). It is not live cost at your current utilization, which InferCrane does not publish
as a series yet. The run’s outcome and cost appear a scrape or two after the run changes, because
each scrape assembles at most four reports.
Cardinality and scope
Every label value is a name you chose (deployment, endpoint, binding) or comes from a fixed list. A value outside the list is dropped. One scrape exports at most 500 deployments, 500 endpoints, and 500 optimized endpoints, in alphabetical order, and setsinfercrane_results_truncated when it cuts
any. That is at most 14 series per deployment, 7 per endpoint plus one per binding, and 5 per
optimized endpoint.
The route reads PostgreSQL on the control plane. The inference gateway never calls it. The gateway’s
own /metrics needs no credential, so it names no deployment, endpoint, or workspace.
Preview on sample data
To see the dashboard before connecting a control plane, run the fixture. It needs Go and Docker, not a GPU. Every value it serves is invented, and its names start withdemo-.
Preview the dashboard
http://127.0.0.1:13000. The fixture replays an eight-minute story: a candidate waits, passes,
passes with WATCH, then is blocked; another deployment rolls back; an endpoint moves from a 5% canary
to primary and back to the closed API; one run finds a cheaper setup and one keeps the current setup.
Release Guard
How Release Guard decides, and what PASS, WATCH, and BLOCK mean for a candidate.