NTFY InfluxDB

NTFY Dashboard written in Flux

NTFY InfluxDB screenshot 1
NTFY InfluxDB screenshot 2

A useful and easy to setup dashboard for NTFY. The original dashboard mentioned in the NTFY docs had some bugs and was rather outdated. I used this and converted it from Prometheus to InfluxDB2.

Instructions:

  1. Enable metrics in the NTFY server (see docs for more info).
  2. Create a Bucket InfluxDB2. (No need to save the token, we won’t use it).
  3. There were a few options for this step, but ultimately the prometheus.scrape method was fastest + easiest to set up and super reliable. To use this method, first create a task in InfluxDB
    1. Give it a name.
    2. Set the scrape time.
    3. Paste the following in the task contents
      import "experimental/prometheus"
      
      prometheus.scrape(url: "http://example.com/metrics")
          |> to(bucket: "example-bucket")
    4. Change the URL to your NTFY server.
    5. Change the bucket name to the bucket you created in Step 2.
    6. Save the task.
  4. Verify data is being stored in the bucket. (You can force run the task a few times if your impatient like me or if your delay is too long)
  5. Create an InfluxDB Custom API token for Grafana with read privileges to the bucket. Copy the token.
  6. Add InfluxDB2 data source as described in this Grafana docker-compose guide. (Adding a default bucket in Grafana is optional).
  7. Import this dashboard and set the appropriate Datasource, Bucket and Server.
Revisions
RevisionDescriptionCreated
InfluxDB

InfluxDB

by Grafana Labs
Grafana Labs solution

Easily monitor InfluxDB, an open source time series database, with Grafana Cloud's out-of-the-box monitoring solution.

Learn more

Get this dashboard

Import the dashboard template

or

Download JSON

Datasource
Dependencies