metrics

package
v0.27.6 Latest Latest
Warning

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

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

Documentation

Overview

Package metrics provides the metrics of custom resources such as HRA.

This depends on the metrics exporter of kubebuilder. See https://book.kubebuilder.io/reference/metrics.html for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetHorizontalRunnerAutoscalerPercentageRunnersBusy

func SetHorizontalRunnerAutoscalerPercentageRunnersBusy(
	o metav1.ObjectMeta,
	enterprise string,
	organization string,
	repository string,
	kind string,
	name string,
	desiredReplicas int,
	numRunners int,
	numRunnersRegistered int,
	numRunnersBusy int,
	numTerminatingBusy int,
)

func SetHorizontalRunnerAutoscalerQueuedAndInProgressWorkflowRuns

func SetHorizontalRunnerAutoscalerQueuedAndInProgressWorkflowRuns(
	o metav1.ObjectMeta,
	enterprise string,
	organization string,
	repository string,
	kind string,
	name string,
	necessaryReplicas int,
	workflowRunsCompleted int,
	workflowRunsInProgress int,
	workflowRunsQueued int,
	workflowRunsUnknown int,
)

func SetHorizontalRunnerAutoscalerSpec

func SetHorizontalRunnerAutoscalerSpec(o metav1.ObjectMeta, spec v1alpha1.HorizontalRunnerAutoscalerSpec)

func SetHorizontalRunnerAutoscalerStatus

func SetHorizontalRunnerAutoscalerStatus(o metav1.ObjectMeta, status v1alpha1.HorizontalRunnerAutoscalerStatus)

func SetRunnerDeployment

func SetRunnerDeployment(rd v1alpha1.RunnerDeployment)

func SetRunnerSet

func SetRunnerSet(rd v1alpha1.RunnerSet)

Types

This section is empty.

Jump to

Keyboard shortcuts

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