Skip to content

Configure Alertmanager

Send Alertmanager notifications to Pagera with an organisation integration key (pgr_…). Personal API tokens (pgrt_…) are not accepted on the ingest endpoint.

Create an integration key

  1. Open Pagera and select the organisation.
  2. Go to Settings → Integrations and create or open an Alertmanager integration.
  3. Copy one of the two integration keys (slot A or B). Only owners and admins can view them.

Minimal Alertmanager config

Point a receiver at the Pagera webhook and send the integration key as a Bearer credential. Replace the placeholder below with a key from Pagera.

route:
  receiver: pagera
  group_by: [alertname]

receivers:
  - name: pagera
    webhook_configs:
      - url: https://api.pagera.eu/v1/alert/alertmanager-webhook
        send_resolved: true
        http_config:
          authorization:
            type: Bearer
            credentials: pgr_0000000000000000000000000000000000000000

Behaviour

Alertmanager status Pagera
firing Opens a new alert, or updates the open alert with the same labels
resolved Closes the alert when send_resolved is true

Alerts are deduplicated by label fingerprint. A firing alert notifies registered devices only when that open alert is first created. A later firing with the same labels (a repeat, or a new summary) updates the open alert and does not send another notification. A resolved webhook closes it and does not notify. A firing after the alert has resolved opens a new alert and notifies again. Keep send_resolved: true so resolved groups close the matching Pagera alert.

Owners, admins, and members can also resolve an open alert from Pagera, with POST /v1/alerts/{id}/resolve, or with the MCP tool resolve_alert. That closes the current alert the same way a resolved webhook does: no notification, and a later firing opens a new alert. Viewers cannot resolve. An alert that is already resolved returns 409.

Inactivity monitor

Owners and admins set Inactivity monitor (minutes) on an integration. 0 disables it. When Pagera has not received a webhook for that many minutes, it opens an alert named Inactivity: <integration> has not been heard from for <n> minutes and notifies on-call members. The alert's labels and annotations include the integration, the configured minutes, when Pagera last heard from it, and the alert filter. The next webhook resolves the alert. Resolving it by hand closes that row only. If the integration is still quiet, the next check opens a new one. Pagera checks about once a minute.

A quiet Alertmanager still sends the Watchdog heartbeat (expr: vector(1), label alertname=Watchdog). That webhook is enough to keep the monitor quiet. The 15-minute monitor example routes that heartbeat inside a 15-minute window.

Alert filter

Each integration has a CEL expression over the incoming alert. labels and annotations are string maps. A firing alert that matches is not stored. The webhook still counts as the integration being heard from, so Watchdog keeps the inactivity monitor quiet without opening an alert. A resolved alert is always applied, so a Watchdog that was opened before the filter can close. An empty filter keeps every alert.

The default expression matches label alertname=Watchdog:

has(labels.alertname) && labels.alertname == "Watchdog"

Clear the field if Watchdog should open a Pagera alert like any other firing alert.

Alertmanager 15-minute monitor example

Set Inactivity monitor (minutes) to 15 and leave the default alert filter.

kube-prometheus-stack (chart docs) and victoria-metrics-k8s-stack (chart docs) ship a Watchdog rule that stays firing (expr: vector(1)). That heartbeat keeps the monitor quiet.

route:
  receiver: pagera
  routes:
    # Resend the stack Watchdog inside the 15-minute monitor.
    # Other alerts stay on the parent repeat.
    - matchers:
        - alertname="Watchdog"
      receiver: pagera
      group_by: ["alertname"]
      group_wait: 30s
      group_interval: 14m
      repeat_interval: 13m

API reference

Full request schema: POST /v1/alert/alertmanager-webhook.