Documentation
¶
Overview ¶
Package prometheus provides a set of utilities for assisting with Prometheus data
Package prometheus provides a set of utilities for assisting with Prometheus data
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶ added in v1.14.4
type Option func(s *Server)
Option is an option pattern for prometheus server
func WithCertificateMonitoring ¶ added in v1.14.4
WithCertificateMonitoring enables monitoring for certificate renewals
func WithCustomCA ¶ added in v1.14.4
WithCustomCA sets the CA file to use for mTLS
func WithCustomCert ¶ added in v1.14.4
WithCustomCert sets the certificate and key to use for TLS
func WithHeaderTimeout ¶ added in v1.14.4
WithHeaderTimeout sets the header timeout for the prometheus server
func WithMaxBindThreshold ¶ added in v1.15.0
WithMaxBindThreshold sets the maximum threshold for binding retries
type Server ¶ added in v1.14.4
type Server struct {
// contains filtered or unexported fields
}
Server is a server type for exposing Prometheus metrics
func (*Server) ListenAndServe ¶ added in v1.14.4
func (s *Server) ListenAndServe(ctx context.Context, cancel context.CancelFunc)
ListenAndServe gathers the certificate and initiates the Server to begin handling incoming requests