metrics

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuildStrategyLabel string = "buildstrategy"
	NamespaceLabel     string = "namespace"
	BuildLabel         string = "build"
	BuildRunLabel      string = "buildrun"
)

Labels used in Prometheus metrics

Variables

This section is empty.

Functions

func BuildCountInc

func BuildCountInc(buildStrategy string, namespace string, build string)

BuildCountInc increases a number of the existing build total count

func BuildRunCompletionObserve

func BuildRunCompletionObserve(buildStrategy string, namespace string, build string, buildRun string, duration time.Duration)

BuildRunCompletionObserve sets the build run completion time

func BuildRunCountInc

func BuildRunCountInc(buildStrategy string, namespace string, build string, buildRun string)

BuildRunCountInc increases a number of the existing build run total count

func BuildRunEstablishObserve

func BuildRunEstablishObserve(buildStrategy string, namespace string, build string, buildRun string, duration time.Duration)

BuildRunEstablishObserve sets the build run establish time

func BuildRunRampUpDurationObserve

func BuildRunRampUpDurationObserve(buildStrategy string, namespace string, build string, buildRun string, duration time.Duration)

BuildRunRampUpDurationObserve processes the observation of a new buildrun ramp-up duration

func ExtraHandlers added in v0.4.0

func ExtraHandlers() map[string]http.HandlerFunc

ExtraHandlers returns a mapping of paths and their respective additional HTTP handlers to be configured at the metrics listener

func InitPrometheus

func InitPrometheus(config *config.Config)

InitPrometheus initializes the prometheus stuff

func TaskRunPodRampUpDurationObserve

func TaskRunPodRampUpDurationObserve(buildStrategy string, namespace string, build string, buildRun string, duration time.Duration)

TaskRunPodRampUpDurationObserve processes the observation of a new taskrun pod ramp-up duration

func TaskRunRampUpDurationObserve

func TaskRunRampUpDurationObserve(buildStrategy string, namespace string, build string, buildRun string, duration time.Duration)

TaskRunRampUpDurationObserve processes the observation of a new taskrun ramp-up duration

Types

This section is empty.

Jump to

Keyboard shortcuts

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