Documentation ¶
Overview ¶
Package prometheus provides a Prometheus-based implementation of the MetricFactory abstraction.
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 is a wrapper around a Prometheus Counter or CounterVec object.
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
Gauge is a wrapper around a Prometheus Gauge or GaugeVec object.
type Histogram ¶
type Histogram struct {
// contains filtered or unexported fields
}
Histogram is a wrapper around a Prometheus Histogram or HistogramVec object.
type MetricFactory ¶
type MetricFactory struct {
Prefix string
}
MetricFactory allows the creation of Prometheus-based metrics.
func (MetricFactory) NewCounter ¶
func (pmf MetricFactory) NewCounter(name, help string, labelNames ...string) monitoring.Counter
NewCounter creates a new Counter object backed by Prometheus.
func (MetricFactory) NewGauge ¶
func (pmf MetricFactory) NewGauge(name, help string, labelNames ...string) monitoring.Gauge
NewGauge creates a new Gauge object backed by Prometheus.
func (MetricFactory) NewHistogram ¶
func (pmf MetricFactory) NewHistogram(name, help string, labelNames ...string) monitoring.Histogram
NewHistogram creates a new Histogram object backed by Prometheus.
Directories ¶
Path | Synopsis |
---|---|
The etcdiscover binary monitors etcd to track the set of instances that support a gRPC service, and updates a file so that Prometheus can track those instances.
|
The etcdiscover binary monitors etcd to track the set of instances that support a gRPC service, and updates a file so that Prometheus can track those instances. |
Click to show internal directories.
Click to hide internal directories.