forked from autopilotpattern/touchbase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtouchbase.json
39 lines (39 loc) · 894 Bytes
/
touchbase.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
{
"consul": "consul:8500",
"preStart": "/opt/containerpilot/update-config.sh",
"services": [
{
"name": "touchbase",
"port": 3000,
"health": "/usr/bin/curl --fail -s -o /dev/null http://localhost:3000",
"poll": 10,
"ttl": 25
}
],
"backends": [
{
"name": "couchbase",
"poll": 7,
"onChange": "/opt/containerpilot/update-config.sh"
}
],
"telemetry": {
"port": 9090,
"sensors": [
{
"name": "tb_touchbase_memory_free",
"help": "Free memory",
"type": "gauge",
"poll": 5,
"check": ["/opt/containerpilot/sensor.sh", "free"]
},
{
"name": "tb_touchbase_memory_used",
"help": "Used memory excluding shared/buffers/cached",
"type": "gauge",
"poll": 5,
"check": ["/opt/containerpilot/sensor.sh", "used"]
}
]
}
}