Grafana Integration
Learn how to integrate Grafana alerts with Echobell for instant notifications
Grafana Integration
Grafana is a popular open-source analytics and monitoring solution. By integrating Grafana with Echobell, you can receive instant notifications when your metrics trigger alerts. This guide will walk you through setting up Grafana alerts with Echobell.
Prerequisites
- An Echobell account with at least one channel created
- Access to a Grafana instance (version 8.0 or later)
- Administrative access to configure alert notifications in Grafana
Setup Overview
- Create an Echobell channel
- Configure the notification templates
- Get the webhook URL
- Set up Grafana contact point
- Create alert rules in Grafana
Step-by-Step Guide
1. Create an Echobell Channel
- Open the Echobell app
- Create a new channel (e.g., "Grafana Alerts")
- Choose a distinctive color for easy identification
2. Configure Notification Templates
Set up templates that will format your Grafana alerts effectively:
Title Template:
Body Template:
These templates will work with Grafana's alert payload structure.
3. Get the Webhook URL
- In your channel settings, locate the Triggers section
- Copy the webhook URL provided
- Keep this URL secure as it will be used in Grafana's configuration
4. Configure Grafana Contact Point
- In Grafana, go to Alerting → Contact points
- Click New contact point
- Set the following:
- Name: "Echobell"
- Type: "Webhook"
- URL: Your Echobell webhook URL
- HTTP Method: POST
- Content type: application/json
- Configure the message template:
5. Create Alert Rules
- Navigate to Alerting → Alert rules
- Create a new alert rule or edit an existing one
- In the rule configuration:
- Set appropriate conditions for your metrics
- Select the "Echobell" contact point
- Configure alert evaluation criteria
Testing the Integration
To verify your setup:
- Create a test alert rule with a condition that will trigger quickly
- Wait for the condition to be met
- Check your Echobell app for the alert notification
- Verify that all alert variables are properly displayed
- Click the notification to access the linked Grafana dashboard
Alert Notification Types
When subscribing to the Grafana alerts channel, configure these critical notification types:
- Use Time Sensitive for urgent critical system alerts and emergency notifications
- Use Calling for severe outages, critical threshold breaches, or emergency alerts
- Use Normal for standard informational alerts and routine notifications
Best Practices for Alert Management
-
Alert Template Organization
- Keep alert templates clear and consistent
- Include critical metric information
- Use appropriate formatting for numbers and timestamps in notifications
- Ensure emergency alerts are distinctly formatted
-
Critical Alert Configuration
- Set appropriate alert thresholds to avoid notification fatigue
- Use meaningful emergency alert names
- Include sufficient context in critical alert messages
- Configure priority levels for different types of notifications
-
Alert Security
- Keep your webhook URL secure
- Regularly audit alert configurations
- Monitor webhook delivery status
Troubleshooting
If you're not receiving alerts:
- Verify the webhook URL is correctly copied
- Check if the channel is active
- Ensure there are active subscribers
- Verify Grafana's contact point configuration
- Check Grafana's alert rule configuration
- Review Grafana's alert history
Privacy and Data Handling
Echobell's privacy-first approach means:
- Alert content is stored locally on your device
- Only essential configuration data is stored on servers
- Webhook URLs should be treated as secrets
- No alert data is retained on Echobell servers