metrics

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GitCommandsDurationSecondsCount = prometheus.NewCounterVec(prometheus.CounterOpts{
		Help: "Total number of commands executed by git.",
		Name: "git_commands_duration_seconds_count",
	}, []string{"command"})
	GitCommandsDurationSecondsSum = prometheus.NewCounterVec(prometheus.CounterOpts{
		Help: "Total duration it took for git to execute commands.",
		Name: "git_commands_duration_seconds_sum",
	}, []string{"command"})
)
View Source
var (
	RunTaskSuccess = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Help: "Status of the last run of a task. 1 indicates success. 0 indicates failure.",
			Name: "run_task_success",
		},
		[]string{"task"},
	)
	RunFinish = prometheus.NewGauge(prometheus.GaugeOpts{
		Help: "Last unix time when the run finished.",
		Name: "run_finish_time_seconds",
	})
	RunStart = prometheus.NewGauge(prometheus.GaugeOpts{
		Help: "Last unix time when the run started.",
		Name: "run_start_time_seconds",
	})
)

Functions

func InstrumentHttpClient

func InstrumentHttpClient(c *http.Client)

func Register

func Register(reg prometheus.Registerer)

Types

This section is empty.

Jump to

Keyboard shortcuts

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