http.prometheus Plugin

This feature does not come with Caddy by default. To get it, select the http.prometheus plugin when you download Caddy.

This directive enables prometheus metrics for Caddy.

Full documentation

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

Plugin Author: miek

Last Updated: 22 Apr 2017, 4:24 PM

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.