Prometheus alertmanager alert notifications on your phone.

Get a push notification when Prometheus Alertmanager fires or resolves an alert, with its summary and the affected instance.

How it works

Three steps to your first push

STEP 01

Install the recipe

One click in Studio gives you a personal webhook URL.

STEP 02

Paste your URL into Prometheus

Add it as a webhook for Alert.

STEP 03

Get a push on your phone

With the text, sound and buttons from the recipe.

Setup

How to set up the Prometheus alert webhook

  1. Click Install in Studio and sign in. The recipe is added to your account and you get a personal webhook URL.
  2. Add a webhook receiver to your Alertmanager configuration with your webhook URL as its url (see the setup notes below).https://••••••••/•••••••• your personal URL, shown after install
  3. Route the alerts you want to that receiver and reload Alertmanager.
  4. Add a webhook receiver to `alertmanager.yml` and route alerts to it:
  5. ```yaml
  6. receivers:
  7. name: justpush
  8. webhook_configs:
  9. url: "your webhook URL"
  10. send_resolved: true
  11. route:
  12. receiver: justpush # or add it as a child route next to your existing receivers
  13. ```
  14. Reload Alertmanager (`curl -X POST http://localhost:9093/-/reload`, or restart it).
  15. Give your alerting rules a **`summary`** annotation (the message) and a **`severity`** label (`critical`/`page`, `warning`, …) to set the priority.
The code

What runs when the webhook arrives

Studio calls handleRequest(request) with the incoming webhook and sends the message it returns. It's yours after install; change anything.

transform.js
1// Prometheus Alertmanager → alert notification
2// Fires when Alertmanager sends a notification to a webhook receiver (firing or resolved).
3// Docs: https://prometheus.io/docs/alerting/latest/configuration/#webhook_config
4
5// The "severity" label, if your rules set one → push priority while firing.
6const SEVERITIES = { critical: 2, page: 2, high: 1, error: 1, warning: 0, warn: 0, info: -1 }
7
8// Look a key up in one of the tables above, ignoring inherited names like "toString".
9function pick(table, key, fallback) {
10 return Object.prototype.hasOwnProperty.call(table, key) ? table[key] : fallback
11}
12
13// Only link to real http(s) URLs.
14function link(url, cta) {
15 return typeof url === "string" && /^https?:\/\//.test(url) ? [{ cta, url }] : []
16}
17
18function handleRequest(request) {
19 const body = request.body || {}
20 const alerts = Array.isArray(body.alerts) ? body.alerts : []
21
22 // Guard: only alert notifications, so anything else on this integration stays quiet.
23 if (!alerts.length || !["firing", "resolved"].includes(body.status)) {
24 console.log("Not an alert notification — skipping")
25 return null
26 }
27
28 // One notification can group several alerts; describe the group by its first one.
29 const firing = alerts.filter((alert) => alert.status === "firing")
30 const shown = firing[0] ?? alerts[0]
31 const labels = { ...(body.commonLabels ?? {}), ...(shown.labels ?? {}) }
32 const annotations = { ...(body.commonAnnotations ?? {}), ...(shown.annotations ?? {}) }
33 const name = labels.alertname ?? "Alert"
34 const resolved = body.status === "resolved"
35
36 const title = resolved
37 ? `✅ Resolved: ${name}`
38 : firing.length > 1
39 ? `🔥 ${firing.length} alerts firing: ${name}`
40 : `🔥 ${name}`
41
42 // Prefer the human-written summary, then the description, then the triggering value.
43 const detail = annotations.summary ?? annotations.description ?? shown.valueString ?? ""
44 const where = labels.instance ?? labels.host ?? labels.job
45 const message = [detail, where && !String(detail).includes(where) ? where : null].filter(Boolean).join(" — ")
46
47 const severity = String(labels.severity ?? "").toLowerCase()
48
49 return {
50 title,
51 message: message || (resolved ? "Back to normal" : "Alert is firing"),
52 topic: "Prometheus",
53 priority: resolved ? -1 : pick(SEVERITIES, severity, 1),
54 buttons: [
55 ...link(shown.panelURL ?? shown.dashboardURL ?? shown.generatorURL, "View in Prometheus"),
56 ...(resolved ? [] : link(shown.silenceURL, "Silence")),
57 ],
58 }
59}
Payload

The Prometheus alert webhook

This is what Prometheus sends to your URL for alert. It is a sample, trimmed to the fields recipes use.

alert · sample.json
1{
2 "alerts": [
3 {
4 "endsAt": "0001-01-01T00:00:00Z",
5 "labels": {
6 "job": "node",
7 "instance": "db-1:9100",
8 "severity": "page",
9 "alertname": "InstanceDown"
10 },
11 "status": "firing",
12 "startsAt": "2026-09-29T08:01:00Z",
13 "annotations": {
14 "summary": "db-1:9100 has been down for more than 5 minutes"
15 },
16 "fingerprint": "a3f1c2b4d5e6f708",
17 "generatorURL": "http://prometheus.example.com:9090/graph?g0.expr=up+%3D%3D+0&g0.tab=1"
18 }
19 ],
20 "status": "firing",
21 "version": "4",
22 "groupKey": "{}:{alertname=\"InstanceDown\"}",
23 "receiver": "justpush",
24 "externalURL": "http://alertmanager.example.com:9093",
25 "groupLabels": {
26 "alertname": "InstanceDown"
27 },
28 "commonLabels": {
29 "job": "node",
30 "instance": "db-1:9100",
31 "severity": "page",
32 "alertname": "InstanceDown"
33 },
34 "truncatedAlerts": 0,
35 "commonAnnotations": {
36 "summary": "db-1:9100 has been down for more than 5 minutes"
37 }
38}
FAQ

Prometheus alertmanager alert notifications: questions

Does this work on iPhone and Android?

Yes. Install the JustPush app from the App Store or Google Play and sign in. Every phone signed in to your account gets the notification.

Do I need to write code?

No. Install the recipe in Studio, paste your webhook URL into Prometheus and you are done. The code is there if you want to change the text, the sound or the buttons.

Can I change what the notification says?

Yes. After install the recipe's code is yours. Edit it in Studio and test it against the sample payload before you save.

What does it cost?

JustPush is free for 30 days. After that it's $19.99 a year, or $39.99 once. There is no extra charge for recipes.

Ready when you are

Prometheus on your phone in two minutes.

Install the recipe, paste one URL, done. Free for 30 days, no credit card required.