Skip to content

Worker healthcheck endpoint returns a detailed json response - #9529

Merged
taylorsilva merged 1 commit into
masterfrom
worker-healthcheck-json
Apr 14, 2026
Merged

taylorsilva merged 1 commit into
masterfrom
worker-healthcheck-json

Conversation

@taylorsilva

Copy link
Copy Markdown
Member

Changes proposed by this PR

Have the worker healthcheck endpoint return a detailed json response.

JSON payload will look like:

{
  "garden": {
    "healthy": true,
    "response_error": ""
  },
  "baggageclaim": {
    "healthy": true,
    "response_error": ""
  }
}

The HTTP status code will either be 200, or 503 if either components are unhealthy.

Not sure how useful the response_error will ever be. In all (most?) cases, operators will need to check worker logs for a more detailed message logged by the failing component(s).

I think this will be useful for the healthpoint RFC as well: concourse/rfcs#141

JSON payload will look like:

```json
{
  "garden": {
    "healthy": true,
    "response_error": ""
  },
  "baggageclaim": {
    "healthy": true,
    "response_error": ""
  }
}
```

The HTTP status code will either be 200, or 503 if either components are
unhealthy.

Signed-off-by: Taylor Silva <[email protected]>
@taylorsilva
taylorsilva requested a review from a team April 13, 2026 16:53
@taylorsilva
taylorsilva merged commit 91ada55 into master Apr 14, 2026
12 checks passed
@taylorsilva
taylorsilva deleted the worker-healthcheck-json branch April 14, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant