forked from klen/graphite-beacon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-config.json
More file actions
38 lines (35 loc) · 849 Bytes
/
example-config.json
File metadata and controls
38 lines (35 loc) · 849 Bytes
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
// Comments is allowed here
{
"interval": "20minute",
"logging": "debug",
// Gmail example
// "smtp": {
// "username": "example@gmail.com",
// "password": "password",
// "use_tls": true,
// "host": "smtp.gmail.com",
// "port": 587,
// "from": "myemail@gmail.com",
// "to": ["myemail@gmail.com"]
// },
"debug": true,
"alerts": [
// A graphite alert
{
"name": "Memory",
"query": "aliasByNode(collectd.*.memory.memory-free, 1)",
"interval": "10minute",
"format": "bytes",
"rules": ["warning: < 300MB", "critical: > 200MB"]
},
// A ping alert
{
"name": "Site",
// Source (graphite, url). By default: graphite
"source": "url",
"query": "http://google.com",
"interval": "20second",
"rules": ["critical: != 200"]
}
]
}