From a986a830d692945c0346cecd8b3b5ed3edfa8ab6 Mon Sep 17 00:00:00 2001 From: Phill Kelley <34226495+Paraphraser@users.noreply.github.com> Date: Tue, 17 May 2022 17:09:54 +1000 Subject: [PATCH] 20220517 PiHole - experimental branch - PR 3 of 3 Adds health-check functionality to Grafana and InfluxDB 1.8, as discussed in #415. Health-check functionality already added to Mosquitto via #410. Closes #415 Signed-off-by: Phill Kelley <34226495+Paraphraser@users.noreply.github.com> --- .internal/templates/services/grafana/template.yml | 6 ++++++ .internal/templates/services/influxdb/template.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.internal/templates/services/grafana/template.yml b/.internal/templates/services/grafana/template.yml index 10b9de5c..98298430 100644 --- a/.internal/templates/services/grafana/template.yml +++ b/.internal/templates/services/grafana/template.yml @@ -26,3 +26,9 @@ grafana: options: max-size: "5m" max-file: "3" + healthcheck: + test: ["CMD", "wget", "-O", "/dev/null", "http://localhost:3000"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 30s diff --git a/.internal/templates/services/influxdb/template.yml b/.internal/templates/services/influxdb/template.yml index c2f05714..59c68992 100644 --- a/.internal/templates/services/influxdb/template.yml +++ b/.internal/templates/services/influxdb/template.yml @@ -22,3 +22,9 @@ influxdb: options: max-size: "5m" max-file: "3" + healthcheck: + test: ["CMD", "curl", "http://localhost:8086"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 30s