Skip to content

Commit 255500d

Browse files
authored
Merge pull request #564 from Paraphraser/20220517-healthCheck-old-menu
20220517 Grafana InfluxDB HealthCheck - old-menu branch - PR 2 of 3
2 parents b2620a6 + 29f8a7f commit 255500d

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
@@ -10,3 +10,9 @@
1010
volumes:
1111
- ./volumes/grafana/data:/var/lib/grafana
1212
- ./volumes/grafana/log:/var/log/grafana
13+
healthcheck:
14+
test: ["CMD", "wget", "-O", "/dev/null", "http://localhost:3000"]
15+
interval: 30s
16+
timeout: 10s
17+
retries: 3
18+
start_period: 30s

.templates/influxdb/service.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@
1111
volumes:
1212
- ./volumes/influxdb/data:/var/lib/influxdb
1313
- ./backups/influxdb/db:/var/lib/influxdb/backup
14+
healthcheck:
15+
test: ["CMD", "curl", "http://localhost:8086"]
16+
interval: 30s
17+
timeout: 10s
18+
retries: 3
19+
start_period: 30s

0 commit comments

Comments
 (0)