Overview
OpenSRE queries Alertmanager for firing, silenced, and inhibited alerts so investigations can correlate the triggering alert with other concurrent signals.Prerequisites
- Alertmanager v0.20+ reachable from the machine running OpenSRE
- The Alertmanager URL (for example
http://alertmanager.monitoring.svc:9093) - Credentials if your instance uses authentication (bearer token or basic auth — not both)
Setup
Option 1: Interactive CLI
- Alertmanager URL — base URL of your Alertmanager instance
- Authentication method — one of:
- None — unauthenticated instances on an internal network
- Bearer token — reverse proxy that accepts a token
- Basic auth — username and password
Option 2: Environment variables
Use at most one auth method. Setting both a bearer token and basic auth credentials
is rejected.
Option 3: Persistent store
Credentials
Alertmanager itself often has no built-in API key UI. Credentials usually come from the reverse proxy or basic auth in front of the instance. Prefer a read-only token or user — OpenSRE only reads alerts and silences during investigations.Investigation tools
alertmanager_alerts
Typical uses:
- Discover other alerts firing at the same time as the triggering alert
- Check whether the triggering alert is already silenced or inhibited
- Understand blast radius from active alert labels
- Correlate Prometheus alerts (OOM, latency, error-rate) into one timeline
alertname label from the incoming alert is used as a filter by default so results
stay scoped to the incident.
alertmanager_silences
Typical uses:
- See whether a noisy alert was silenced on purpose
- Surface maintenance windows that overlap the incident
- Avoid false root-cause conclusions from suppressed alerts
Verify
Local Docker verification
Start a disposable Alertmanager without external credentials:uv run opensre integrations setup alertmanager.
Enter http://127.0.0.1:9093 as the URL and select None for authentication,
then verify the connection:
ready. Exercise both tools through
an agent turn:
OpenSREHighLatency alert and the
OpenSREMaintenance silence. Stop the disposable instance when finished:
Troubleshooting
Security
- Prefer a read-only reverse-proxy token — OpenSRE never writes to Alertmanager during investigations.
- Store credentials in
.envor your secret manager — not in source control. - For internal Kubernetes deployments, prefer network isolation over exposing credentials.