This repository has been archived by the owner on Jan 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 386
/
config.json
98 lines (98 loc) · 1.74 KB
/
config.json
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"rabbitmq": {
"host": "localhost",
"port": 5672
},
"redis": {
"host": "localhost",
"port": 6379
},
"api": {
"host": "localhost",
"port": 4567
},
"dashboard": {
"host": "localhost",
"port": 8080,
"user": "admin",
"password": "secret"
},
"handlers": {
"default": {
"type": "pipe",
"command": "./test/handler.rb"
},
"graphite": {
"type": "amqp",
"exchange": {
"name": "graphite"
},
"send_only_check_output": true
}
},
"checks": {
"a": {
"command": "ruby -e \"puts ':::name:::'; exit 1\"",
"subscribers": [
"a"
],
"interval": 1
},
"b": {
"command": "will be overridden by a config snippet",
"subscribers": [
"a"
],
"interval": 60,
"auto_resolve": true
},
"c": {
"handler": "default",
"command": "ruby -e \"puts ':::name:::'; exit 3\"",
"subscribers": [
{
"name": "i-424242",
"!nonexistent": "test",
"subscribes": [
"a",
"c"
],
"!subscribes": [
"d"
]
}
],
"interval": 1
},
"d": {
"handlers": [
"default"
],
"command": "ruby -e \"puts ':::name:::'; exit 4\"",
"subscribers": [
"a",
"b",
"c"
],
"interval": 1
},
"e": {
"type": "metric",
"handler": "graphite",
"command": "echo sensu.:::name:::.diceroll 4 `date +%s`",
"subscribers": [
"c"
],
"interval": 1
}
},
"client": {
"name": "i-424242",
"address": "127.0.0.1",
"subscriptions": [
"a",
"b",
"c"
]
}
}