Grafana alert notifications on your phone.

Get a push notification when a Grafana alert fires or resolves, with its summary, the affected instance, and buttons to open the panel or silence it.

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 Grafana

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 Grafana 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. In Grafana, go to Alerting > Contact points and add a contact point.
  3. Choose the Webhook integration and paste your webhook URL as the URL (method POST).https://••••••••/•••••••• your personal URL, shown after install
  4. Save, then use the contact point in a notification policy or directly in your alert rules. Test sends a sample.
  5. Point a **Webhook** contact point (**Alerting → Contact points**) at the URL above, then route alerts to it with a notification policy or directly from your alert rules. Leave the payload on the default; a custom payload template would break the recipe.
  6. For the best notifications, give your alert rules:
  7. a **`summary`** annotation, which becomes the message
  8. a **`severity`** label (`critical`, `warning`, …), which sets the priority
  9. Grafana can sign requests (HMAC) or send an Authorization header, but JustPush doesn't check either yet, so keep your endpoint URL private.
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// Grafana → alert notification
2// Fires when Grafana Alerting sends a notification to a Webhook contact point (firing or resolved).
3// Docs: https://grafana.com/docs/grafana/latest/alerting/configure-notifications/manage-contact-points/integrations/webhook-notifier/
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: "Grafana",
53 priority: resolved ? -1 : pick(SEVERITIES, severity, 1),
54 buttons: [
55 ...link(shown.panelURL ?? shown.dashboardURL ?? shown.generatorURL, "View panel"),
56 ...(resolved ? [] : link(shown.silenceURL, "Silence")),
57 ],
58 }
59}
Payload

The Grafana alert webhook

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

alert · sample.json
1{
2 "orgId": 1,
3 "state": "alerting",
4 "title": "[FIRING:1] High CPU Servers (web-1 critical)",
5 "alerts": [
6 {
7 "endsAt": "0001-01-01T00:00:00Z",
8 "labels": {
9 "instance": "web-1",
10 "severity": "critical",
11 "alertname": "High CPU",
12 "grafana_folder": "Servers"
13 },
14 "status": "firing",
15 "values": {
16 "A": 93.2
17 },
18 "panelURL": "https://grafana.example.com/d/servers?viewPanel=4",
19 "startsAt": "2026-09-29T08:01:00Z",
20 "silenceURL": "https://grafana.example.com/alerting/silence/new?alertmanager=grafana&matcher=alertname%3DHigh+CPU&matcher=instance%3Dweb-1",
21 "annotations": {
22 "summary": "CPU above 90% for 5 minutes"
23 },
24 "fingerprint": "57c6d9296de2ad39",
25 "valueString": "[ var='A' labels={instance=web-1} value=93.2 ]",
26 "dashboardURL": "https://grafana.example.com/d/servers",
27 "generatorURL": "https://grafana.example.com/alerting/grafana/cdz3/view"
28 }
29 ],
30 "status": "firing",
31 "message": "**Firing**\n\nValue: A=93.2\nLabels:\n - alertname = High CPU",
32 "version": "1",
33 "groupKey": "{}:{alertname=\"High CPU\"}",
34 "receiver": "JustPush",
35 "externalURL": "https://grafana.example.com/",
36 "groupLabels": {
37 "alertname": "High CPU"
38 },
39 "commonLabels": {
40 "instance": "web-1",
41 "severity": "critical",
42 "alertname": "High CPU"
43 },
44 "truncatedAlerts": 0,
45 "commonAnnotations": {
46 "summary": "CPU above 90% for 5 minutes"
47 }
48}
FAQ

Grafana 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 Grafana 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

Grafana on your phone in two minutes.

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