Skip to content

Commit

Permalink
20220517 PiHole - experimental branch - PR 3 of 3
Browse files Browse the repository at this point in the history
Adds health-check functionality to Grafana and InfluxDB 1.8, as
discussed in SensorsIot#415.

Health-check functionality already added to Mosquitto via SensorsIot#410.

Closes SensorsIot#415

Signed-off-by: Phill Kelley <[email protected]>
  • Loading branch information
Paraphraser committed May 17, 2022
1 parent 57d4f6e commit a986a83
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .internal/templates/services/grafana/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions .internal/templates/services/influxdb/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a986a83

Please sign in to comment.