mholt / caddy-l4

Layer 4 (TCP/UDP) app for Caddy
Apache License 2.0
963 stars 73 forks source link

Expose upstream status in admin API #92

Open jtackaberry opened 1 year ago

jtackaberry commented 1 year ago

https://github.com/caddyserver/caddy/pull/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 commented 1 year ago

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

jtackaberry commented 1 year ago

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

mholt commented 1 year ago

@jtackaberry I'd probably just copy it :smile:

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 commented 7 months ago

@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 commented 7 months ago

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.