Skip to content

Files

Latest commit

513ddcb · Jan 6, 2025

History

History

metrics

Metrics (Prometheus)

A wrapper for enabling Prometheus on a stanard http.ServerMux.

Also contains a docker-compose file for running a Prometheus server with a sample configuration.

Usage

mux := http.NewServeMux()
mux = metrics.Expose(mux)