Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector is a prometheus based implementation of the stats collector
func NewCollector ¶
func NewCollector() *Collector
NewCollector returns a Prometheus metrics collector
func (*Collector) RegisterCounter ¶
func (c *Collector) RegisterCounter(options adapter.CollectorOptions) adapter.Counter
RegisterCounter registers a new counter with Prometheus
func (*Collector) RegisterGauge ¶
func (c *Collector) RegisterGauge(options adapter.CollectorOptions) adapter.Gauge
RegisterGauge registers a new gauge with Prometheus
func (*Collector) RegisterTimer ¶
func (c *Collector) RegisterTimer(options adapter.CollectorOptions) adapter.Timer
RegisterTimer registers a new timer with Prometheus
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter for Prometheus
Click to show internal directories.
Click to hide internal directories.