Skip to content

feat: add health-check flag to allow user defined health checks#151

Open
travis-mcginley wants to merge 1 commit into
traefik:masterfrom
travis-mcginley:expose-health-check
Open

feat: add health-check flag to allow user defined health checks#151
travis-mcginley wants to merge 1 commit into
traefik:masterfrom
travis-mcginley:expose-health-check

Conversation

@travis-mcginley

@travis-mcginley travis-mcginley commented Jul 22, 2025

Copy link
Copy Markdown

Changelog

  • Enabled the ability for a user to define a health check via a flag
  • Updated documentation with new flags and an example

Ref: #93, #81

@travis-mcginley

Copy link
Copy Markdown
Author

Example of usage:

12:57:37 whoami ±|expose-health-check ✗|→ docker inspect whoami-test --format='
Status: {{.State.Health.Status}}
Failing Streak: {{.State.Health.FailingStreak}}
{{range .State.Health.Log}}
Time: {{.Start}}
Exit Code: {{.ExitCode}}
Output: {{.Output}}
---{{end}}'

Status: healthy
Failing Streak: 0

Time: 2025-07-22 12:55:39.327049875 -0400 EDT
Exit Code: 0
Output: Health check passed


---
Time: 2025-07-22 12:56:09.359296369 -0400 EDT
Exit Code: 0
Output: Health check passed


---
Time: 2025-07-22 12:56:39.400734482 -0400 EDT
Exit Code: 0
Output: Health check passed


---
Time: 2025-07-22 12:57:09.437798349 -0400 EDT
Exit Code: 0
Output: Health check passed


---
Time: 2025-07-22 12:57:39.470122932 -0400 EDT
Exit Code: 0
Output: Health check passed

@op3

op3 commented Jan 18, 2026

Copy link
Copy Markdown

I would suggest to squash some (or even all?) of the commits to clean up the git history a bit.

Looking forward to this being merged!

@dr3st

dr3st commented May 17, 2026

Copy link
Copy Markdown

@travis-mcginley Thx for this PR, is there any chance you may cleanup as op3 asked for? :) Would like to see this merged. Thanks in advance.

@travis-mcginley

Copy link
Copy Markdown
Author

Sure, I assumed we could squash on merge. I'll take care of it.

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.

3 participants