Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics is a component which serve metrics data to Prometheus.
func NewMetrics ¶
func NewMetrics(cfg configuration.Metrics) (Metrics, error)
NewMetrics creates new Metrics component.
func (*Metrics) AddCounter ¶
func (m *Metrics) AddCounter(name, componentName, help string) (prometheus.Counter, error)
AddCounter adds new counter to metrics registry.
func (*Metrics) AddGauge ¶
func (m *Metrics) AddGauge(name, componentName, help string) (prometheus.Gauge, error)
AddGauge adds new gauge to metrics registry.
Click to show internal directories.
Click to hide internal directories.