Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SchedulerCollector ¶
SchedulerCollector implements the Collector interface.
func (SchedulerCollector) Collect ¶
func (sc SchedulerCollector) Collect(ch chan<- prometheus.Metric)
Collect first get all jobs using Scheduler methodst
Then it creates constant metrics on the fly based on the returned data.
Collect could be called concurrently, we need to make Scheduler methods concurrently safe
func (SchedulerCollector) Describe ¶
func (sc SchedulerCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements Prometheus Collector
Click to show internal directories.
Click to hide internal directories.