The native telemetry does not work for me:
That doesn’t look like a bug in the prometheus middleware: can you verify that files in
vhosts/* are being loaded as you expect? (Try inlining the contents.) Right now your Caddyfile is malformed.
Looks like I forgot how to read…
For each virtual host that you want to see metrics for.
That last line solved my problem.
I am affected by the websocket+panic bug though: https://github.com/miekg/caddy-prometheus/issues/43. I have websites that rely on websockets and the plugin break them.
It seems there is currently no way for me to get metrics from caddy