Skip to main content
If you already alert on your systems, Observer can use those alerts directly. You add an inbound source, point your alerting tool at its URL, and write mapping rules that send matching alerts to alert-backed metrics. An alert-backed metric is unhealthy or degraded while a routed alert fires, and healthy when none do. Status pages, incidents, SLOs and notifications treat it like any other metric. No agent is involved: senders deliver alerts to Observer over HTTPS.
PlansInbound sources are available from the Starter plan. Starter includes 3 sources, Pro 10 and Business 25. Enterprise limits are set per contract. Only enabled sources count.

How it works

  1. Your alerting tool sends a webhook to the source’s intake URL with the source’s secret.
  2. Observer parses the alerts and keeps the current state of each one (firing or resolved).
  3. Each firing alert is checked against the source’s mapping rules, in order. The first rule that matches decides which metric it drives and with which status.
  4. Each alert-backed metric takes the worst status among the alerts routed to it. With none firing, it is healthy.

Add a source

1

Create the source

In the console, open Alerts and find the Inbound sources section. Select Add inbound source, pick the sender (Prometheus Alertmanager, Grafana Alerting, Datadog, AWS CloudWatch, or Generic JSON), and name it.For Grafana and Generic JSON you can also turn on request signing. See Signed requests.The secret (and the signing secret, if you turned signing on) is shown once, when the source is created. Copy it now. Observer stores it hashed or encrypted and cannot show it again. If it leaks, rotate it from the source page; the old secret stops working immediately.
2

Follow the setup steps

The new source’s page opens on Set up this source: four steps that take an alert from your sender to a status page. Each step ticks itself off from what Observer receives, and the section goes away once all four are done.
  1. Connect your sender. The step shows the intake URL, a setup snippet for your sender with the URL filled in (see Set up each sender), and a test event to send. Done once a test event or a real alert arrives and arms the source.
  2. Add a rule. A rule form is open in the step. Drives metric starts on New alert-backed metric…, so the rule creates the metric it drives; name it, set the conditions, and add the rule. See Mapping rules. Done once a rule exists.
  3. Show it on a status page. Links open the page editor on Metrics, or create a status page, so you can add the rule’s metric. Done once a page shows it.
  4. Send a test alert. A test event only checks the connection and never reaches a rule. Fire a real alert from the sender with labels the rule’s conditions match, or wait for the next one. Done once a delivery matches a rule.
You can also create an alert-backed metric first: in the metric picker, choose Alert-backed under Inbound alerts. Its page lists the inbound rules that drive it. A rule can then target it under Drives metric.

Set up each sender

The intake URL has the form https://use.observer/api/intake/<source_id>. The id in the URL only locates the source and authorizes nothing on its own. Every request must also carry the secret.
Add a webhook receiver to alertmanager.yml and route the alerts you want to it. Observer reads webhook payload version 4.
alertmanager.yml
Keep send_resolved: true so recoveries reach Observer. Labels become the alert’s labels, and severity (or priority) becomes its severity. When an alert has no fingerprint, Observer derives one from its labels.

Generic JSON schema

The body is an object with an alerts array, or a single alert object on its own.

Arming

A source is armed by its first verified event: a request that passed the secret check (and the signature check, when signing is on) and could be parsed. A test event or a real alert both arm it. Requests with a wrong secret, a bad signature or a body that cannot be parsed never arm a source.
  • Before it is armed, the metrics the source drives read No data. Observer has no evidence yet that the sender can reach it, so it does not assume healthy.
  • Once it is armed, a metric with no firing alerts routed to it reads healthy.
Until the source is armed, step 1 of Set up this source carries the test event for its sender. Once it is armed, the source page shows the arming state under Arming, and the sender snippets under Sender setup. The sources list shows Not armed for a source that has not received a verified event yet.

Send a test event

A test event arms the source and is recorded under Deliveries with the outcome Test. It is never routed to a metric and never changes a status. For every sender except CloudWatch, a request with the header X-Observer-Test: 1 is a test event. The header is checked after the secret and the signature, so a test event proves the sender’s credentials.
Alertmanager has no test button. Run this from a host that can reach Observer, or wait for the first real notification. Either one arms the source. With a heartbeat configured, the first Watchdog notification arms it too.

Heartbeat alert

Without a heartbeat, a source that goes silent looks the same as a source with nothing firing: its metrics read healthy. To tell the two apart, configure an optional heartbeat alert on the source: an alert your sender keeps firing at all times, such as Alertmanager’s Watchdog. Under Heartbeat on the source page, turn it on and set:
  • Heartbeat alert: one or more conditions that identify it, written like mapping rule conditions. The default is alertname = Watchdog.
  • No data after: how many minutes without it before the source’s metrics read No data. The default is 10 minutes, and it can be set from 2 to 1440.
How it behaves:
  • The heartbeat is never routed as an alert. It never drives a metric, and a firing heartbeat only records that the sender is alive.
  • When no heartbeat has arrived within the window, the metrics the source’s enabled rules drive read No data, with the reason “Heartbeat alert missing”. This holds even if other alerts still arrive.
  • When the heartbeat resumes, the metrics return to the status their alerts give them.
  • Saving the heartbeat settings restarts the window, so a new heartbeat gets one full window to arrive. Turning the heartbeat off returns the metrics to the status their alerts give them.
