Skip to content

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

Open
travis-mcginley wants to merge 8 commits intotraefik:masterfrom
travis-mcginley:expose-health-check
Open

feat: add health-check flag to allow user defined health checks#151
travis-mcginley wants to merge 8 commits intotraefik:masterfrom
travis-mcginley:expose-health-check

Conversation

@travis-mcginley
Copy link

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

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
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
Copy link

op3 commented Jan 18, 2026

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!

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.

2 participants