Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter implements Counter, via a Prometheus CounterVec.
func NewCounter ¶
func NewCounter(cv *prometheus.CounterVec) *Counter
NewCounter wraps the CounterVec and returns a usable Counter object.
func NewCounterFrom ¶
func NewCounterFrom(opts prometheus.CounterOpts, labelNames []string) *Counter
NewCounterFrom constructs and registers a Prometheus CounterVec, and returns a usable Counter object.
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
Gauge implements Gauge, via a Prometheus GaugeVec.
func NewGauge ¶
func NewGauge(gv *prometheus.GaugeVec) *Gauge
NewGauge wraps the GaugeVec and returns a usable Gauge object.
func NewGaugeFrom ¶
func NewGaugeFrom(opts prometheus.GaugeOpts, labelNames []string) *Gauge
NewGaugeFrom constructs and registers a Prometheus GaugeVec, and returns a usable Gauge object.
type Histogram ¶
type Histogram struct {
// contains filtered or unexported fields
}
Histogram implements Histogram via a Prometheus HistogramVec. The difference between a Histogram and a Summary is that Histograms require predefined quantile buckets, and can be statistically aggregated.
func NewHistogram ¶
func NewHistogram(hv *prometheus.HistogramVec) *Histogram
NewHistogram wraps the HistogramVec and returns a usable Histogram object.
func NewHistogramFrom ¶
func NewHistogramFrom(opts prometheus.HistogramOpts, labelNames []string) *Histogram
NewHistogramFrom constructs and registers a Prometheus HistogramVec, and returns a usable Histogram object.
type LabelValues ¶
type LabelValues []string
func (LabelValues) With ¶
func (lvs LabelValues) With(labelValues ...string) LabelValues
With validates the input, and returns a new aggregate labelValues.