Observability

Metrics Reference

Every metric the grid exports, what it means, and where to scrape it. Three components expose Prometheus endpoints and they answer different questions.

Praxis Grid v0.3.1 (technical preview) 14 min read

Switching projects opens that project’s default documentation release.

Versions marked “overview” do not contain this page. Selecting one opens that version’s documentation overview.

On this page

Every metric the grid exports, what it means, and where to scrape it. Three components expose Prometheus endpoints and they answer different questions.

EndpointComponentServes
/metrics on GRID_METRICS_ADDR, default 0.0.0.0:9090Site operatorReconciliation, probing, peer polling, and the provider readings this site publishes
/metrics on the gateway metrics listener, metricsListener.enabled in the gateway chart, port 9443, TLS with Kubernetes bearer-token authorizationGrid gatewaySite selection, shedding, serving-config reloads, and its poll of the local operator

The gateway listener validates bearer tokens with TokenReview and checks scrape permission with SubjectAccessReview. A NetworkPolicy is recommended to limit which pods can reach the listener and cause those API reviews. The listener also exports grid_metrics_auth_total{result} for missing, allowed, unauthenticated, forbidden, overloaded, and api_error outcomes, plus grid_metrics_auth_in_flight for concurrent Kubernetes reviews. | /metrics on OVERLAY_SYNC_HEALTH_ADDR, default 0.0.0.0:9091 | Overlay-sync sidecar, when overlay.sidecar.enabled | Delivery of the serving overlay from its ConfigMap to the gateway |

The grid-gateway operand built with Praxis 0.7.4 serves /metrics, /healthy, and /ready on admin.metrics_address. When upgrading from Praxis 0.7.3, move the probe listener from admin.address to admin.metrics_address:

admin:
  metrics_address: "127.0.0.1:9901"

Keep the listener address consistent with the deployment’s probe commands. admin.address now serves administration endpoints; configure a different port if those are also needed. Chart defaults and operator-rendered configs must be qualified against the selected image before rolling out the new operand. The chart’s separately released Praxis AI image has its own version and upgrade requirements.

The operator exports each provider’s resolved readings, not the raw engine series behind them. The series a gateway routes on travel over /v1/site/signals, described in Signals. A series the operator holds but does not name below never reaches /metrics.

A metric with labels does not appear in a scrape until its first observation, so an idle operator exports far fewer series than this page lists. Label values are bounded: outcomes, phases, results, and peer or provider names, never addresses, fingerprints, or certificate content.

Operator: provider readings

The provider’s own state, as this site measured it or as a peer published it. Both labels are always present: grid_site names the site the reading came from, and grid_provider the provider within it.

MetricTypeMeaning
grid_provider_readygauge1 when the provider can serve, 0 when not.
grid_provider_ready_endpointsgaugeEndpoints behind the provider answering with fresh metrics.
grid_provider_in_flight_requestsgaugeRequests the provider holds, running, engine-queued, and held by flow control.
grid_provider_ttft_p50_secondsgaugeMedian streaming time to first token over the last 30s.
grid_provider_ttft_p90_secondsgauge90th percentile streaming time to first token over the last 30s.
grid_provider_tpot_secondsgaugeMean streaming time per output token over the last 30s.
grid_provider_error_ratiogaugeFailed requests over received requests in the last 30s, reported client errors other than 429 left out.

Operator: scraping this site’s providers

MetricTypeLabelsMeaning
grid_provider_scrape_totalcountergrid_provider, resultProvider metrics scrapes by result.
grid_provider_last_scrape_success_timestamp_secondsgaugegrid_providerUnix time of the provider’s last scrape with its ready-endpoint series.
grid_model_discovery_totalcounterprovider, outcomeServed-model discovery polls by outcome.

Operator: polling peer sites

One poll per peer per interval, so every series here is per peer. The poll path is described in Polling Cross-Site Load Signals.

MetricTypeLabelsMeaning
grid_peer_poll_totalcounterpeer, outcomePeer signal polls by outcome.
grid_peer_poll_duration_secondshistogrampeerPeer poll duration including retries.
grid_peer_poll_retries_totalcounterpeer, reasonRetried peer poll attempts.
grid_peer_poll_slow_totalcounterpeerPeer polls exceeding the slow threshold.
grid_peer_polls_in_flightgaugePeer polls currently in flight.
grid_peer_response_bytes_totalcounterpeerBytes read from peer signal endpoints.
grid_collection_upgaugepeerWhether the last poll of this peer succeeded. One missed poll reads 0 here while the condition still holds.
grid_peer_signals_reachablegaugepeer1 while the peer’s SignalsReachable condition is True. It holds through three unanswered rounds, as the condition does, so alert on this one to agree with the status.
grid_peer_last_success_timestamp_secondsgaugepeerUnix time of the last successful poll of this peer.
grid_peer_catalog_totalcounterpeer, outcomeReads of the peer’s providers catalog: replaced when a catalog landed, failed when the read did not.
grid_peer_catalog_refusedgaugepeer1 while the peer’s last admission refused its catalog, which its CatalogAccepted condition reads False.
grid_peer_catalog_cutgaugepeer1 while part of the peer’s catalog waits past this site’s share of the overlay ceiling.

