package
0.8.0
Repository: https://github.com/jacksontj/client_golang.git
Documentation: pkg.go.dev

# Functions

Handler returns an HTTP handler for the prometheus.DefaultGatherer.
HandlerFor returns an http.Handler for the provided Gatherer.

# Constants

Ignore errors and try to serve as many metrics as possible.
Serve an HTTP status code 500 upon the first error encountered.
Panic upon the first error encountered (useful for "crash only" apps).

# Structs

HandlerOpts specifies options how to serve metrics via an http.Handler.

# Interfaces

Logger is the minimal interface HandlerOpts needs for logging.

# Type aliases

HandlerErrorHandling defines how a Handler serving metrics will handle errors.