metrics

package
v1.24.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHandler

func GetHandler(collector prometheus.Collector) http.Handler

GetHandler returns http.Handler for prometheus metrics.

func NewCollector

func NewCollector(client *v3.Client) prometheus.Collector

NewCollector returns a new prometheus.Collector.

func UpdateLeader

func UpdateLeader(flag bool)

UpdateLeader updates "leader".

func UpdateOperationPhase

func UpdateOperationPhase(phase cke.OperationPhase, ts time.Time)

UpdateOperationPhase updates "operation_phase" and its timestamp.

func UpdateRebootQueueEntries added in v1.22.8

func UpdateRebootQueueEntries(numEntries int)

UpdateRebootQueueEntries updates "reboot_queue_entries".

func UpdateRebootQueueItems added in v1.22.8

func UpdateRebootQueueItems(counts map[string]int)

UpdateRebootQueueItems updates "reboot_queue_items".

func UpdateSabakanIntegration

func UpdateSabakanIntegration(isSuccessful bool, workersByRole map[string]int, unusedMachines int, ts time.Time)

UpdateSabakanIntegration updates Sabakan integration metrics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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