Documentation ¶
Index ¶
Constants ¶
View Source
const MaxConcurrentChecks = 3
MaxConcurrentChecks specifies the maximum number of sites that can be checked concurrently
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct { // Targets to check Targets []checker.Checker // MaxConcurrentChecks limits the number of checks to perform concurrently. Defaults to MaxConcurrentChecks MaxConcurrentChecks int64 }
Collector checks the status of a list of Targets and exposes the results as Prometheus scrape metrics
func (Collector) Collect ¶
func (c Collector) Collect(ch chan<- prometheus.Metric)
Collect implements the Prometheus Collector interface. It checks each target and exposes the results as Prometheus metrics. Collect limits the number of checks that are performed concurrently, as specified by ConcurrentChecks.
func (Collector) Describe ¶
func (c Collector) Describe(ch chan<- *prometheus.Desc)
Describe implements the Prometheus Collector interface
Click to show internal directories.
Click to hide internal directories.