Skip to content

Commit 5c3656b

Browse files
author
Ruben van Vreeland
committed
Merge branch 'develop' of git.bitsensor.io:back-end/elastalert into develop
2 parents 9e0b3f0 + 622d16e commit 5c3656b

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

rule_templates/no_data.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Alert when no data has been received for more then 30 seconds.
2+
3+
# Rule name, must be unique
4+
name: No Data
5+
6+
# Type of alert.
7+
type: flatline
8+
9+
# Alert when this many documents matching the query occur within a timeframe
10+
threshold: 1
11+
12+
# num_events must occur within this amount of time to trigger an alert
13+
timeframe:
14+
seconds: 30
15+
16+
realert:
17+
minutes: 10
18+
19+
exponential_realert:
20+
hours: 1
21+
22+
doc_type: datapoint
23+
24+
# Index to search, wildcard supported
25+
index: bitsensor
26+
timestamp_field: endpoint.localtime
27+
28+
alert_subject: "No data on dev.bitsensor.io"
29+
30+
alert_text_type: alert_text_only
31+
alert_text: "The stack receives no data. It might be down :("
32+
33+
# The alert is use when a match is found
34+
alert:
35+
- slack
36+
slack_webhook_url: "https://hooks.slack.com/services/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"
37+
slack_username_override: "ElastAlert"

0 commit comments

Comments
 (0)