-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reverseproxy: Implement admin API for reporting upstream statuses #4125
Conversation
19d8743
to
2f7b086
Compare
2f7b086
to
78c9f58
Compare
Something funky's going on with github actions... the tests pass but the jobs hard-fail with no results sometimes. I'm very confused. https://www.githubstatus.com/ seems to say everything is fine right now though. Edit: Re-ran a couple times, finished fine this time 🤷♂️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, this is basically exactly what I had in mind. I'll spare a few little nits and just go with it. Thanks! This should be pretty useful.
I see this not work. The about the
don't understand if we need the Sorry for the distrub, I've read the document explanation carefully and now see it. But, anyway, the |
@ttys3 it depends on how you have your health checking configured. Please ask on the forums! https://caddy.community. Also see the docs, which have an explanation of how it works https://caddyserver.com/docs/api#get-reverse-proxyupstreams |
Sorry for the distrub, I've read the document explanation carefully and now see it. But, anyway, the |
The admin API matches the field names in the internal structs. Changing it now would be a breaking change. The documentation explains it sufficiently IMO, so no need to change it. |
Ok. got it. |
As discussed in https://caddy.community/t/cli-to-query-for-upstream-server-status/12210
Tested with a Caddyfile like this: