Skip to content

Commit

Permalink
restore puppet4 alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
vide committed Jun 22, 2017
1 parent 9520e24 commit feb8519
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
15 changes: 15 additions & 0 deletions templates/alerts.epp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<% $prometheus::alerts::alerts.each |$alert| { -%>
ALERT <%= $alert['name'] %>
IF <%= $alert['condition'] %>
FOR <%= $alert['timeduration'] %>
LABELS {
<% $alert['labels'].each |$label| { -%>
<%= $label['name'] %> = "<%= $label['content'] %>",
<% } -%>
}
ANNOTATIONS {
<% $alert['annotations'].each |$annotation| { -%>
<%= $annotation['name'] %> = "<%= $annotation['content'] %>",
<% } -%>
}
<% } -%>
15 changes: 0 additions & 15 deletions templates/alerts.erb

This file was deleted.

0 comments on commit feb8519

Please sign in to comment.