Skip to content
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

Expose upstream status in admin API #92

Open
jtackaberry opened this issue Jan 3, 2023 · 5 comments
Open

Expose upstream status in admin API #92

jtackaberry opened this issue Jan 3, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@jtackaberry
Copy link
Contributor

caddyserver/caddy#4125 introduced an endpoint on the admin API to report upstream statuses for reverse_proxy. It would be nice if caddy-l4 offered something similar.

@mholt mholt added the enhancement New feature or request label Jan 3, 2023
@mholt
Copy link
Owner

mholt commented Jan 3, 2023

Oh yeah... that'd be cool. Anyone is welcome to pick this up!

@jtackaberry
Copy link
Contributor Author

Would it basically involve copying and adapting the code from the PR, or is there a cleverer way allowing for less duplication?

@mholt
Copy link
Owner

mholt commented Jan 4, 2023

@jtackaberry I'd probably just copy it 😄

I do have it on my TODO list to make the admin endpoint more properly extensible though, so that API might change slightly this year.

@PhilippKolmann
Copy link

@mholt or @jtackaberry

I am currently looking for a way to get this exact info to create a HAproxy like info page [1] about the upstream health for my l4 caddy...

Has anyone found time to implement the endpoint yet?

[1] example can be found here: https://statuslist.app/uptime-monitoring/haproxy/haproxy-stats-page-guide/

@mholt
Copy link
Owner

mholt commented Mar 6, 2024

My plate is full currently, but I agree this would be cool! I could prioritize this with a sufficient sponsorship or anyone else is also welcome to work on this in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants