mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 07:10:05 +02:00
04e604eb8e
also: - use prettier - uddate dependencies - document other ways of setting up credentials
39 lines
942 B
JSON
39 lines
942 B
JSON
{
|
|
"consul": "{{ .CONSUL }}:8500",
|
|
"services": [{
|
|
"name": "joyent-portal-cloudapi-graphql",
|
|
"port": 4000,
|
|
"health": "/usr/bin/curl -o /dev/null --fail -s http://localhost:4000/graphql",
|
|
"poll": 3,
|
|
"ttl": 10
|
|
}],
|
|
"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"]
|
|
}, {
|
|
"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"]
|
|
}]
|
|
}
|
|
}
|