Alerts to incidents

When a monitor goes down, or Prometheus Alertmanager or Grafana fires an alert, Upstreamr writes a draft incident for you. Nobody outside your team sees it until you publish it.

Every plan. Drafts from your monitors are on by default; inbound alerts need an endpoint, under Alerts to incidents.

Guides and contents

How a draft opens

A monitor that goes down, once its probes agree, opens a draft titled “component is down” for the component it watches. Your owners and admins get the usual alert, with a link to the draft. The status page shows the component’s status as before; no incident is published and no subscriber is told.

  • One draft per component outage: other monitors and alerts on the same component join it.
  • No draft while the component is under maintenance.
  • A monitor that goes down and up again within 30 minutes reopens its draft instead of opening another.
  • Monitors without a component open no draft: they aren’t on any page.

Review and publish

Drafts wait under Incidents → Drafts, counted in the menu. Review & publish opens the usual incident form with the draft filled in: change the title, the first update, the impact or the components, start from a template, then Publish incident. It goes on every page that shows the component, and subscribers are notified as for any incident. Discard drops a draft you don’t need.

The monitor’s error and the alert’s description stay in the admin; they are never published.

When it recovers

If every monitor and alert behind a draft recovers before anyone publishes it, the draft closes by itself and stays in the history as Recovered before publishing.

Once an incident is published, its page in the admin says when everything behind it has recovered and offers the proposed update: Post “Resolved” update. If you switch on Resolve published incidents by themselves, Upstreamr posts that update after five minutes without a new failure.

Alert history, send again and samples

Under Alerts → History is every alert of the last 35 days, sent or held: what it said, when, and each email and channel it went to with the result of every attempt. Filter by kind, monitor or probe, component, channel, result and day.

Preview or send again on any alert shows it as each channel gets it, then sends it again to everyone who gets alerts now, to one channel or to your own email. Under Samples you can see every kind of alert (down, recovered, flapping, settled, certificate or domain expiring, probe offline and back, provider notice, draft or published incident, hourly cap, test) with details from one of your monitors or probes, and send it to one channel or to yourself. Previews come from the same code that sends real alerts: the email in light and dark, Discord, Slack, Microsoft Teams and the exact webhook body.

  • Replays start with “[Replay]” and say when the alert was first sent; samples start with “[Sample]”. Webhooks get "type": "alert.replay" or "type": "alert.sample" instead of "alert", signed the same way.
  • They change nothing: no status, uptime, incident, draft or flapping state, and they don’t pause a channel that fails.
  • They don’t count toward the hourly cap of 30 alerts, so they never hold back a real alert. Ten a minute per organization.
  • Owners and admins send them; every member can look.

Weekly and monthly uptime reports

Every Monday at 08:00 your owners, admins and notify-only members get an email about the week before, and on the 1st about the month before: uptime across your components with the change from the period before, a day-by-day strip, the monitors that need attention, each component’s and monitor’s uptime, average and p95 response times, the incidents and maintenance with how long they lasted, maintenance coming up, the alerts that went out by email and channel with any failed deliveries, and how many subscribers joined and left. It links straight into the admin.

  • Each person switches the weekly and the monthly report on or off for themselves under Alerts → Settings → Uptime reports, and picks its language (notify-only members on their Alerts page). Editors and incident responders can switch them on too; viewers and billing members don’t get them. Every email has a one-click unsubscribe link.
  • Reports go out at 08:00 in your first page’s time zone, or one an owner or admin chooses there, following the clocks when they change. Their days run from midnight UTC, like your page’s uptime and Reports, so the figures are the same.
  • Samples shows this week’s or this month’s report as you’d get it, light or dark, desktop or phone, and sends it to your own email.
  • On every plan, and never counted as notification email.

Settings

Under Alerts to incidents:

  • Open a draft when a monitor goes down: on by default.
  • Draft text: the built-in text, or one of your incident templates, with {component} and the other placeholders filled in.
  • Publishing: Wait for review is the default. You can choose Publish immediately, or Publish if still down after a delay of 1 to 120 minutes; a draft that recovers before then is never published. Drafts without a component always wait for you.

Alertmanager, Grafana and other tools

Choose Add endpoint to get a URL for your alerting tool. It is shown once; only a hash is stored. Each alert names its component with a component label (or another label you choose); a component’s name works as it is, and other values can be mapped to a component. A firing alert opens or joins a draft; the same alert resolved closes it.

receivers:
  - name: upstreamr
    webhook_configs:
      - url: 'https://app.upstreamr.com/api/v1/inbound/inb_…'
        send_resolved: true
        max_alerts: 50

In Grafana, add a contact point of type Webhook with the same URL. Any other tool can post JSON:

curl -X POST 'https://app.upstreamr.com/api/v1/inbound/inb_…' \
  -H 'content-type: application/json' \
  -d '{"title":"API error rate above 5%","status":"firing",
       "component":"API","severity":"critical","fingerprint":"api-5xx"}'

critical or major means a major outage, warning or minor a partial outage, info degraded performance. Send "status":"resolved" with the same fingerprint when it’s fixed. At most 50 alerts per request and 60 requests a minute per endpoint.