← Back to Blog

How to integrate Grafana into Pocket Alert?

Create a webhook or use an existing one

More information on creating a webhook can be found at link.

Add the webhook to Grafana

grafana add webhook

  1. Go to Alerting
  2. Go to Manage contact points
  3. Click on the "Add contact point" button
  4. Specify a name for your contact point
  5. Select Webhooks from the "Integration" drop-down list.
  6. Paste the link copied from Pocket Alert
  7. Click on the "Test" button
  8. If you have successfully received the test data, click on the “Save Contact Point” button

Final setup

After setting up the webhook in Grafana, you should see the message in the Pocket Alert app.

For an example in the webhook settings, you can use the following code:

Alertname: %alerts.0.labels.alertname%

Status: %alerts.0.status%
Start At: %alerts.0.startsAt%

Conclusion

In this guide, we have shown how to integrate Grafana alerts into the Pocket Alert app. We have demonstrated how to create a new webhook, add it to Grafana, and use it in the Pocket Alert app.

We have also provided an example of the message displayed in the Pocket Alert app. We hope this guide has been helpful. If you have any questions, feel free to ask. We are here to help you. Thank you for reading.

25.01.2025