Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface {
Collect(context.Context, chan<- prometheus.Metric) (err error)
}
type CollectorManager ¶
type CollectorManager struct {
// contains filtered or unexported fields
}
CollectorManager is a collector that executes all other collectors
func NewCollectorManager ¶
func NewCollectorManager(endpoint string, timeout time.Duration) *CollectorManager
func (*CollectorManager) Collect ¶
func (manager *CollectorManager) Collect(ch chan<- prometheus.Metric)
Collect executes all collectors and sends the collected metrics to the provided channel. It also sends the duration of the collection to the scrapeDurations collector.
func (*CollectorManager) Describe ¶
func (manager *CollectorManager) Describe(ch chan<- *prometheus.Desc)
Click to show internal directories.
Click to hide internal directories.