feat: Alertmanager as a source for monitors
Organizations create receiver URLs for Alertmanager's webhook (token in the path or as bearer). A monitor of type alertmanager is down while an alert matching all its label matchers fires, and goes through the usual evaluation, so confirmations, maintenance, notifications and SLA apply. Results are recorded when the state changes and once per interval; alerts Alertmanager stops repeating end after the monitor's stale period, so a lost resolve cannot hold it down. An overview lists firing alerts with the monitors following them and creates a prefilled monitor for the others. Closes #91 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
16dfba817e
commit
b3e34613a3
19 files changed
+2118
-543
No files matched your search
@@ -152,7 +152,7 @@ func TestDynamicFamilies(t *testing.T) {
|
||||
en := catalogKeys(t)["en"]
|
||||
families := map[string][]string{
|
||||
"status.": {"up", "degraded", "down", "unknown", "paused", "maintenance"},
|
||||
"monitors.type_": {"http", "tcp", "tls", "dns", "icmp", "json", "prometheus", "heartbeat"},
|
||||
"monitors.type_": {"http", "tcp", "tls", "dns", "icmp", "json", "prometheus", "heartbeat", "alertmanager"},
|
||||
"channels.type_": {"webhook", "email"},
|
||||
"agents.kind_": {"checker", "statuspage"},
|
||||
"page.status.": {"operational", "degraded", "outage", "unknown", "maintenance"},
|
||||
|
||||
Reference in new issue
Block a user