cmd

package
v0.0.0-...-f1cb1c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type SchedulerCollector

type SchedulerCollector struct {
	Scheduler *scheduler.Scheduler
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL