2016-11-14 20:24:13 +00:00
|
|
|
|
{
|
|
|
|
|
"id": "f3bec493-0bc1-49d5-a40a-a09bd5cfb60c",
|
|
|
|
|
"measurement": "consul_health_checks",
|
|
|
|
|
"app": "consul",
|
2016-11-15 18:11:32 +00:00
|
|
|
|
"autoflow": true,
|
2016-11-14 20:24:13 +00:00
|
|
|
|
"cells": [
|
|
|
|
|
{
|
|
|
|
|
"x": 0,
|
|
|
|
|
"y": 0,
|
|
|
|
|
"w": 4,
|
|
|
|
|
"h": 4,
|
|
|
|
|
"i": "9e14639d-b8d9-4245-8c45-862ed4383d31",
|
|
|
|
|
"name": "Consul – Number of Critical Health Checks",
|
|
|
|
|
"queries": [
|
|
|
|
|
{
|
|
|
|
|
"query": "SELECT count(\"check_id\") as \"Number Critical\" FROM consul_health_checks",
|
2017-02-24 22:09:13 +00:00
|
|
|
|
"label": "count",
|
2016-11-14 20:24:13 +00:00
|
|
|
|
"groupbys": [
|
|
|
|
|
"\"service_name\""
|
|
|
|
|
],
|
|
|
|
|
"wheres": [
|
|
|
|
|
"\"status\" = 'critical'"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"x": 0,
|
|
|
|
|
"y": 0,
|
|
|
|
|
"w": 4,
|
|
|
|
|
"h": 4,
|
|
|
|
|
"i": "595be39d-85db-4410-b349-35c25465a4b8",
|
|
|
|
|
"name": "Consul – Number of Warning Health Checks",
|
|
|
|
|
"queries": [
|
|
|
|
|
{
|
|
|
|
|
"query": "SELECT count(\"check_id\") as \"Number Warning\" FROM consul_health_checks",
|
2017-02-24 22:09:13 +00:00
|
|
|
|
"label": "count",
|
2016-11-14 20:24:13 +00:00
|
|
|
|
"groupbys": [
|
|
|
|
|
"\"service_name\""
|
|
|
|
|
],
|
|
|
|
|
"wheres": [
|
|
|
|
|
"\"status\" = 'warning'"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|