Versions in this module Expand all Collapse all v2 v2.1.0 Oct 20, 2024 Changes in this version + type Controller struct + func CreateController(opts Options) (*Controller, error) + func (mws *Controller) NewCounterVecWithCallback(name string, help string, variableLabels []string, subItems VectorMetric) error + func (mws *Controller) NewCounterWithCallback(name string, help string, handler ValueHandler) error + func (mws *Controller) NewGaugeVecWithCallback(name string, help string, variableLabels []string, subItems VectorMetric) error + func (mws *Controller) NewGaugeWithCallback(name string, help string, handler ValueHandler) error + func (mws *Controller) Registry() *prometheus.Registry + func (mws *Controller) Start() error + func (mws *Controller) Stop() + type HealthCallback func() string + type Options struct + AccessToken string + Address string + DebugProfilesApiPath string + EnableDebugProfiles bool + HealthApiPath string + HealthCallback HealthCallback + ListenErrorHandler webserver.ListenErrorHandler + MetricsApiPath string + Middlewares []webserver.HandlerFunc + Name string + Port uint16 + RequestAccessTokenInHealth bool + Server *webserver.Server + TLSConfig *tls.Config + type ValueHandler func() float64 + type VectorMetric []struct