Every series labelled peer is removed once the peer leaves the roster, so a renamed or deleted site does not keep stale series alive until restart.

Operator: serving signals

The other half of the same path, where this site answers a peer’s poll or relays every site’s readings to its own gateway.

MetricTypeLabelsMeaning
grid_peer_signals_refused_totalcounterpeer, reasonPeer observations refused at ingest.
grid_signals_connections_shed_totalcounterlimitSignals connections shed, by the cap that shed them: total, handshake, source, or peer for a site at its per-site cap.
grid_signals_connection_capgaugeConcurrent signals connections the listener admits, sized for the declared members.
grid_signals_connections_opengaugeSignals connections the listener holds open, read at scrape time.
grid_signals_handshake_capgaugeSignals handshakes the listener admits at once.
grid_signals_handshakes_in_flightgaugeSignals handshakes in progress, read at scrape time.
grid_signals_handshake_source_capgaugeHandshakes one source may hold at once: signals.maxHandshakesPerSource, raised behind a router that hides client addresses.
grid_signals_handshakes_busiest_sourcegaugeHandshakes in progress from the busiest single source: an address or, for global IPv6, a /64 or its /48. Not labelled by address.
grid_signals_ca_loaded_timestamp_secondsgaugeUnix time the listener last loaded its CA bundle. It moves when the listener restarts on rotated material.
grid_signals_ca_expiry_timestamp_secondsgaugeUnix time the earliest loaded CA anchor expires, 0 while none is loaded.
grid_signals_ca_anchorsgaugeCertificates in the loaded CA bundle. A rotation that adds the new anchor before dropping the old one reads 2 for its overlap.
grid_signals_relay_truncated_totalcounterstore, cutTargets dropped and lines cut from the relay served to the local gateway.

Alert before the listener sheds, not after; grid_signals_connections_shed_total says it already did. Both fire above four fifths of a cap for five minutes:

- alert: GridSignalsSourceHandshakesNearCap
  expr: grid_signals_handshakes_busiest_source / grid_signals_handshake_source_cap > 0.8
  for: 5m
  annotations:
    summary: one source holds most of its signals handshake cap on {{ $labels.instance }}
- alert: GridSignalsConnectionsNearCap
  expr: grid_signals_connections_open / grid_signals_connection_cap > 0.8
  for: 5m
  annotations:
    summary: the signals listener on {{ $labels.instance }} is near its connection cap

Operator: reconciliation and probing

MetricTypeLabelsMeaning
grid_site_phasegaugesite, phaseGridSite phase: 1 for the current phase, 0 for the others.
grid_site_phase_transition_totalcounterfrom_phase, to_phase, reasonGridSite phase transitions.
grid_agent_tool_provider_phase_transition_totalcounterfrom_phase, to_phase, reasonAgentToolProvider phase transitions.
grid_agent_tool_provider_tools_cutgaugenamespace, providerDiscovered tools past the 128-per-provider routing cap, which status lists but routing leaves out. Absent while a provider is within the cap, and removed when the provider is deleted.
grid_gateway_probe_totalcounteroutcome, tls_modeTotal gateway probe attempts.
grid_gateway_probe_duration_secondshistogramGateway probe duration.
grid_mcp_probe_totalcounteroutcomeTotal AgentToolProvider MCP tools/list probe attempts.
grid_mcp_probe_duration_secondshistogramAgentToolProvider MCP tools/list probe duration.
grid_gateway_feedback_events_totalcountereventGateway status feedback events the operator could not apply as sent: conflict, conflict_exhausted, overflow, unauthorized, write_failure.

Operator: identity and gossip

MetricTypeLabelsMeaning
grid_site_identity_expiry_timestamp_secondsgaugeWhen the site identity certificate expires.
grid_swim_unavailablegauge1 while SWIM is configured on this site but not running; the GridNetwork Swim condition reads False with the cause.
grid_site_identity_rotations_totalcounterresultSite identity rotation attempts.
grid_swim_key_pendinggauge1 while SWIM holds traffic for its key.
grid_operator_config_ignored_sectionsgaugeTop-level sections of the operator config that this operator does not read and ignores.
grid_operator_lease_heldgauge1 while this replica holds the operator lease. At most one replica reports 1, and none while no replica holds it.
grid_operator_routedgauge1 while the signals and SWIM Services route to this replica. It drops before the lease is released.
grid_operator_lease_waitinggaugereason1 for why this replica is not contending for the lease: unelected_replica while a replica of the operator Deployment runs without leader election, replicas_unreadable while the replicas cannot be listed.
grid_swim_key_pending_dropped_totalcounterInbound SWIM packets dropped while the key is pending.

