Skip to content

Commit 4739ce1

Browse files
authored
Merge pull request #563 from Paraphraser/20220517-healthCheck-master
20220517 Grafana InfluxDB HealthCheck - master branch - PR 1 of 3
2 parents 7a077cd + 94fc939 commit 4739ce1

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)