Metrics
GET /metrics serves the Prometheus text format. It needs no authentication and
is meant to be scraped from inside the cluster. See
Monitoring Heimdall for the ServiceMonitor and
alert ideas.
| Metric | Type | Labels | Meaning |
|---|---|---|---|
heimdall_findings_open |
gauge | realm, service, kind, severity |
Open findings. A finding without a service has service="". |
heimdall_versions_behind |
gauge | realm, target |
How many releases are newer than the running version. |
heimdall_watcher_failures_total |
counter | watcher |
Failed fetches per watcher type. |
heimdall_watcher_duration_seconds |
summary | watcher |
Time spent per watcher type per run. |
heimdall_teams_failures_total |
counter | none | Cards Teams rejected (Teams channels only). |
heimdall_notify_failures_total |
counter | channel_type |
Alerts a channel rejected (a 4xx other than 429, a permanent SMTP error), by channel type: teams, slack, discord, telegram, pagerduty, alertmanager, webhook, email. |
heimdall_outbox_pending |
gauge | none | Notifications waiting to be sent. |
heimdall_oaths_active |
gauge | kind (snooze, ignore) |
Active oaths. |
heimdall_oath_next_expiry_timestamp_seconds |
gauge | none | Unix time of the nearest oath date (snooze expiry or ignore review). 0 when there is none. |
- The gauges are recomputed after each matcher run. A series that disappears
(for example a resolved finding) is set to
0once, so it does not stay counted. heimdall_watcher_duration_secondsis recorded with the default Prometheus exporter, which renders it as a summary (quantiles with_sumand_count) rather than bucketed histogram series. Query it withrate(heimdall_watcher_duration_seconds_sum[5m]) / rate(heimdall_watcher_duration_seconds_count[5m]).kindvalues are the finding kinds.severityis one ofcritical,high,medium,low,unknown.- Watcher types in the
watcherlabel aregithub,endoflife,oci,helm,tf_registry,go_proxyandnpm.
Example queries
Section titled “Example queries”sum by (severity) (heimdall_findings_open)sum by (realm, service) (heimdall_findings_open{severity=~"critical|high"})topk(10, heimdall_versions_behind)increase(heimdall_watcher_failures_total[1h])