-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml.sample
50 lines (50 loc) · 1.54 KB
/
config.yaml.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
org: <Influx Organization>
token: <Influx Token>
server: influx.example.com
logLevel: info
targets:
- type: telegram
botToken: <Telegram Bot Token>
chatIds:
- <ID of the chat to send messages to>
- type: smtp
from: noreply@example.com
host: mail.example.com
port: 587|465|25
username: noreply@example.com
password: <Server password>
to: influx@example.com
alerts:
- type: hourRange
flux: |
from(bucket: "terrarien")
|> range(start: -10h, stop: now())
|> filter(fn: (r) => r["_measurement"] == "value")
|> filter(fn: (r) => r["_field"] == "value")
|> last()
threshold: 25
thresholdType: above
message: The value is above the treshold, please check
name: The value is above the treshold, please check
afterHour: 11
beforeHour: 21
- type: value
flux: |
from(bucket: "mybucket")
|> range(start: -10h, stop: now())
|> filter(fn: (r) => r["_measurement"] == "value")
|> filter(fn: (r) => r["_field"] == "value")
|> last()
threshold: 20
thresholdType: below
message: The value is above the treshold, please check
name: The value is above the treshold, please check
- type: deadman
flux: |
from(bucket: "mybucket")
|> range(start: -10h, stop: now())
|> filter(fn: (r) => r["_measurement"] == "value")
|> filter(fn: (r) => r["_field"] == "value")
|> last()
message: The value is above the treshold, please check
name: The value is above the treshold, please check