Skip to main content

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

The wizard asks for:
  1. Alertmanager URL — base URL of your Alertmanager instance
  2. 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
The 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

Expected output:

Local Docker verification

Start a disposable Alertmanager without external credentials:
Seed one firing alert and one active silence so both investigation tools return real data:
From a source checkout, run 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:
The verifier should report cluster status ready. Exercise both tools through an agent turn:
The result should include the OpenSREHighLatency alert and the OpenSREMaintenance silence. Stop the disposable instance when finished:
This unauthenticated instance binds only to loopback and is for local verification only.

Troubleshooting

Security

  • Prefer a read-only reverse-proxy token — OpenSRE never writes to Alertmanager during investigations.
  • Store credentials in .env or your secret manager — not in source control.
  • For internal Kubernetes deployments, prefer network isolation over exposing credentials.