Certificate expiry is the one to alert on. Renewal starts when a third of the lifetime remains, so this falling toward now means renewal has been failing for a while. See Site Identity.

Gateway

One scrape per gateway replica, and each replica answers from its own learned state, so two replicas agree only in steady state.

MetricTypeLabelsMeaning
grid_metrics_auth_totalcounterresultGateway metrics scrape outcomes: missing, allowed, unauthenticated, forbidden, overloaded, and api_error.
grid_metrics_auth_in_flightgaugeKubernetes TokenReview and SubjectAccessReview requests currently running for scrapes.
grid_route_decisions_totalcountersite, cluster, reasonRequests the gateway decided, by outcome. A refusal records an empty site and cluster.
grid_route_selections_totalcounterpathDecisions by the path that produced them.
grid_route_site_rhogaugesite, clusterSmoothed saturation used by the draw: the comparator for an llm-d site, otherwise in-flight over the learned ceiling.
grid_route_site_rho_reportedgaugesite, clusterThe EPP’s own pool saturation, published with flow control on. For a site without an in-flight count, the comparator it is read by. Uncapped; NaN where neither exists.
grid_route_site_rho_derivedgaugesite, clusterThe gateway’s approximation from pool averages: the larger of KV share widened by spread over 0.8 and waiting plus held per unit over 5; uncapped; NaN without a KV share.
grid_route_site_rho_publishedgaugesite, cluster1 when the comparator is the EPP’s published value, 0 when it is the gateway’s approximation; the two use different thresholds.
grid_route_site_capacity_impliedgaugesite, clusterRunning over KV share at queue-free instants, for the dashboard only; NaN below a 0.15 share.
grid_route_site_rho_countedgaugesite, clusterIn-flight over the learned ceiling; NaN until a hard bound makes it a reading.
grid_route_site_weightgaugesite, clusterCapacity the draw weights the site by.
grid_route_site_ceilinggaugesite, clusterLesser of the learned soft and hard bounds, never below the floor.
grid_route_site_ceiling_softgaugesite, clusterMost requests the current site size carried with nothing waiting; NaN until observed.
grid_route_site_ceiling_hardgaugesite, clusterFewest requests held at a demonstrated limit; NaN until observed.
grid_route_site_in_flightgaugesite, clusterRequests held in the reading used by the decision.
grid_route_site_fullgaugesite, cluster1 after a backlog at the comparator’s full point, or at the learned ceiling, spans full_after_ms; 0 otherwise; NaN without a queue signal.
grid_route_site_reading_age_secondsgaugesite, clusterAge of the newest sample used by the decision.
grid_route_site_silentgaugesite, cluster1 while a site that has published has sent nothing within the freshness window, until it sends two new samples; it takes no request while a live site can. 0 otherwise.
grid_route_site_silent_transitions_totalcountersite, cluster, toSites entering (silent) or leaving (live) silence. A steady rate is a flapping link.
grid_route_site_last_sample_age_secondsgaugesite, clusterSeconds since the site’s newest sample. Unlike grid_route_site_reading_age_seconds, which goes NaN once the sample leaves the freshness window, this keeps counting.
grid_route_site_round_age_secondsgaugesite, clusterSeconds since the operator’s last poll round that tried this peer; a peer’s silence is judged at that round. NaN for this site or when the operator reports no rounds. A growing value with the poller running is a stalled poller, under which no peer goes silent.
grid_route_site_scoregaugesite, clusterScore the site ranks by in the current snapshot.
grid_route_site_score_unavailablegaugesite, cluster, reasonOne-hot reason an otherwise routable load-publishing site has no queue score: absent, stale, or unreadable. The current reason is 1 and the others are 0.
grid_route_candidate_infogaugesite, cluster, model1 while the gateway lists the model as a candidate at the site’s backend cluster, 0 once it no longer does. The 0 is a tombstone the exporter keeps until restart, so join with == 1. A cluster serving more than one model has one series per model, so the join is <per-site series> * on (site, cluster) group_right() (grid_route_candidate_info == 1), one row per model. The praxis-gateway chart’s ServiceMonitor renames cluster to backend, so a dashboard behind it joins on site and backend. The model label puts every peer’s model catalog on /metrics, readable by anyone who can query the scraping Prometheus.
grid_route_sheddinggaugemodel1 while the gateway sheds this model, 0 otherwise.
grid_route_prefix_affinity_totalcounteroutcomePrefix-affinity decisions by outcome.
grid_route_prefix_index_entriesgaugeclusterPrefix keys this replica holds for the backend cluster. An expired key counts until a new key displaces it or its prompt is sent again.
grid_route_prefix_index_capacitygaugeclusterPrefix keys this replica may hold for the backend cluster, prefixAffinity.capacity. 0 once the cluster leaves the serving config. Fill is entries over capacity.
grid_route_prefix_index_evictions_totalcountercluster, reasonPrefix keys that left the backend cluster’s index. capacity: a full index displaced a live key, so raise capacity. ttl: a confirmed key with nothing waiting was displaced after ttl_secs, or a request sent it again after that, so turns are further apart than the lifetime. pending: an expired key was displaced while a request still waited on it, so responses are slow or lost. forgotten: a failed or refused request withdrew its keys. A capacity cut sorts the keys it drops the same way.
grid_serving_config_reload_totalcounterresultServing-config reloads by result.
grid_serving_unbound_provider_hopsgaugeProvider hops the applied serving config declares that no startup-verified backend binds. Their candidates take no traffic until a serving config names the verified SNI or the gateway restarts.
grid_serving_undialable_clustersgaugeDials in the applied dial file whose TLS files could not be read. Their candidates take no traffic until the files read, which re-applies the config.
grid_serving_refused_dial_clustersgaugeDials in the applied dial file praxis refused, such as a private, loopback, or metadata host the dial does not trust. Their candidates take no traffic, and the rest of the file applies.
grid_serving_dial_shadowed_clustersgaugeDials that replace a load_balancer cluster of the same name.
grid_dial_downgaugecluster1 while a dial is down after 2 consecutive failures, until 2 consecutive successes. A down dial is ordered last for 10 s, then one request may try it again; it is never excluded.
grid_dial_failures_totalcounterclusterDialed requests that got no response, or a 502, 503, or 504 no grid gateway attributed.
grid_provider_requests_totalcounterresultPeer requests a provider gateway served or refused: served, forbidden, method, path, candidate, or malformed (a missing, repeated, or badly formed x-ai-routing-candidate, answered 400).
grid_provider_config_reload_totalcounterresultProvider-file reloads, applied or rejected. A rejected file keeps the last good one.

