Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectorFunc ¶
type CollectorFunc func(ch chan<- prometheus.Metric)
CollectorFunc is a convenient way to implement a Prometheus Collector without interface boilerplate.
This implementation relies on prometheus.DescribeByCollect; familiarize yourself with that documentation before using.
func (CollectorFunc) Collect ¶
func (c CollectorFunc) Collect(ch chan<- prometheus.Metric)
func (CollectorFunc) Describe ¶
func (c CollectorFunc) Describe(ch chan<- *prometheus.Desc)
Click to show internal directories.
Click to hide internal directories.