prometheus,grafana,cadvisor: helthcheck ok healthcheck not ok: node exporter,pushgateway,alermanager
This commit is contained in:
parent
70f0d6f57e
commit
abb30dc3fb
@ -56,10 +56,11 @@ services:
|
||||
labels:
|
||||
org.label-schema.group: "monitoring"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:9090/-/healthy"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
test: ["CMD", "wget", "http://localhost:9090"]
|
||||
interval: 10s
|
||||
timeout: 15s
|
||||
retries: 10
|
||||
start_period: 40s
|
||||
|
||||
nodeexporter:
|
||||
image: prom/node-exporter:v1.8.2
|
||||
@ -80,11 +81,7 @@ services:
|
||||
- grafana-network
|
||||
labels:
|
||||
org.label-schema.group: "monitoring"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:9100/metrics"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
|
||||
|
||||
cadvisor:
|
||||
image: gcr.io/cadvisor/cadvisor
|
||||
@ -102,11 +99,7 @@ services:
|
||||
- grafana-network
|
||||
labels:
|
||||
org.label-schema.group: "monitoring"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/healthz"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
|
||||
|
||||
loki:
|
||||
image: grafana/loki:latest
|
||||
@ -122,10 +115,11 @@ services:
|
||||
networks:
|
||||
- grafana-network
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3100/ready"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
test: wget --quiet --tries=1 --output-document=- http://localhost:3100/ready | grep -q -w ready || exit 1
|
||||
start_period: 20s
|
||||
interval: 10s
|
||||
timeout: 1s
|
||||
retries: 12 # try for 2 minutes
|
||||
|
||||
alertmanager:
|
||||
image: prom/alertmanager:v0.20.0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user