Prometheus metrics missing on new binary 2.7.5

Hi,

Having issue with missing metrics after upgrade to 2.7.5

At the moment I have just: caddy_reverse_proxy_upstreams_healthy{upstream=“x.x.x.x:80”} 1 in exporter as usable metric.
All other metrics starting with caddy_* are missing, like:
caddy_admin_http_requests_total
Does anyone faced this kind of issue?

All the best, Milos.

You need to enable the servers > metrics global option to opt in. See Monitoring Caddy with Prometheus metrics — Caddy Documentation

2 Likes

Thx!
This actually worked. When i added directive in global options, metrics are available.

{
    servers {
        metrics
    }
}
1 Like

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