2016-10-17 18:41:17 +03:00
|
|
|
{
|
|
|
|
"consul": "{{ .CONSUL }}:8500",
|
|
|
|
"services": [
|
|
|
|
{
|
2016-11-01 18:17:49 +02:00
|
|
|
"name": "joyent-portal-cloudapi-graphql",
|
2016-10-17 18:41:17 +03:00
|
|
|
"port": 3000,
|
|
|
|
"health": "/usr/bin/curl -o /dev/null --fail -s http://localhost:3000/",
|
|
|
|
"poll": 3,
|
|
|
|
"ttl": 10
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"backends": [
|
2017-01-26 14:35:49 +02:00
|
|
|
],
|
|
|
|
"telemetry": {
|
|
|
|
"port": 9090,
|
|
|
|
"sensors": [
|
|
|
|
{
|
|
|
|
"name": "graphql_memory_percent",
|
|
|
|
"help": "percentage of memory used",
|
|
|
|
"type": "gauge",
|
|
|
|
"poll": 5,
|
|
|
|
"check": ["/bin/sensors", "memory"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "graphql_cpu_load",
|
|
|
|
"help": "cpu load",
|
|
|
|
"type": "gauge",
|
|
|
|
"poll": 5,
|
|
|
|
"check": ["/bin/sensors", "cpu"]
|
2017-01-26 16:41:41 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "graphql_disk_capacity",
|
|
|
|
"help": "disk capacity",
|
|
|
|
"type": "gauge",
|
|
|
|
"poll": 60,
|
|
|
|
"check": ["/bin/sensors", "diskcapacity"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "graphql_disk_usage",
|
|
|
|
"help": "disk usage",
|
|
|
|
"type": "gauge",
|
|
|
|
"poll": 60,
|
|
|
|
"check": ["/bin/sensors", "diskusage"]
|
2017-01-26 14:35:49 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2016-10-17 18:41:17 +03:00
|
|
|
}
|