I use the Pushover app on my mobile to receive alerts from a number of different systems, both work and home, so it made sense to send critical NewRelic alerts to it too.
Step 1 - setup Pushover
Create an account (you could get a week for free at time of writing), install the app on your mobile. Give it a quick test:
Make a note of your user key, you'll need this later
Create a new application and make a note of the API Token for it, you'll need this later
Step 2 - configure NewRelic
Login to NewRelic and click "Alerts | Notification Channels | New notification channel | Webhook". Configure the channel:
The specific settings are:
BaseURI : https://api.pushover.net/1/messages.json
Payload:
{
"title": "$CONDITION_NAME",
"message":"$ACCOUNT_NAME\n$EVENT_DETAILS\n$INCIDENT_URL",
"token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"user":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"sound":"classical"
}
You can now send a test to confirm it's working, and then associate the Notification Channel with an Alert Policy.
No comments:
Post a Comment