Follow the steps below to configure a service so as to extract its related alert data from Grafana. Squadcast will then process this information to create incidents for this service as per your preferences.
Create a Grafana Service in Squadcast
On the Sidebar, click on Services.
You can either navigate to an existing service or make a new one by clicking on “Add Service”.
Check the service details like name, description, and the associated escalation policy for this service and make sure it is correctly entered.
From the integration types drop down, select the integration type as “Grafana”. You will be shown your Grafana Webhook URL.
Enter the service name and description as required and click on "Save" button to create the service.
Create Squadcast Webhook in Grafana dashboard
Login to your Grafana dashboard, Click on the Alerting (Bell) icon and select Notification channels.
Click on Add Channel or New Channel and enter the Notification channel name as Squadcast, Type as Webhook, and enable Send on all alerts checkbox as below.
Enter the webhook url we have got from the Squadcast service under url in Webhook settings and select the Http Method as POST and click Save.
If you would like to enable Auto-Resolve in Squadcast, then make sure the Disable Resolve Message is unchecked.
Setup Alerts in Grafana
To setup alerts for a Panel, go to your Grafana dashboard, under options choose Edit.
Then under Alerts, click Create Alert button.
In the Alert Config, under Notifications, Add Squadcast webhook as the Send to field and enter a Message for the alert and save it.
Now, whenever an alert is triggered in Grafana for that particular panel, an incident will be created in Squadcast. When it is resolved in Grafana, it will automatically get Resolved in Squadcast, provided the Disable Resolve Message checkbox is unchecked.