Skip to content

Commit

Permalink
[docker compose]: Imporve healthcheck
Browse files Browse the repository at this point in the history
Signed-off-by: Weifeng Wang <[email protected]>
  • Loading branch information
qclaogui committed Apr 3, 2024
1 parent a066664 commit 068f351
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ services:
- ./docker-compose/common/config/pyroscope/gateway_pyroscope.conf:/etc/nginx/templates/gateway_pyroscope.conf.template
healthcheck:
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8080/ || exit 1" ]
interval: 10s
timeout: 5s
interval: 5s
timeout: 2s
retries: 10
4 changes: 2 additions & 2 deletions docker-compose/common/compose-include/grafana-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ services:
- AGENT_CONFIG_FOLDER=/etc/agent-config
healthcheck:
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:12345/ready || exit 1" ]
interval: 10s
timeout: 5s
interval: 5s
timeout: 2s
retries: 10
ports:
- "12345:12345"
Expand Down
4 changes: 2 additions & 2 deletions docker-compose/common/compose-include/loki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ services:
- -config.expand-env=true
healthcheck:
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3100/ready || exit 1" ]
interval: 10s
timeout: 5s
interval: 5s
timeout: 2s
retries: 10
# expose 33100 port so we can directly access loki inside container
ports:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose/common/compose-include/mimir.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ services:
- -config.expand-env=true
healthcheck:
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8080/ready || exit 1" ]
interval: 10s
timeout: 5s
interval: 5s
timeout: 2s
retries: 5
# expose 38080 port so we can directly access mimir inside container
ports:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose/common/compose-include/minio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:
healthcheck:
test: ["CMD-SHELL", "mc ready local"]
interval: 5s
timeout: 5s
timeout: 2s
retries: 5
ports:
- "9001:9001"
Expand Down
6 changes: 3 additions & 3 deletions docker-compose/common/compose-include/pyroscope.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ services:
# - -runtime-config.file=/etc/pyroscope/overrides.yaml
healthcheck:
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:4040/ready || exit 1" ]
interval: 15s
timeout: 10s
retries: 5
interval: 5s
timeout: 2s
retries: 10
# expose 34040 port so we can directly access pyroscope inside container
ports:
- "34040:4040"
Expand Down
5 changes: 3 additions & 2 deletions docker-compose/common/compose-include/tempo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ services:
- -config.expand-env=true
healthcheck:
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3200/ready || exit 1" ]
interval: 10s
timeout: 5s
interval: 5s
timeout: 2s
retries: 10
start_period: 10s
# expose 33200 port so we can directly access tempo inside container
ports:
- "33200:3200"

0 comments on commit 068f351

Please sign in to comment.