These changes follow the metric’s confirmation time, like any other status change, and notify as usual. The sources list shows Heartbeat missing for a source whose heartbeat has stopped.

Authentication

Every request must carry the source’s secret (it starts with obs_in_). Observer accepts it from, in order:
  • Authorization: Bearer <secret>
  • Authorization: Basic ... with the secret as the password (any user name)
  • X-Observer-Token: <secret>, for senders that cannot set Authorization
The secret is never read from the query string. An unknown source and a wrong secret get the same 401. Observer stores the secret hashed and never stores the body of a request that failed authentication.

Signed requests

For Grafana and Generic JSON sources you can also require an HMAC-SHA256 signature over the raw request body. Unsigned requests, wrong signatures and timestamps more than 5 minutes from now are refused.
  • Grafana: set the contact point’s HMAC signature secret to the source’s signing secret. Grafana sends X-Grafana-Alerting-Signature. If you also configure the timestamp header X-Grafana-Alerting-Signature-Timestamp, the signature covers <timestamp>:<body>.
  • Generic JSON: send X-Observer-Timestamp (Unix seconds or milliseconds) and X-Observer-Signature: sha256=<hex(HMAC-SHA256(signing_secret, timestamp + "." + body))>. This is the same format Observer uses to sign its own outbound webhooks.

CloudWatch signatures

For CloudWatch sources, Observer verifies the AWS signature on every SNS message (signature versions 1 and 2) and only fetches signing certificates from Amazon SNS hosts. The secret in the subscription URL is still required.

Mapping rules

Rules are evaluated in order, and the first enabled rule whose conditions all match wins. A rule with no conditions matches every alert. Alerts that match no rule are kept on the source page but drive nothing. Conditions are Prometheus style and test one label each: Regexes match the whole value, as in Alertmanager. Patterns longer than 200 characters, nested repeats such as (a+)+, repeated alternations such as (a|aa)*, backreferences and lookarounds are refused. Each rule also names the alert-backed metric it drives (Drives metric). Pick an existing one, or choose New alert-backed metric… to create it with the rule. A rule can also note a Service: it is stored and shown with the rule in the list, and changes nothing else. It does not affect routing, the metric’s status or incidents. To list the metric under a service, add it on the service’s page. Each rule sets the status its alerts drive while firing:
  • Unhealthy or Degraded: every matching alert drives that status.
  • By severity: the alert’s severity decides. You can set overrides on the rule. Without an override, these defaults apply:
An alert whose severity Observer does not recognize is treated as unhealthy, so it never reads healthier than it is. Editing rules re-routes the source’s alerts that are firing at that time. An alert-backed metric needs at least one enabled rule on an armed source. When the last enabled rule that drives it is deleted or turned off, the metric reads No data at once, with the reason alert_no_rule (“No inbound rule drives it”), instead of staying healthy. Add or turn on a rule that drives it to bring it back.

Firing and resolved

  • An alert-backed metric is unhealthy if any routed alert maps to unhealthy, degraded if the worst maps to degraded, and healthy when no routed alert is firing.
  • Its value is a severity score: 0 healthy, 1 degraded, 2 unhealthy. The thresholds are fixed to match, so the value and the status always agree.
  • A matching alert changes the metric as soon as the delivery arrives: confirmation time starts at 0, because senders already debounce (for example Alertmanager’s for:). You can raise it on the metric; the change then waits for it and is checked every minute. Status changes follow the same confirmation time, incident, SLO and notification rules as any other metric. See Thresholds and confirmation time.
  • Late messages are ignored: a delayed firing for an alert that has since resolved, or a resolve for an older firing, does not change the state.
  • A new alert-backed metric reads No data until its source is armed. It never starts out healthy by assumption.

Auto-resolve

Auto-resolve is off by default. With it off, a firing alert stays firing in Observer until the sender sends a resolved message for it, however long that takes. Observer never resolves an alert on its own. Most senders send a resolved message when an alert clears. If yours does not (for example Alertmanager with send_resolved: false, Grafana with Disable resolved message on, or a script that only reports firing), or if a resolved message is lost, the metric stays unhealthy or degraded until you resolve it from the sender. For such senders, set Auto-resolve on the source (from 5 minutes to 7 days): a firing alert the sender has not repeated within that time is resolved.

Responses

Raw payloads and retention

The source page lists each authenticated delivery under Deliveries, and you can open one to see its raw payload. Raw payloads are kept for 90 days. Resolved alerts are removed 90 days after they resolve. Pausing a source makes it answer 403 and change nothing. Deleting a source stops its URL immediately and removes its rules, alerts and delivery log. Metrics it drove follow the alerts of any other source whose enabled rules drive them; a metric no enabled rule drives any more reads No data (alert_no_rule). Every change to a source, its rules or its secrets is recorded in the audit log.