Documentation
¶
Overview ¶
Package obs is a dependency-free metrics registry that serves the Prometheus text exposition format 0.0.4.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CounterVec ¶
type CounterVec struct {
// contains filtered or unexported fields
}
CounterVec is a counter family keyed by label values.
func (*CounterVec) Add ¶
func (c *CounterVec) Add(v float64, values ...string)
Add adds v to the series for the label values.
func (*CounterVec) Inc ¶
func (c *CounterVec) Inc(values ...string)
Inc adds 1 to the series for the label values.
type GaugeVec ¶
type GaugeVec struct {
// contains filtered or unexported fields
}
GaugeVec is a gauge family keyed by label values.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry holds metric families and serves them over HTTP.
func (*Registry) Counter ¶
func (r *Registry) Counter(name, help string, labels ...string) *CounterVec
Counter registers a counter family. It panics on a duplicate name.
Click to show internal directories.
Click to hide internal directories.