reverseproxy: Add upstreams healthy metrics#4935
Conversation
|
Looks cool! I'm not familiar with Prometheus so I'll let our in-house expert take a look if he has a chance 😃 I'll review the usage of the reverse proxy internals though. |
mholt
left a comment
There was a problem hiding this comment.
Looks pretty good, thanks for the change! I'll leave it to Dave to do the final review if he has a chance.
|
@hairyhenderson I know you're busy so I won't require a review from you to merge this! Let me know if you want me to hold off so you can review, otherwise I will probably just merge it in. |
hairyhenderson
left a comment
There was a problem hiding this comment.
Thanks @david-szabo97, LGTM!
|
Great, thank you for the contribution @david-szabo97 ! |
|
I'm not a big fan of the hard-coded 10s delay between metric updates. |
Adds a new metric that tracks the health status of reverse proxy upstreams.
Metric:
caddy_reverse_proxy_upstreams_healthygauge1- the upstream is healthy0- the upstream is unhealthyupstream- Address of the upstreamExample Grafana panel:

Partially resolves #4140