Documentation ¶
Index ¶
- type Metrics
- func (m *Metrics) Dec(name string, labels ...string)
- func (m *Metrics) Inc(name string, labels ...string)
- func (m *Metrics) Observe(name string, value float64, labels ...string)
- func (m *Metrics) RegisterGauge(name string, labels ...string)
- func (m *Metrics) RegisterHistogram(name string, labels ...string)
- func (m *Metrics) Set(name string, value float64, labels ...string)
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 prometheus metrics provider
func (*Metrics) RegisterGauge ¶
RegisterGauge registers a new gauge with the given name and labels
func (*Metrics) RegisterHistogram ¶
RegisterHistogram registers a new histogram with the given name and labels
Click to show internal directories.
Click to hide internal directories.