Skip to content

Add start_period to Prometheus healthcheck to prevent cold-start timeouts - #1092

Open
aarush-murari wants to merge 1 commit into
pwncollege:masterfrom
aarush-murari:master
Open

Add start_period to Prometheus healthcheck to prevent cold-start timeouts#1092
aarush-murari wants to merge 1 commit into
pwncollege:masterfrom
aarush-murari:master

Conversation

@aarush-murari

Copy link
Copy Markdown

Add start_period: 60s to Prometheus healthcheck to prevent cold-start failures

On first deploy, Prometheus needs time to initialize its TSDB before responding to healthchecks. Without a startup grace period, Docker marks it unhealthy after ~30s, causing dependency failed to start: container prometheus is unhealthy and killing the entire compose stack.

start_period: 60s gives Prometheus a grace window where failed healthchecks don't count toward the retry limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant