Documentation ¶
Index ¶
- func Provider(ctx context.Context, cfg *viper.Viper) (providers.Metrics, error)
- 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 ¶
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func (*Metrics) RegisterGauge ¶
RegisterGauge registers a new gauge with the given name and labels
func (*Metrics) RegisterHistogram ¶
Click to show internal directories.
Click to hide internal directories.