Opsgenie is an alerting and incident response tool. It is designed to group and filter alarms, build custom routing rules for on-call teams, and correlate deployments and commits to incidents.
Change the variable
OPSGENIE_API_KEY with the API key you got from Opsgenie.
OPSGENIE_API_URL defaults to
https://api.opsgenie.com, however there are region-specific API URLs such as
https://eu.api.opsgenie.com, so set
this if required.
health_alarm_notify.conf do not require a Netdata restart. You can test your Opsgenie notifications
configuration by issuing the commands, replacing
ROLE with your preferred role:
sudo su -s /bin/bash netdata
/usr/libexec/netdata/plugins.d/alarm-notify.sh test ROLE
If everything works, you'll see alarms in your Opsgenie platform:
If sending the test notifications fails, you can look in
/var/log/netdata/error.log to find the relevant error
2020-09-03 23:07:00: alarm-notify.sh: ERROR: failed to send opsgenie notification for: hades test.chart.test_alarm is CRITICAL, with HTTP error code 401.
You can find more details about the Opsgenie error codes in their response docs.