34 lines
691 B
JSON
34 lines
691 B
JSON
{
|
|
"consul": "{{ .CONSUL }}:8500",
|
|
"services": [
|
|
{
|
|
"name": "joyent-portal-cloudapi-graphql",
|
|
"port": 3000,
|
|
"health": "/usr/bin/curl -o /dev/null --fail -s http://localhost:3000/",
|
|
"poll": 3,
|
|
"ttl": 10
|
|
}
|
|
],
|
|
"backends": [
|
|
],
|
|
"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"]
|
|
}
|
|
]
|
|
}
|
|
}
|