Skip to content

http.prometheus

This directive enables prometheus metrics for Casket.

Full documentation

Examples

Enable metrics

casketfile
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.