Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alerta.io notification improvements #4576

Merged
merged 2 commits into from
Nov 10, 2018
Merged

Alerta.io notification improvements #4576

merged 2 commits into from
Nov 10, 2018

Conversation

satterly
Copy link
Contributor

@satterly satterly commented Nov 7, 2018

Enhance support of Alerta notifications …

  • use 'indeterminate' severity as catch-all
  • move $family to "resource"
  • set "service" to 'Netdata' not $host
  • set "group" to "Performance'
  • set "value" to $value_sting not $alarm
  • add $alarm_id as a "tag"
  • add $roles, $name, $chart, $familty and $src as "attributes"
  • don't set auth header unless $ALERTA_API_KEY is set
  • log suppressed alerts (202 Accepted) as info not error
  • use $chart as resource for httpcheck alarms

Update and simplify the wiki page for alerta.

/cc @kattunga

 * use 'indeterminate' severity as catch-all
 * move $family to "resource"
 * set "service" to 'Netdata' not $host
 * set "group" to "Performance'
 * set "value" to $value_sting not $alarm
 * add $alarm_id as a "tag"
 * add $roles, $name, $chart, $familty and $src as "attributes"
 * don't set auth header unless $ALERTA_API_KEY is set
 * log suppressed alerts (202 Accepted) as info not error
 * use $chart as resource for httpcheck alarms
@CLAassistant
Copy link

CLAassistant commented Nov 7, 2018

CLA assistant check
All committers have signed the CLA.

@satterly satterly changed the title Alerta improvements Alerta.io notification improvements Nov 7, 2018
@cakrit cakrit requested a review from ktsaou November 7, 2018 18:41
@ktsaou
Copy link
Member

ktsaou commented Nov 7, 2018

@kattunga since you are the original author of alerta notifications, could you please check this PR? Thank you!

@Ferroin if you can test this, please do so...

@ktsaou
Copy link
Member

ktsaou commented Nov 7, 2018

I think this PR is good! Nice work @satterly !
So, just wait a bit more for the contributors to check your PR too and possibly make suggestions.

Thank you!

@Ferroin
Copy link
Member

Ferroin commented Nov 8, 2018

@ktsaou I'll try to get it tested at some point later today. From a quick look over the Alerta.io documentation though, the changes appear to be correct as far as I can tell.

@ktsaou
Copy link
Member

ktsaou commented Nov 8, 2018

@Ferroin thank you!

@Ferroin
Copy link
Member

Ferroin commented Nov 8, 2018

OK, finally got this tested. It appears here to be working as advertised.

@ktsaou ktsaou merged commit 521136c into netdata:master Nov 10, 2018
@ktsaou
Copy link
Member

ktsaou commented Nov 10, 2018

merged!
thank you @satterly for implementing this and @Ferroin for verifying it!

kiku-jw pushed a commit to kiku-jw/netdata that referenced this pull request Mar 4, 2019
* Enhance support of Alerta notifications

 * use 'indeterminate' severity as catch-all
 * move $family to "resource"
 * set "service" to 'Netdata' not $host
 * set "group" to "Performance'
 * set "value" to $value_sting not $alarm
 * add $alarm_id as a "tag"
 * add $roles, $name, $chart, $familty and $src as "attributes"
 * don't set auth header unless $ALERTA_API_KEY is set
 * log suppressed alerts (202 Accepted) as info not error
 * use $chart as resource for httpcheck alarms

* Update alerta wiki page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants