Prometheus metrics on Caddy —
Continuing with my Caddy experimentation, I wanted to get some metrics out of it. Caddy provides metrics out of the box on its admin API:
https://localhost:2019/metrics This works well if you have prometheus running on the same server though in my case, prometheus is running on a different VM and on a private network.
Caddy will enforce https on every vhost by default. For public domains, it’ll try to get a Let’s Encrypt certificate and for IP addresses and localhost, it’ll use an internal CA to sign certificates that it’ll serve for these.