commons

package
v0.0.0-...-b46d228 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TotalQueriesMetricName = "query_total"
	ListingNodesAction     = "listing_nodes"
	ListingPVCsAction      = "listing_pvc"
	ListingSVCsAction      = "listing_svc"
)

Variables

View Source
var (
	TotalQueriesMetric = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: namespace,
			Subsystem: subsystem,
			Name:      TotalQueriesMetricName,
			Help:      "Total number of queries to SKR to get the metrics of the cluster.",
		},
		[]string{actionLabel, successLabel, shootNameLabel, instanceIdLabel, runtimeIdLabel, subAccountLabel, globalAccountLabel},
	)
)

Functions

func DeleteMetrics

func DeleteMetrics(shootInfo kmccache.Record) bool

DeleteMetrics deletes all the metrics for the provided shoot. Returns true if some metrics are deleted, returns false if no metrics are deleted for that subAccount.

func RecordSKRQuery

func RecordSKRQuery(success bool, action string, shootInfo kmccache.Record)

func SetupScheme

func SetupScheme() (*runtime.Scheme, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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