fiberprometheus
fiberprometheus copied to clipboard
ignore /metrics, /live and /ready path
is it possible to ignore /metrics, /live and /ready path from getting included in Prometheus metrics. its increasing romhttp_metric_handler_requests_total unnecessarily
promhttp_metric_handler_requests_total{code="200"} 33
promhttp_metric_handler_requests_total{code="500"} 0
promhttp_metric_handler_requests_total{code="503"} 0
and also is there a way to ignore other routes in future.
@kirankumar-grootan Just submitted a PR to add support for skipping paths natively on this middleware.
Hi @gaby @ansrivas thanks for working on this and merging to master. sry for delay response. 🙏
the module seems to be not published to https://pkg.go.dev/github.com/ansrivas/fiberprometheus/v2. it doesn't have the skipPaths function to use it.