add health checks to prometheus and grafana

This commit is contained in:
Jonathan Math 2021-06-15 09:32:46 -06:00
parent 67b0707eb7
commit 6222db9828
2 changed files with 12 additions and 0 deletions

View file

@ -4,6 +4,12 @@
"tags": [
"db"
],
"checks": [{
"id": "grafana-ping",
"http": "http://{{ ansible_ssh_host }}:3000/api/health",
"interval": "15s",
"failures_before_critical": 4
}],
"port": 3000
}
}

View file

@ -4,6 +4,12 @@
"tags": [
"db"
],
"checks": [{
"id": "prometheus-ping",
"http": "http://{{ ansible_ssh_host }}:9090/metrics",
"interval": "15s",
"failures_before_critical": 4
}],
"port": 9090
}
}