A NaN rho or weight means the gateway holds no reading for that site, which distinguishes an unmeasured site from one measured at zero. A NaN score means the candidate is excluded or demoted from the order. A site that leaves the topology reads NaN on all four, since the exporter keeps a series until restart.

grid_route_site_score_unavailable separates a provider that has published no sample (absent) from one whose newest sample is outside the freshness window (stale) and one with fresh samples but no recognized, valid queue value (unreadable). Metric names are deliberately not labels. The three reason values are fixed, while site and cluster come from the bounded serving topology. All three series read NaN after the pair leaves that topology.

Gateway: polling the local operator

Every site’s load reaches the gateway through one poll of its local operator, described in Site Selection.

MetricTypeLabelsMeaning
grid_signals_poll_totalcounterresultPolls of the local operator by result.
grid_signals_last_success_timestamp_secondsgaugeUnix time of the last successful poll.
grid_signals_response_bytesgaugeSize of the last successful poll’s response.
grid_signals_ingest_dropped_totalcounterreasonRows the operator served that the gateway refused, by reason.
grid_signals_feedback_failures_totalcounterreasonFailed deliveries of gateway status feedback to the operator, by bounded reason.

Overlay-sync

The sidecar that delivers the serving overlay to the gateway, described in Routing. One scrape per gateway pod.

MetricTypeLabelsMeaning
grid_overlay_sync_readygauge1 once the sidecar holds a valid overlay, written or restored from the shared volume.
grid_overlay_sync_degradedgauge1 while the sidecar serves its last good overlay because the API is unreachable, the ConfigMap was deleted, or its key is missing.
grid_overlay_sync_events_totalcounteroutcome, reasonOverlay events by outcome and reason.
grid_overlay_sync_file_writes_totalcounteroutcomeOverlay file writes by outcome.
grid_overlay_sync_validation_failures_totalcounterreasonOverlays refused at validation, by reason.
grid_overlay_sync_watch_reconnects_totalcounterreasonConfigMap watch reconnections by reason.
grid_overlay_sync_last_observed_timestamp_secondsgaugeUnix time of the last observed ConfigMap event.
grid_overlay_sync_last_write_timestamp_secondsgaugeUnix time of the last successful overlay write.
grid_overlay_sync_payload_bytesgaugeSize of the last written overlay.