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 lazy Prometheus collector. The zero value is ready for use.
func (*Collector) Collect ¶
func (c *Collector) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector. If the inner collector is set, its Collect method is called. Otherwise, Collect is a no-op.
func (*Collector) Describe ¶
func (c *Collector) Describe(chan<- *prometheus.Desc)
Describe implements prometheus.Collector. Because Collector is a lazycollector, it is unchecked, so Describe is a no-op.
func (*Collector) Set ¶
func (c *Collector) Set(inner prometheus.Collector)
Set updates the inner collector used by the lazy collector.
Click to show internal directories.
Click to hide internal directories.