joyent-portal/frontend/etc/containerpilot.json

48 lines
1.0 KiB
JSON
Raw Permalink Normal View History

2016-10-20 15:36:24 +03:00
{
"consul": "{{ .CONSUL }}:8500",
"services": [
{
"name": "joyent-portal-frontend",
2016-10-20 15:36:24 +03:00
"port": 8000,
"health": "/usr/bin/curl -o /dev/null --fail -s http://localhost:8000/",
"poll": 3,
"ttl": 10
}
],
"backends": [
2017-01-25 17:49:05 +02:00
],
"telemetry": {
"port": 9090,
"sensors": [
{
"name": "frontend_memory_percent",
"help": "percentage of memory used",
"type": "gauge",
"poll": 5,
2017-01-26 14:35:49 +02:00
"check": ["/bin/sensors", "memory"]
2017-01-25 17:49:05 +02:00
},
{
"name": "frontend_cpu_load",
"help": "cpu load",
"type": "gauge",
"poll": 5,
2017-01-26 14:35:49 +02:00
"check": ["/bin/sensors", "cpu"]
2017-01-26 16:41:41 +02:00
},
{
"name": "frontend_disk_capacity",
"help": "disk capacity",
"type": "gauge",
"poll": 60,
"check": ["/bin/sensors", "diskcapacity"]
},
{
"name": "frontend_disk_usage",
"help": "disk usage",
"type": "gauge",
"poll": 60,
"check": ["/bin/sensors", "diskusage"]
2017-01-25 17:49:05 +02:00
}
]
}
2016-10-20 15:36:24 +03:00
}