proxy.golang.org : github.com/prometheus/client_golang/prometheus/promhttp
Package promhttp provides tooling around HTTP servers and clients. First, the package allows the creation of http.Handler instances to expose Prometheus metrics via HTTP. promhttp.Handler acts on the prometheus.DefaultGatherer. With HandlerFor, you can create a handler for a custom registry or anything that implements the Gatherer interface. It also allows the creation of handlers that act differently on errors or allow to log errors. Second, the package provides tooling to instrument instances of http.Handler via middleware. Middleware wrappers follow the naming scheme InstrumentHandlerX, where X describes the intended use of the middleware. See each function's doc comment for specific details. Finally, the package allows for an http.RoundTripper to be instrumented via middleware. Middleware wrappers follow the naming scheme InstrumentRoundTripperX, where X describes the intended use of the middleware. See each function's doc comment for specific details.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/prometheus/client_golang/prometheus/promhttp
License: Apache-2.0
Latest release: 2 days ago
Namespace: github.com/prometheus/client_golang/prometheus
Stars: 5,343 on GitHub
Forks: 1,172 on GitHub
Total Commits: 1181
Committers: 242
Average commits per author: 4.88
Development Distribution Score (DDS): 0.835
More commit stats: commits.ecosyste.ms
See more repository details: repos.ecosyste.ms
Last synced: 2 days ago