Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMetricGatherer ¶
func NewMetricGatherer() (prometheus.Gatherer, error)
NewMetricGatherer creates a new prometheus.Gatherer with all registered collectors.
func RegisterCollector ¶
func RegisterCollector(name string, init InitCollector) error
RegisterCollector registers the named prometheus.Collector for metrics collection.
Types ¶
type InitCollector ¶
type InitCollector func() (prometheus.Collector, error)
InitCollector is the type for functions that initialize collectors.
Click to show internal directories.
Click to hide internal directories.