Missing metrics in latest version

caddy_reverse_proxy_upstreams_healthy metrics is missing in v2.9.1.

building (using xcaddy) and running:

xcaddy build v2.9.1
./caddy run --config Caddyfile

trying to pull the metric:

curl -s localhost:9999/metrics| grep upstream

and the metric is missing

the same setup works with earlier versions, e.g. v2.8.4

My caddyfile (for version v2.9.1)

{
	servers {
		metrics
	}
}
:9999 {
	metrics /metrics
}

:5555 {	
	route  {
        reverse_proxy {
			to 127.0.0.1:5000
		}
	}
}

and in version v2.9.1 I have also tries with metrics as global directive (removing the wrapping server)

any suggestions?

This was a gap and fixed in this commit

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.