-
Notifications
You must be signed in to change notification settings - Fork 150
/
Copy pathnerve.conf.json
59 lines (59 loc) · 1.34 KB
/
nerve.conf.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
{
"instance_id": "mymachine",
"service_conf_dir": "example/nerve_services",
"max_repeated_report_failures": 10,
"statsd": {
"host": "localhost",
"port": 8125
},
"services": {
"your_http_service": {
"host": "1.2.3.4",
"port": 3000,
"reporter_type": "zookeeper",
"zk_hosts": ["localhost:2181"],
"zk_path": "/nerve/services/your_http_service/services",
"check_interval": 2,
"checks": [
{
"type": "http",
"uri": "/health",
"timeout": 0.2,
"rise": 3,
"fall": 2
}
]
},
"your_tcp_service": {
"host": "1.2.3.4",
"port": 6379,
"reporter_type": "zookeeper",
"zk_hosts": ["localhost:2181"],
"zk_path": "/nerve/services/your_tcp_service/services",
"check_interval": 2,
"checks": [
{
"type": "tcp",
"timeout": 0.2,
"rise": 3,
"fall": 2
}
]
},
"rabbitmq_service": {
"host": "1.2.3.4",
"port": 5672,
"reporter_type": "zookeeper",
"zk_hosts": ["localhost:2181"],
"zk_path": "/nerve/services/your_rabbitmq_service/services",
"check_interval": 2,
"checks": [
{
"type": "rabbitmq",
"username": "guest",
"password": "guest"
}
]
}
}
}