SMS Alerts in Grafana using a Custom Webhook and AWS SNS
I will show you how you can create an alert channel in Grafana using a custom webhook that sends SMS. The SMS gateway I will use is AWS SNS.
You will need an AWS account. Log in and create an IAM user, and add it to a group with the AmazonSNSFullAccess policy. Take note of the Access Key and Secret given to you by AWS.
Go to the SNS Service console, select the Region you desire.
Press the blue link Start with an Overview,
and then press the link Text Messaging (SMS). Note that not all regions provide SMS, so you will need to choose one that does. US-EAST-1 supports SMS.
So, before continuing, you should have now obtained an Access Key, Secret Key and chosen an AWS region to send SMS from.
At time of writing, the possible regions which support SMS are,
- us-east-1 (N. Virginia)
- us-west-2 (Oregon)
- ap-south-1 (Mumbai)