Skip to content

Alert style with a grafana rule

To setup a rule, you need to go to the Alerting tab and click on New alert rule.

Title

The title is the title of the notification.

Grafana

This is how you can setup the title of the notification:

Grafana title

NTFY

Result:

NTFY title

Summary

The summary is the summary of the notification.

Grafana

This is how you can setup the summary of the notification:

Grafana summary

NTFY

Result:

NTFY summary

Labels

The labels are the labels of the notification.

Grafana

This is how you can setup the labels of the notification:

Grafana labels

or

Grafana labels

NTFY

Result:

NTFY labels

Priority

This is the list of the priorities available and their icons:

Warning

normal is the default notification behavior if the NTFY_DEFAULT_PRIORITY variable is not defined

Priority label Icon Ntfy Description
critical min priority Really long vibration bursts, default notification sound with a pop-over notification.
high min priority Long vibration burst, default notification sound with a pop-over notification.
normal (none) Short default vibration and sound.
low min priority No vibration or sound. Notification will not visibly show up until notification drawer is pulled down.
min min priority No vibration or sound. The notification will be under the fold in "Other notifications".

Grafana

This is how you can setup the labels to set the priority of the notification:

NTFY labels Priority

NTFY

Result:

NTFY buttons

Phone Calls

It's possible to receive phone calls via Twilio on firing messages. But keep in mind that only the user belonging to the configured NTFY_TOKEN will receive a phone call. The other users subscribed to the configured NTFY_TOPIC will NOT receive a phone call. That's a limitation in ntfy and not grafana-to-ntfy.

Grafana

Set a custom label named call_ntfy with either yes or the phone number to be called as the value. Remember that only a verified phone number can be used here.

NTFY

Setup up support for phone calls via Twilio as described in the configuration documentation. Verify your phone number as described in the publish documentation.

Dashboard and panel buttons

The dashboard and panel buttons are the buttons of the notification.

Grafana

This is how you can setup the dashboard and panel buttons of the notification:

Grafana buttons

NTFY

Result:

NTFY buttons