Files
Arnaud Dartois 5db3d627f7
Heimdall Gitea / Detect CI scope (pull_request) Successful in 30s
Heimdall Gitea / Build and tests (pull_request) Failing after 3m12s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Failing after 3s
feat(monitoring): report central config receipt
2026-10-26 15:47:59 +01:00

128 lines
5.9 KiB
YAML

groups:
- name: heimdall
rules:
- alert: HeimdallAgentSnapshotDrops
expr: increase(heimdall_ai_queue_dropped_total{job="heimdall-agent"}[5m]) > 0
labels:
severity: warning
annotations:
summary: Heimdall Agent is dropping camera snapshots
description: "{{ $labels.instance }} rejected snapshots during the last five minutes. Check camera load and Agent capacity."
- alert: HeimdallAgentInferenceDrops
expr: increase(heimdall_ai_inference_queue_rejected_total{job="heimdall-agent"}[5m]) > 0
labels:
severity: warning
annotations:
summary: Heimdall Agent is dropping inference frames
description: "{{ $labels.instance }} rejected inference frames during the last five minutes. Check model performance and Agent capacity."
# 90% is an example; tune it for the host's reserved disk capacity.
- alert: HeimdallAgentDiskUsageHigh
expr: heimdall_agent_disk_usage_percent{job="heimdall-agent"} > 90
for: 10m
labels:
severity: warning
annotations:
summary: Heimdall Agent disk usage is high
description: "{{ $labels.instance }} has reported disk usage above the example 90% threshold for ten minutes."
# This signals sustained work waiting, not necessarily a stuck queue.
# Tune the 10m duration for the camera count and expected processing latency.
- alert: HeimdallAgentSnapshotBacklog
expr: min_over_time(heimdall_ai_queue_depth{job="heimdall-agent"}[10m]) > 0
labels:
severity: warning
annotations:
summary: Heimdall Agent snapshot queue has a persistent backlog
description: "{{ $labels.instance }} had pending snapshots throughout the last ten minutes."
- alert: HeimdallAgentInferenceBacklog
expr: min_over_time(heimdall_ai_inference_queue_depth{job="heimdall-agent"}[10m]) > 0
labels:
severity: warning
annotations:
summary: Heimdall Agent inference queue has a persistent backlog
description: "{{ $labels.instance }} had pending inference frames throughout the last ten minutes."
- alert: HeimdallHangfireEnqueuedJobsStale
expr: heimdall_hangfire_jobs_oldest_enqueued_age{job="heimdall-central"} > 900
for: 5m
labels:
severity: warning
annotations:
summary: Heimdall Central has long-waiting background jobs
description: "The oldest observed enqueued job has waited over 15 minutes. Tune this example threshold for your workload."
- alert: HeimdallHangfireProcessingJobLongRunning
expr: heimdall_hangfire_jobs_oldest_processing_age{job="heimdall-central"} > 1800
for: 5m
labels:
severity: warning
annotations:
summary: Heimdall Central has a long-running background job
description: "The oldest observed processing job has run over 30 minutes. Tune this example threshold for your workload."
- alert: HeimdallHangfireFailedJobs
expr: heimdall_hangfire_jobs_failed{job="heimdall-central"} > 0
for: 10m
labels:
severity: warning
annotations:
summary: Heimdall Central has failed background jobs
description: "Hangfire reports failed jobs for more than ten minutes. Review the protected Hangfire dashboard."
- alert: HeimdallHangfireMonitoringUnavailable
expr: heimdall_hangfire_monitoring_available{job="heimdall-central"} == 0
for: 2m
labels:
severity: warning
annotations:
summary: Heimdall cannot read Hangfire monitoring data
description: "The latest Hangfire monitoring polls have failed. Check Central and its database connectivity."
- alert: HeimdallNotificationDeliveryFailed
expr: heimdall_notifications_outbox_failed{job="heimdall-central"} > 0
for: 5m
labels:
severity: warning
annotations:
summary: Heimdall has terminal notification delivery failures
description: "The notification outbox has deliveries in terminal Failed state. Review Central logs without exposing recipient details."
- alert: HeimdallNotificationDeliveryOverdue
expr: heimdall_notifications_outbox_oldest_pending_due_age{job="heimdall-central"} > 300
for: 5m
labels:
severity: warning
annotations:
summary: Heimdall has notification deliveries waiting too long
description: "A due notification delivery has been pending for over five minutes. Scheduled retries are excluded until their next attempt is due."
- alert: HeimdallNotificationDeliveryLeaseExpired
expr: heimdall_notifications_outbox_expired_leases{job="heimdall-central"} > 0
for: 2m
labels:
severity: warning
annotations:
summary: Heimdall has notification deliveries with expired leases
description: "Some deliveries remain Processing after their lease expired and should be recovered by the dispatcher."
- alert: HeimdallNotificationOutboxMonitoringUnavailable
expr: heimdall_notifications_outbox_monitoring_available{job="heimdall-central"} == 0
for: 2m
labels:
severity: warning
annotations:
summary: Heimdall cannot read notification outbox metrics
description: "The latest outbox metrics poll failed. Check Central and database connectivity."
- alert: HeimdallAgentHasNotReceivedCentralConfiguration
expr: heimdall_agent_central_configuration_received{job="heimdall-agent", central_config_expected="true"} == 0
for: 10m
labels:
severity: warning
annotations:
summary: Heimdall Agent has not received Central camera configuration
description: "This Agent has not accepted a valid Central snapshot since startup. Enable this rule only for Agents expected to be assigned to Central sites."