Prometheus metrics
lookout watch --metrics-addr=host:port serves Prometheus metrics on
/metrics (plus /healthz and /readyz). Every metric carries the
lookout_ prefix.
Generation note (the documented choice): metric names and help strings are
derived from the live collectors (internal/watch.MetricsInventory); the
type and label columns are stamped per collector in that inventory because
the Prometheus client does not expose them before first observation. A
presence-check test (TestMetricsInventoryComplete) fails when a collector
is added without an inventory row.
Rows marked opt-in are absent from a default scrape until a flag turns
them on; see the lookout watch flag table.
| Metric | Type | Labels | Meaning |
|---|---|---|---|
lookout_events_seen_total | counter | reason, namespace | Total k8s events observed by the informer, before filter. |
lookout_events_injected_total | counter | reason, namespace | Total events that survived filter + dedup and were POSTed to the daemon. |
lookout_events_deduped_total | counter | reason, namespace | Total events suppressed by the rolling-window dedup cache. |
lookout_events_filtered_total | counter | gate | Total signals rejected by the engine filter before dedup, by the rule that rejected them (reason_not_allowed|namespace_excluded|namespace_not_allowed|unhealthy_debounce|crashloop_debounce|imagepull_transient_debounce|failedscheduling_not_pending|failedscheduling_stale|scaleup_hold|autopilot_scale_to_zero|failedscheduling_min_count|failedscheduling_min_span|settle). The leading-edge debounces, settle gate, and FailedScheduling verdict gate deliberately swallow events; without this counter a gate tuned too tight is indistinguishable from a broken watcher. |
lookout_watch_gate_outcomes_total | counter | gate, outcome | Total settled-or-cleared outcomes for time-holding filter gates, by gate (settle) and outcome (forwarded when a held failure lasted past —settle and reached dedup, or self_resolved when it went unsighted for —settle plus 5m). Silent when —settle=0 (the default). |
lookout_watch_scaleup_verdicts_rejected_total | counter | — | Total TriggeredScaleUp, NotTriggerScaleUp, or FailedScaleUp Pod events ignored by the capacity verdict memo because their reporter (source.component or reportingController) was not cluster-autoscaler or because involvedObject.namespace did not match metadata.namespace. |
lookout_watch_alert_excluded_total | counter | — | Total non-filtered signals matched by an —alert-excludes rule and downgraded to severity=info (stored when —store is set, counted and logged via info-drop otherwise) without opening a session. |
lookout_watch_alert_exclude_rules | gauge | — | Number of active alert-exclude rules currently loaded from —alert-excludes. |
lookout_watch_alert_exclude_refused | gauge | — | 1 when the most recent —alert-excludes hot-reload failed (previous valid rules stay in force); 0 when the last load or reload succeeded. |
lookout_inject_errors_total | counter | reason, http_code | Total payload deliveries (or incident opens) against the configured sink that returned a non-2xx response or transport error. Counts sink operations regardless of —sink. |
lookout_inject_shrinks_total | counter | shed | Total payloads shrunk to fit —inject-max-bytes before delivery (issue #198), by what was shed (enrichment|message|member_fingerprints|watchboard_entries). Identity is never dropped; a counted incident still routed. A rising enrichment count means —enrich-cap is set too high for the sink’s inject ceiling; member_fingerprints means a storm outgrew the ceiling and its member list was cut to the earliest arrivals (#336); watchboard_entries means —watchboard-batch is too large for it and the oldest warnings in the digest were dropped (#337). |
lookout_session_creates_total | counter | outcome | Total incident-open attempts against the configured sink (core-agent: POST /sessions; webhook: POST /incidents), labeled by outcome. |
lookout_active_incidents | gauge | — | Current number of incidents in the sidecar’s dedup cache. |
lookout_recoveries_observed_total | counter | resolution | Total kind=resolved outcome records emitted, by resolution (recovered|object_deleted). |
lookout_recoveries_reverted_total | counter | — | Total kind=resolved.reverted records emitted: symptom recurred within the revert window after a resolve. |
lookout_recovery_tracking | gauge | — | Current number of bound incidents the recovery tracker is watching for clearance. |
lookout_recovery_drops_total | counter | cause | Total resolved signals dropped instead of injected, by cause (unknown_session: binding lost, e.g. restart without —dedup-persist). |
lookout_storms_formed_total | counter | — | Total kind=storm incidents opened by blast-radius correlation. |
lookout_storms_resolved_total | counter | — | Total storms resolved because every member incident cleared. |
lookout_storms_active | gauge | — | Currently open (unresolved) storms. |
lookout_storm_members_total | counter | kind | Total incidents folded into storms, by how they joined (suppressed: per-incident session never opened; superseded: pre-storm session pointed at the storm; attached: late arrival). |
lookout_storm_updates_total | counter | — | Total kind=storm.update size refreshes injected into storm sessions (membership grew past a reporting threshold: doubling or +10, max one per minute). |
lookout_watchboard_entries_total | counter | kind | Total warning-class signals buffered onto the shared watchboard digest, by signal kind. |
lookout_watchboard_digests_total | counter | — | Total kind=watchboard.digest injects flushed to the watchboard session. |
lookout_watchboard_rotations_total | counter | — | Total size-based watchboard session rotations: a fresh session opened after —watchboard-rotate digest injects. |
lookout_watchboard_sessions_lost_total | counter | — | Total watchboard digest flushes where the target session disappeared on the sink (HTTP 404/410, issue #689), causing the sentinel to forget the dead session ID, advance generation, open a new session, and retry the warning batch. |
lookout_watchboard_buffered | gauge | — | Warning-class signals currently buffered awaiting the next watchboard digest flush. |
lookout_watchboard_reattached_total | counter | kind | Total buffered warnings delivered as a kind=family.member followup into an existing per-incident session sharing their blast-radius ancestor, instead of a digest entry (issue #220), by signal kind. |
lookout_info_dropped_total | counter | kind | Total info-severity signals routed to the stored-only class (no inject anywhere), by signal kind. With —store set they are persisted; without it they are dropped after counting. |
lookout_findings_total | counter | kind, severity | Total distinct findings the sentinel detected, by signal kind and severity — counted once per fresh dedup window, before severity routing, so stored-only and watchboard-batched findings count alongside injected ones. Always carries the cluster label. Namespace is deliberately absent (cardinality); rate() over this is the cluster’s health trend. |
lookout_store_records_total | counter | route | Total occurrences committed to the store, by routing outcome (injected|suppressed|storm|storm-member|watchboard|info-stored|resolved). |
lookout_store_write_drops_total | counter | cause | Total occurrence records LOST by the store’s write path, by cause (buffer_full: the non-blocking writer buffer overflowed; write_error: a batch insert failed). The store is telemetry, not a system of record — drops are loud, never blocking. |
lookout_store_pruned_rows_total | counter | cause | Total occurrence rows deleted by the prune loop, by cause (ttl: older than —store-ttl; size: oldest-first eviction after —store-max-mb was exceeded). |
lookout_enrichments_total | counter | outcome | Total enrichment runs, by outcome (ok: every stage succeeded; partial: some stage failed, the rest attached; failed: no section computed — the inject still fires, carrying enrichment_error trailers; skipped: nothing to build, the incident object is not a workload and names none, so the inject fires with no bundle at all rather than one describing the resolver). |
lookout_enrichment_bytes | histogram | — | Size of the attached enrichment bundle in bytes, after the —enrich-cap prefix cut (the telemetry that will inform the fixed-vs-model-aware cap revisit). |
lookout_enrichment_truncated_total | counter | — | Total enrichment bundles the —enrich-cap byte budget truncated at a section boundary (dropped sections become overflow trailers naming the follow-up command). |
lookout_enrichment_failures_total | counter | stage | Total enrichment stage failures, by stage (resolve|spec|delta|edges|radius|logs). Failures never block the inject; they surface as enrichment_error trailers in the attached bundle. |
lookout_memory_facts_total | counter | class | Total distilled facts written (upserts included) by the scheduled distiller pass, by fact class. |
lookout_distill_errors_total | counter | — | Total failed distiller passes. A failed pass loses freshness only — the next pass re-derives every fact from the occurrence window. |
lookout_triage_overrides_total | counter | action | Total severity-routing decisions refined by an open triage-status record, by action (downgraded: agent’s severity_override lowered the class; upgraded: it raised it; escalated: status=escalated pinned critical). |
lookout_triage_resolved_flips_total | counter | — | Total triage-status records flipped to resolved by recovery injects (the automatic lifecycle — resolved records join the corpus). |
lookout_triage_regressed_total | counter | — | Total kind=triage.regressed evidence followups: a downgraded incident’s dedup-window count reached —triage-regress-factor times its count at downgrade time. Evidence only, never a re-page. |
lookout_cross_source_followups_total | counter | source | Total dedup-window duplicates injected as followups because their source family differs from the incident’s opening source (leading/reactive joins made session-visible), by joining source family. |
lookout_repeat_followups_total | counter | type | Total followups injected for an incident that was still open when its dedup window lapsed (issue #599), by type: reminder is a pure reminder (repeat_count above 0, on the doubling schedule up to 1h), change is a material change (new message shape or severity, or a rate jump), open is the full open payload re-sent because the initial delivery had failed. Occurrences absorbed between reminders count in lookout_events_deduped_total. |
lookout_ax_reminders_total | counter | outcome | Pure reminders (repeat_count above 0) handled by the ax sink (issue #599), by outcome: held (the task was idle, so the reminder was kept instead of waking it), superseded (a held reminder replaced by a newer one for the same session), delivered (a held reminder sent ahead of the next real inject to its task), direct (sent at once because the task was busy), dropped (a held reminder that expired after 3h, was evicted past 4096 held, or failed delivery). Zero with other sinks. |
lookout_sink_info | gauge | sink | The configured agent sink (—sink), value fixed at 1 on the active label (core-agent|webhook). ADDITIVE metric: the sink is process-level config, so it rides this info gauge instead of a new label on the operation counters — existing scrapes keep their exact series identities. |
lookout_runner_up | gauge | — | 1 while this cluster’s watch loop is running, 0 otherwise. Always carries the cluster label; in a multi-cluster process (issue #208) one series per watched cluster reports that runner’s liveness independently. |
lookout_runner_restarts_total | counter | — | Total in-process restarts of this cluster’s runner by the supervisor after it exited while the process stayed up (multi-cluster fate isolation, issue #208). Stays zero in the single-cluster default, where a runner exit ends the process and the kubelet owns restart. |
lookout_runner_terminal | gauge | reason | 1 when the supervisor has GIVEN UP on this cluster: the runner exited for a reason no retry can fix (access_denied — the authorizer refused a required permission), so it is no longer being watched and no longer being restarted (issue #383). ADDITIVE metric rather than a label on lookout_runner_up, which keeps its exact series identity. The alert to write: a series at 1 means a cluster in the fleet is dark until someone changes a grant. Stays absent in the single-cluster default, where such an exit ends the process instead. |
lookout_source_denied | gauge | source, resource, required | 1 when a permission this source held at STARTUP is denied now, confirmed over consecutive SelfSubjectAccessReview sweeps (—access-recheck, issue #385); back to 0 when the grant returns. required=true means the source cannot run at all and this cluster’s runner is stopping for it; required=false is one degraded dimension on a source that keeps going. The alert to write: any series at 1 means the sentinel has lost coverage it used to have — the silence from that source no longer means the cluster is healthy. |
lookout_namespace_errors_total | counter | namespace, cause | Total times a —watch-scope=namespace namespace was skipped at runner start, by namespace and cause (access_denied: the Event list/watch grant there was refused, so the namespace is not watched while the others are; issue #407). A skipped namespace is a coverage gap, and this counter is what keeps its silence from reading as health — the alert to write is any increase. Absent unless —watch-scope=namespace. |
lookout_cluster_resolve_errors_total | counter | cluster, cause | Total clusters this process was told to watch and did not, by cluster and cause (issues #388, #410). credentials: the cluster could not be resolved into a client. duplicate_name: two clusters in the fleet share this name, which is the only handle the sentinel has on a cluster, so neither is watched. The cluster is SKIPPED, not fatal, so the rest of the fleet still runs — which means a non-zero value is a coverage gap: nothing is watching that cluster and its silence means nothing. Counted at startup, so it moves on process restart and on nothing else. |
lookout_otlp_exports_total | counter | outcome | Opt-in. Total OTLP metric export attempts, by outcome (ok: the collector accepted the batch; failed: it did not, and the batch was dropped). A rising failed rate means the OTLP backend is stale; the scrape endpoint is unaffected. |
lookout_otlp_points_exported_total | counter | — | Opt-in. Total metric data points the OTLP exporter delivered to the collector. |
lookout_otlp_points_dropped_total | counter | — | Opt-in. Total metric data points discarded because their OTLP export failed or ran out of time. There is no retry queue by design, so a dead collector costs samples rather than memory; temporality is cumulative, so what is lost is the sample and not the counter value. |
lookout_otlp_export_last_success_timestamp_seconds | gauge | — | Opt-in. Unix timestamp of the last OTLP metric export the collector accepted; zero until the first one. Alert on its age rather than on the failure counter alone, which stays flat when the export path stops running at all. |
lookout_otlp_export_inflight | gauge | — | Opt-in. 1 while an OTLP metric export is in flight, 0 otherwise. A reading stuck at 1 across scrapes is an export wedged against its deadline. |