metrics

package
v0.0.0-...-9b598c7 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CosFleetManager - metrics prefix
	CosFleetManager = "cos_fleet_manager"

	VaultServiceTotalCount   = "vault_service_total_count"
	VaultServiceSuccessCount = "vault_service_success_count"
	VaultServiceFailureCount = "vault_service_failure_count"
	VaultServiceErrorsCount  = "vault_service_errors_count"
)

Variables

View Source
var VaultServiceMetricsLabels = []string{
	labelOperation,
}

Functions

func IncreaseVaultServiceErrorsCount

func IncreaseVaultServiceErrorsCount(operationType string)

func IncreaseVaultServiceFailureCount

func IncreaseVaultServiceFailureCount(operationType string)

func IncreaseVaultServiceSuccessCount

func IncreaseVaultServiceSuccessCount(operationType string)

func IncreaseVaultServiceTotalCount

func IncreaseVaultServiceTotalCount(operationType string)

func Reset

func Reset()

Reset the metrics we have defined. It is mainly used for testing.

func ResetMetricsForVaultService

func ResetMetricsForVaultService()

ResetMetricsForVaultService will reset the metrics related to Vault Service requests This is needed because if current process is not the leader anymore, the metrics need to be reset otherwise staled data will be scraped

Types

This section is empty.

Jump to

Keyboard shortcuts

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