Health Sources
Prometheus, Alertmanager, Zabbix, Tempo, the agents and Prometheus zones in relay mode all feed the same health model (HealthStatus), so the monitoring traffic light, the transitions and the uptime use every source.
Overview
Every source writes its checks on the matched infrastructure asset (not on the monitoring asset) through a single write path, so every change of state is recorded as a HealthTransition (see Health History & Uptime). details.zone_id records the zone that produced the check. At the end of a collection the checks of that source and zone that the run did not refresh are deactivated, but only when the collection was complete: if a fetch failed the cleanup is skipped and logged, so an outage of the source never looks like "everything resolved". The checks are shown on the Monitoring page (/docs/discovery/monitoring), in the Health checks panel of the asset detail and in the topology health overlay.
Sources and check types
source_type and check_type written by each source:
- prometheus_blackbox: target_up, probe_success, http_status, ssl_expiry (local Prometheus zones); target_up only for zones in relay mode
- alertmanager: alert_firing
- zabbix: zabbix_problem (source_identifier zabbix-event:<eventid>) and availability (zabbix-host:<hostid>)
- tempo: red (source_identifier tempo-svc:<service>)
- agent: agent_liveness (agent:<agent_id>), disk_usage (one per mountpoint), ssl_expiry (one per certificate path)
- grafana: reserved, never written by any source
Zabbix
At the end of a Zabbix collection every active problem (r_clock 0 or absent; resolved problems returned by recent=true are ignored) becomes a zabbix_problem check on every asset matched by its host, with the problem name as message. Every enabled host gets an availability check from its available field, or, when the host has none (Zabbix 6+), from its interfaces. Disabled hosts produce no check. The hosts of a problem are resolved from its trigger (objectid), from the discovered triggers or with one trigger.get lookup. The cleanup is skipped, and the existing checks kept, when hostgroup.get (host group filter), host.get, problem.get or that trigger.get lookup fails.
- severity 5 (disaster) / 4 (high) → critical
- severity 3 (average) / 2 (warning) → degraded
- severity 1 (information) / 0 (not classified) → healthy
- availability: available → healthy, unavailable → critical, otherwise unknown; from interfaces: any 2 → unavailable, else any 1 → available, else unknown
Tempo (RED)
Matched services with RED metrics from the metrics-generator (request_rate present) get a red check. The error ratio is error_rate / request_rate (0 without traffic). details reports the ratio, the p95 latency and the thresholds used. The cleanup is skipped, and the existing checks kept, when a RED query fails (HTTP status other than 200, an exception, or a 200 response whose status is not success) or when the service list cannot be read from Tempo. A Tempo that answers with no services is a complete collection: its red checks are cleared.
- ratio > TEMPO_ERROR_RATE_CRIT (default 0.05) → critical
- ratio > TEMPO_ERROR_RATE_WARN (default 0.01) → degraded
- latency_p95 above the threshold → degraded; the threshold (seconds) is connection_config.latency_p95_thresholds[<service>] of the Tempo zone, else TEMPO_LATENCY_P95_WARN_SECONDS (default 0 = latency not checked)
- otherwise healthy
{
"url": "http://tempo:3200",
"metrics_generator_url": "http://tempo:3200",
"latency_p95_thresholds": {"checkout": 1.0, "payments": 0.5}
}Agents
Agent checks are written on the host asset of the agent (agent-host:<agent_id> in the agent zone); an agent without a host asset produces no check. A failure while writing health is logged and never fails the report.
- agent_liveness: report received → healthy; the status sweep marks stale → degraded, offline → critical
- disk_usage per mountpoint (system.disks): used_pct > AGENT_DISK_CRIT_PERCENT (default 95) → critical, > AGENT_DISK_WARN_PERCENT (default 85) → degraded, otherwise healthy; read-only image mounts (fstype squashfs or iso9660, e.g. snap packages) are ignored
- ssl_expiry per certificate path: days_left < 0 → critical, < 30 → degraded, otherwise healthy (same rule as Prometheus Blackbox)
- disks and certificates no longer reported are deactivated only by a full snapshot (disks only when the report contains system.disks)
Prometheus zones in relay mode
The backend never polls a relay-mode Prometheus zone. When the relay sends its results, every prom_target asset with an instance becomes a target_up check (prometheus_blackbox) on the matched asset: health up → healthy, down → critical, anything else → unknown. Only a complete result (success, not partial, no errors) deactivates the targets that disappeared. Blackbox metrics are not available through the relay.
Thresholds
Environment variables (backend) with their defaults:
TEMPO_ERROR_RATE_WARN=0.01
TEMPO_ERROR_RATE_CRIT=0.05
TEMPO_LATENCY_P95_WARN_SECONDS=0
AGENT_DISK_WARN_PERCENT=85
AGENT_DISK_CRIT_PERCENT=95Traffic light by team
GET /api/v1/monitoring/dashboard/ groups by_team by the asset team (team_ref): each entry has team (name, or unassigned), team_ref (id, or null) and the healthy, degraded, critical and unknown asset counts, sorted by name. The team_ref filter selects one team; the legacy team filter (free-text team string) still works. GET /api/v1/monitoring/health-status/?source_type=zabbix (or tempo, agent) filters the checks by source. The security badge of each card comes from GET /api/v1/security/dashboard/, whose by_team_ref field counts the active findings per team_ref id (null goes on the unassigned card); the dashboard also accepts ?team_ref=<id>.