Skip to content

Commit 94fc939

Browse files
committed
20220517 PiHole - master branch - PR 1 of 3
Adds health-check functionality to Grafana and InfluxDB 1.8, as discussed in #415. Health-check functionality already added to Mosquitto via #406. Closes #415 Signed-off-by: Phill Kelley <[email protected]>
1 parent 732889a commit 94fc939

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.templates/grafana/service.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ grafana:
1212
volumes:
1313
- ./volumes/grafana/data:/var/lib/grafana
1414
- ./volumes/grafana/log:/var/log/grafana
15+
healthcheck:
16+
test: ["CMD", "wget", "-O", "/dev/null", "http://localhost:3000"]
17+
interval: 30s
18+
timeout: 10s
19+
retries: 3
20+
start_period: 30s
1521

.templates/influxdb/service.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,10 @@ influxdb:
1818
volumes:
1919
- ./volumes/influxdb/data:/var/lib/influxdb
2020
- ./backups/influxdb/db:/var/lib/influxdb/backup
21+
healthcheck:
22+
test: ["CMD", "curl", "http://localhost:8086"]
23+
interval: 30s
24+
timeout: 10s
25+
retries: 3
26+
start_period: 30s
2127

0 commit comments

Comments
 (0)