Skip to main content

Grafana

CompanyEstimated TimeVendor DocsOpen Source
Grafana Labs10 minutesviewv3.rb

What is Grafana?

Grafana is the open platform for beautiful analytics and monitoring.

How It Works

Grafana triggers user defined alerts by monitoring time series metrics.

  • When an alert is triggered ('alerting' state) in Grafana, an alert is created in PagerTree automatically.
  • When the alert is resolved ('ok' state) in Grafana, the alert is resolved in PagerTree automatically.

Integration Walkthrough

In this integration tutorial we will show you how to send alerts from Grafana into PagerTree. The estimated time for this integration is 10 minutes. We assume that you already have a PagerTree account and Grafana setup.

In PagerTree

  1. Create the integration by clicking the Grafana logo.
  2. Copy the Endpoint URL.

In Grafana

Create a Notification Channel

  1. Click Menu -> Alerting -> Notification Channels

    Grafana notification channels

    Navigate to Notification Channels.

  2. Click the ”+ New Channel” button

    Grafana new channel button

    Click the New Channel button.

  3. On the New Channel Form

    1. Name - An appropriate Name (example: PagerTree Webhook)
    2. Type - webhook
    3. Send on all alerts - checked
    4. Include image - checked
    5. URL - Paste the PagerTree Endpoint URL you copied
    6. Http Method - POST
  4. Click the Save button

    Grafana PagerTree Channel Configuration

    Grafana PagerTree Channel Configuration

Create an Alert

  1. Click Menu -> Dashboards -> Home

    grafana dashboard

    Navigate to your dashboard home.

  2. Click -> Home then select the dashboard that has a metric you would like to alert on.

    grafana dashboard

    Select a dashboard.

  3. Click the component you would like to add the alert to

    1. Click “Edit”

      grafana edit

      Click the "Edit" tab.

    2. Click the Alert Tab

    3. Click the “Create Alert” button

      grafana create alert

      Click the "Create Alert" button.

    4. Configure the appropriate parameters under Alert Config

    5. Click the Notifications Tab

      1. Ensure Send to has the PagerTree Webhook channel selected

        grafana  PagerTree Webhook

        Configure the Alert to send to the PagerTree Webhook.

  4. Click the Save Icon at the top of the page to save the dashboard

    grafana save icon

    Click the "Save" icon.

You have successfully completed the Grafana Integration.