Prometheus metrics
Prometheus uses a pull model in which a service exposes text-formatted metrics through an endpoint such as /metrics. A Prometheus server periodically scrapes that endpoint, while the client_golang promhttp.Handler serves the registered metrics.
Minimal example
r.Handle("/metrics", promhttp.Handler())