Skip to content

Commit

Permalink
20220517 PiHole - master branch - PR 1 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#406.

Closes SensorsIot#415

Signed-off-by: Phill Kelley <34226495+Paraphraser@users.noreply.github.com>
  • Loading branch information
Paraphraser committed May 17, 2022
1 parent 732889a commit 94fc939
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .templates/grafana/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@ grafana:
volumes:
- ./volumes/grafana/data:/var/lib/grafana
- ./volumes/grafana/log:/var/log/grafana
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 .templates/influxdb/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@ influxdb:
volumes:
- ./volumes/influxdb/data:/var/lib/influxdb
- ./backups/influxdb/db:/var/lib/influxdb/backup
healthcheck:
test: ["CMD", "curl", "http://localhost:8086"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s

0 comments on commit 94fc939

Please sign in to comment.