Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
Listen string
Namespace string
Subsystem string
Cert string
Key string
Cacert string
}
Configuration the configuration for prometheus
type Prometheus ¶
type Prometheus struct {
Config *Configuration
Logger *zap.Logger
Registry *prom.Registry
}
Prometheus contains the prometheus registry and config
func (*Prometheus) Handler ¶
func (p *Prometheus) Handler() http.Handler
Handler returns the handler for the prometheus component
func (*Prometheus) Register ¶
func (p *Prometheus) Register(collector prom.Collector) error
Register adds a metric to the component
func (*Prometheus) Unregister ¶
func (p *Prometheus) Unregister(collector prom.Collector)
Unregister removes a metric from the component
Click to show internal directories.
Click to hide internal directories.