http.prometheus Plugin
This directive enables prometheus metrics for Caddy.
Examples
Enable metrics
prometheus
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.
Related Links
Documentation
Access the full documentation for this plugin off-site:
Docs
Plugin Help
Get help from the maintainers of the http.prometheus plugin:
Support
Plugin Website
Visit http.prometheus's website for more information:
Website
This plugin is independent of the Caddy project and is not endorsed or maintained by Caddy developers. Use at your own risk. Do not file issues for this plugin on Caddy's bug tracker.