# Get Grafana alerts over ntfy

**URL:** <https://forum.yunohost.org/t/get-grafana-alerts-over-ntfy/41868>\
**Category:** Tutorials\
**Tags:** english\
**Created:** [March 20, 2026, 10:28pm UTC](https://forum.yunohost.org/t/get-grafana-alerts-over-ntfy/41868 "2026-03-20T22:28:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![u9000](https://forum.yunohost.org/user_avatar/forum.yunohost.org/u9000/32/13447_2.png) [@u9000](https://forum.yunohost.org/u/u9000)\
**Post date:** [March 20, 2026, 10:28pm UTC](https://forum.yunohost.org/t/get-grafana-alerts-over-ntfy/41868/1 "2026-03-20T22:28:10Z")

</div>

**What app is this about, and its version** : Grafana, ntfy  
**What YunoHost version are you running** : 12.1.39  
**What type of hardware are you using** : Other(?)

### Describe your issue

i got grafana to work with ntfy, but it was a pain in the ass to figure out so here’s how to do it if you want:

# Setting up the alert contact point

1. In Grafana, go to _Home \> Alerting \> Contact points_ and press “create contact point”.
2. Set the integration to “webhook” and the URL to “https://ntfy.sh/” (or your self hosted version). Importantly, you want to link to the root URL, not the specific channel you’re trying to send to.
3. In “Optional webhook settings”, set “HTTP method” to POST and paste your ntfy access token in “Authorization Header - Credentials”.
4. Scroll down to “Custom Payload”, press “add”, press “edit payload template”, and then press “Enter custom payload template”.
5. Enter the below JSON into the custom payload template (but update it for whatever event you’re trying to send an alert about)

```json
{
    "topic": "ntfy-topic-name",
    "message": "RAM usage is above 80%!",
    "title": "80% RAM Usage",
    "tags": ["warning"],
    "priority": 4
}

```

# Setting up the alert condition

For this example we’re going to assume you want to alert when RAM usage is at 80%. Also, it is tremendously helpful to have a dashboard like Prometheus Node Exporter Full already setup because then you can just copy the queries.

1. In Grafana, go to _Home \> Alerting \> Alert rules_ and press “New alert rule”
2. In a new tab, go to the dashboard with the metric you want to copy, and press “edit dashboard”.
3. When you look at the code for the RAM Used metric, we see it’s the following:

```auto
clamp_min((1 - (node_memory_MemAvailable_bytes{instance="$node", job="$job"} / node_memory_MemTotal_bytes{instance="$node", job="$job"})) * 100, 0)

```

1. Back in the alert creation tab, select `node_memory_MemAvailable_bytes` as the first metric.
2. We know that the filters we need are `instance="$node", job="$job"`, so set them as such. You’ll need the actual values of the variables though, which are at the top of the dashboard page.
3. Now add a second query for `node_memory_MemTotal_bytes`.
4. Then in the “Expressions” section of the page, delete the threshold expression.
5. Add a math expression. The original formula was `node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes * 100`. We’re going to use the same formula here, but the variable syntax is different, so it will actually need to be `$A / $B * 100`
6. Finally, add a threshold expression. Set “Input” to C (which is the math expression we just made), and “is above” to 80.
7. Press “Set ‘D’ as alert condition”.
8. Set up sections three and four on that page however you like.
9. In “5. Configure notifications”, set the contact point to the one you created earlier.
10. Press save

### Share relevant logs or error messages

-

---

<div class="post-metadata">

**Author:** ![u9000](https://forum.yunohost.org/user_avatar/forum.yunohost.org/u9000/32/13447_2.png) [@u9000](https://forum.yunohost.org/u/u9000)\
**Post date:** [March 20, 2026, 10:31pm UTC](https://forum.yunohost.org/t/get-grafana-alerts-over-ntfy/41868/2 "2026-03-20T22:31:16Z")

</div>

[reply needed to mark topic as solved]

---

<div class="post-metadata">

**Author:** ![ewilly](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ewilly/32/12681_2.png) [@ewilly](https://forum.yunohost.org/u/ewilly)\
**Post date:** [March 23, 2026, 7:42am UTC](https://forum.yunohost.org/t/get-grafana-alerts-over-ntfy/41868/3 "2026-03-23T07:42:35Z")

</div>

Thanks 🙂  
I add it to a wiki page in the package: [Get Grafana alerts over ntfy · YunoHost-Apps/grafana\_ynh Wiki · GitHub](https://github.com/YunoHost-Apps/grafana_ynh/wiki/Get-Grafana-alerts-over-ntfy)

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [April 7, 2026, 7:42am UTC](https://forum.yunohost.org/t/get-grafana-alerts-over-ntfy/41868/4 "2026-04-07T07:42:58Z")

</div>

Closed on April 7, 2026, 7:42am UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
