Documentation ¶
Index ¶
- type Metrics
- func (m *Metrics) Handler() http.Handler
- func (m *Metrics) Name() string
- func (m *Metrics) NewCounterWithTags(opts metrics.Options) (metrics.TagCounter, error)
- func (m *Metrics) NewGaugeWithTags(opts metrics.Options) (metrics.TagGauge, error)
- func (m *Metrics) NewHistogramWithTags(opts metrics.HistogramOptions) (metrics.TagObserver, error)
- type TagCounter
- type TagGauge
- type TagHistogram
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 Prometheus metrics engine
func (*Metrics) NewCounterWithTags ¶
NewCounterWithTags creates new prometheus counter, registering it
func (*Metrics) NewGaugeWithTags ¶
NewGaugeWithTags creates new prometheus gauge, registering it
func (*Metrics) NewHistogramWithTags ¶
func (m *Metrics) NewHistogramWithTags(opts metrics.HistogramOptions) (metrics.TagObserver, error)
NewHistogramWithTags creates new histogram, registering it
type TagCounter ¶
type TagCounter struct {
// contains filtered or unexported fields
}
TagCounter Prometheus counter wrapper
func (*TagCounter) WithLabels ¶
func (tc *TagCounter) WithLabels(lv ...string) metrics.Counter
WithLabels creates metric with given tag values in defined order
type TagGauge ¶
type TagGauge struct {
// contains filtered or unexported fields
}
TagGauge Prometheus gauge wrapper
func (*TagGauge) WithLabels ¶
WithLabels creates metric with given tag values in defined order
type TagHistogram ¶
type TagHistogram struct {
// contains filtered or unexported fields
}
TagHistogram Prometheus histogram wrapper
func (*TagHistogram) WithLabels ¶
func (th *TagHistogram) WithLabels(lv ...string) metrics.Observer
WithLabels creates metric with given tag values in defined order
Click to show internal directories.
Click to hide internal directories.