Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobCollector ¶
type JobCollector struct { Disabled *prometheus.Desc Buildable *prometheus.Desc Color *prometheus.Desc LastBuild *prometheus.Desc LastCompletedBuild *prometheus.Desc LastFailedBuild *prometheus.Desc LastStableBuild *prometheus.Desc LastSuccessfulBuild *prometheus.Desc LastUnstableBuild *prometheus.Desc LastUnsuccessfulBuild *prometheus.Desc NextBuild *prometheus.Desc // contains filtered or unexported fields }
JobCollector collects metrics about the servers.
func NewJobCollector ¶
func NewJobCollector(logger log.Logger, client *jenkins.Client, failures *prometheus.CounterVec, duration *prometheus.HistogramVec, cfg config.Target) *JobCollector
NewJobCollector returns a new JobCollector.
func (*JobCollector) Collect ¶
func (c *JobCollector) Collect(ch chan<- prometheus.Metric)
Collect is called by the Prometheus registry when collecting metrics.
func (*JobCollector) Describe ¶
func (c *JobCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the super-set of all possible descriptors of metrics collected by this Collector.
func (*JobCollector) Metrics ¶
func (c *JobCollector) Metrics() []*prometheus.Desc
Metrics simply returns the list metric descriptors for generating a documentation.
Click to show internal directories.
Click to hide internal directories.