Grafana
Send monitoring events from Grafana to BigPanda.
Supported Versions | Type | Authentication Type |
---|---|---|
Grafana v5.0.0-v9.0.0 | Webhook | Org Bearer Token |
To use this integration, you can configure a webhook notification channel in Grafana. This channel forwards alerts to the Grafana integration where they are normalized and transmitted to BigPanda. BigPanda then processes and correlates the alert data from Grafana to create and maintain up-to-date incidents in BigPanda.
Grafana 8+ Alerts
Grafana introduced an update to the format of alert notifications in v8+. This version now uses Prometheus as its Alert Manager rather than its legacy solution. If using version 8 or later, select the Grafana (version 8+). If using earlier versions (5.0 - 7.9), select Grafana.
Open Integration Manager
The Open Integration Manager is available for use with Grafana v8+. For more information, see the Open Integration Manager documentation.
Payload Size
Alert payloads must be 6MB or smaller. Larger payloads will fail to process with BigPanda. We recommend reviewing your configurations to ensure that only actionable, useful information is being sent to BigPanda.
Key Features
- Uses native webhook notification channel in Grafana to forward alerts to BigPanda
- Automatically resolves incidents in BigPanda when they resolve in Grafana
- Extensible alert configuration
- Intelligently correlates alerts from Grafana to help you understand and respond faster to production issues
Data Model
BigPanda normalizes alert data from Grafana into tags. You can use tag values to filter the incident feed and to define filter conditions for Environments. The primary and secondary properties are also used during the deduplication and correlation processes. The following specifies the mapping of Grafana alert properties to BigPanda tags.
BigPanda Property | Grafana Property |
---|---|
primary_property | "title" |
secondary_property | "ruleName" |
status | state |
description | message |
title | title |
ruleName | ruleName |
ruleUrl | ruleUrl |
imageUrl | imageUrl |
source_system | "grafana" |
metric | evalMatches[n].metric |
metric_value | evalMatches[n].value |
tag_name | tags.tag_name evalMatches[n].tags.tag_name |
Install the Integration
Grafana v8.0
Grafana 8+ Alerts
Grafana introduced an update to the format of alert notifications in v8+. This version now uses Prometheus as its Alert Manager rather than its legacy solution. If using version 8 or later, select the Grafana (version 8+). If using earlier versions (5.0 - 7.9), select Grafana.
Create an App Key
Create an app key in BigPanda.
Integration Specific
You'll need a separate app key for each integrated system.
Setup Contact Point in Grafana
-
Login to your Grafana instance.
-
In the left sidebar, click the alerting bell icon, then open the Contact points tab.
-
Click the New contact point button.
-
Fill in the Channel Settings as follows:
- Name: Useful contact point name, such as
BigPanda
- Contact point type: Webhook
- URL:
https://integrations.bigpanda.io/prometheus/alerts?access_token=<Your Org Bearer Token>&app_key=<Your App Key>
- Name: Useful contact point name, such as
-
Fill in the Optional Webhook Settings:
- Http Method:
POST
- HTTP Basic Authentication - Username: leave blank
- HTTP Basic Authentication - Password: leave blank
- Http Method:
-
Click Test to ensure the configuration is correct. If successful, a green toast message should appear saying Test Notification Sent and you should receive an alert in BigPanda.
-
Click Save contact point.
Assign Contact Point to Alerts
Notification policies are used to route alerts to different contact points. Repeat the following process for every alert you wish to send to BigPanda:
- In the left sidebar, click the alerting bell icon, then open the Notification policies tab.
- Either modify the root policy or add new policy for specific routing.
- Save the policy.
Advanced Configuration
Sending Custom Properties with Alerts
You can use the BigPanda Grafana integration to send custom attributes along with your alerts. To do this, add details for each alert you wish to send custom attributes for.
- Within the Alert rules, locate and open the rule with the alert you wish to edit.
- Go to Add details for your alert section.
- Click Add Info to add additional tags. Select Add new to add new tag names as needed.
- Click Save and exit.
Earlier Grafana Versions
Grafana 8+ Alerts
Grafana introduced an update to the format of alert notifications in v8+. This version now uses Prometheus as its Alert Manager rather than its legacy solution. If using version 8 or later, select the Grafana (version 8+). If using earlier versions (5.0 - 7.9), select Grafana.
Create an App Key
Create an app key in BigPanda.
Integration Specific
You'll need a separate app key for each integrated system.
Setup Notification Channel in Grafana
-
Login to your Grafana instance
-
In the left sidebar click the alerting bell icon then open the Notification channels tab
-
Click the New channel button
-
Fill in the Channel Settings as follows:
- Name: Useful channel name, such as
BigPanda
- Type:
webhook
- Send on all alerts: Check the box if you’d like to send all alerts to BigPanda. If not then you will need to manually add the BigPanda notification channel to every alert
- Include image: Check the box if you’d like a link to an image of the metric to be available from the incident in BigPanda
- Name: Useful channel name, such as
-
Fill in the Webhook Settings as follows:
- URL:
https://integrations.bigpanda.io/grafana/alerts?access_token=<Your Org Bearer Token>&app_key=<Your App Key>
- Http Method:
POST
- Username: leave blank
- Password: leave blank
- URL:
-
Click Send Test to ensure the configuration is correct. If successful a green toast message should appear saying Test Notification Sent and you should receive an alert in BigPanda
-
Click Save to save the notification channel
Assign Notification Channel to Alerts
Note: You can skip this step if you chose to send all alerts to the notification channel in the previous step.
Repeat the following process for every alert you wish to send to BigPanda:
- Under the configuration for the alert click on Notifications
- Click the + icon in the Send Top section of the form
- Select the BigPanda notification channel created in the previous step
- Save the dashboard
Advanced Configuration
Sending Custom Properties with Alerts
You can use the BigPanda Grafana integration to send custom attributes along with your alerts. You do this by adding a configuration block to the notification message on each alert you want to send custom attributes for.
-
Locate and open for editing the panel with the alert you wish to edit
-
Open the Alert > Notifications section
-
In the Message field add the
[bigpanda_config]
config block to the end, customizing as needed.Your normal alert message text, no need to change me... [bigpanda_config] my_custom_prop_1 = value_1 my_custom_prop_2 = value_2
The configuration section is
INI
format and supports comments and arrays according to the INI format. You can add as many custom properties as you wish.Note: All text after the
[bigpanda_config]
section will be treated as part of the configuration. All text before will be processed normally as part of the alert description. -
Save the dashboard
Delete the Integration
Deleting an integration requires that you remove the integration in both the integrated system and BigPanda. We recommend that you first uninstall the integration on the integrated system to prevent traffic from being sent and rejected by BigPanda, since the app key will not exist once you delete the integration in BigPanda.
Caution During Replacement
When replacing an existing integration with a new tool or system, we recommend configuring the new integration first to ensure no data is lost.
Deactivate Inbound Integration
If you want to stop sending data to BigPanda but don’t want to delete your integration, you can temporarily deactivate it.
To deactivate an inbound integration:
- In BigPanda, navigate to the Integrations tab and select the desired integration from the list. This will open integration details on the right side of the window.
- At the top of the integration details, click the Active/Inactive toggle next to the application name to change the status of the integration.
In the integrations list, inactive integrations will be marked with a gray bar.
Stop Sending Data to BigPanda
- Login to your Grafana instance.
- In the left sidebar click the alerting bell icon then open the Notification channels tab.
- Locate the BigPanda notification channel and click the red X button to delete it.
- Remove any
[bigpanda_config]
blocks you configured in your alert messages.
Delete the Integration in BigPanda
Take the following steps to delete the integration from BigPanda:
- In BigPanda, navigate to the Integrations tab and select the desired integration from the list.
- In the integration details on the right of the page, click the trash icon, then confirm you want to delete the integration. The integration will be removed immediately.
️Automatic Alert Resolution for Deleted Integrations
All active alerts from the integration will be resolved after deletion.
Data Removal
This procedure does not remove any data from the integrated system.
Updated 4 months ago