This directive enables prometheus metrics for Caddy.
For each virtual host that you want to see metrics for. It optionally takes an address where the metrics are exported, the default is localhost:9180. The metrics path is fixed to /metrics. You'll need to put this module early in the chain, so that the duration histogram actually makes sense. I've put it at number 0.
Access the full documentation for this plugin off-site:Docs
Get help from the maintainers of the http.prometheus plugin:Support
Visit http.prometheus's website for more information:Website