metrics

package
v1.32.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	L4ilbLatencyMetricName                         = "l4_ilb_sync_duration_seconds"
	L4ILBDualStackLatencyMetricName                = "l4_ilb_dualstack_sync_duration_seconds"
	L4ILBMultiNetLatencyMetricName                 = "l4_ilb_multinet_sync_duration_seconds"
	L4ilbErrorMetricName                           = "l4_ilb_sync_error_count"
	L4netlbLatencyMetricName                       = "l4_netlb_sync_duration_seconds"
	L4NetLBDualStackLatencyMetricName              = "l4_netlb_dualstack_sync_duration_seconds"
	L4NetLBMultiNetLatencyMetricName               = "l4_netlb_multinet_sync_duration_seconds"
	L4netlbErrorMetricName                         = "l4_netlb_sync_error_count"
	L4netlbLegacyToRBSMigrationPreventedMetricName = "l4_netlb_legacy_to_rbs_migration_prevented_count"

	L4SyncDetailsMetricName = "l4_sync_details_count"
)
View Source
const ControllerHealthyStatus = L4ControllerHealthCheckStatus("Healthy")
View Source
const ControllerUnhealthyStatus = L4ControllerHealthCheckStatus("Unhealthy")

Variables

This section is empty.

Functions

func IncreaseL4NetLBLegacyToRBSMigrationAttempts added in v1.19.0

func IncreaseL4NetLBLegacyToRBSMigrationAttempts()

IncreaseL4NetLBLegacyToRBSMigrationAttempts increases l4NetLBLegacyToRBSPrevented metric for stopped migration

func IncreaseL4NetLBTargetPoolRaceWithRBS added in v1.19.0

func IncreaseL4NetLBTargetPoolRaceWithRBS()

IncreaseL4NetLBTargetPoolRaceWithRBS increases l4NetLBLegacyToRBSPrevented metric for race condition between controllers

func PublishILBSyncMetrics

func PublishILBSyncMetrics(success bool, syncType, gceResource, errType string, startTime time.Time, isResync bool, isWeightedLB bool)

PublishILBSyncMetrics exports metrics related to the L4 ILB sync.

func PublishL4ControllerHealthCheckStatus added in v1.22.0

func PublishL4ControllerHealthCheckStatus(controllerName string, status L4ControllerHealthCheckStatus)

PublishL4ControllerHealthCheckStatus stores health state of the controller.

func PublishL4ControllerPanicCount added in v1.31.0

func PublishL4ControllerPanicCount(controllerName string)

PublishL4ControllerPanicCount exports error count metrics for L4 controllers

func PublishL4FailedHealthCheckCount added in v1.17.0

func PublishL4FailedHealthCheckCount(controllerName string)

PublishL4FailedHealthCheckCount observers failed health check from controller.

func PublishL4ILBDualStackSyncLatency added in v1.22.0

func PublishL4ILBDualStackSyncLatency(success bool, syncType, ipFamilies string, startTime time.Time, isResync bool)

PublishL4ILBDualStackSyncLatency exports the given sync latency datapoint.

func PublishL4ILBMultiNetSyncLatency added in v1.26.0

func PublishL4ILBMultiNetSyncLatency(success bool, syncType string, startTime time.Time, isResync bool)

PublishL4ILBMultiNetSyncLatency exports the given sync latency datapoint.

func PublishL4NetLBDualStackSyncLatency added in v1.22.0

func PublishL4NetLBDualStackSyncLatency(success bool, syncType, ipFamilies string, startTime time.Time, isResync bool)

PublishL4NetLBDualStackSyncLatency exports the given sync latency datapoint.

func PublishL4NetLBMultiNetSyncLatency added in v1.26.0

func PublishL4NetLBMultiNetSyncLatency(success bool, syncType string, startTime time.Time, isResync bool)

PublishL4NetLBMultiNetSyncLatency exports the given sync latency datapoint.

func PublishL4RemovedILBFinalizer added in v1.30.0

func PublishL4RemovedILBFinalizer()

func PublishL4RemovedILBLegacyFinalizer added in v1.30.0

func PublishL4RemovedILBLegacyFinalizer()

func PublishL4RemovedNetLBRBSFinalizer added in v1.30.0

func PublishL4RemovedNetLBRBSFinalizer()

func PublishL4ServiceCleanupFinalizer added in v1.30.0

func PublishL4ServiceCleanupFinalizer()

func PublishL4SyncDetails added in v1.32.0

func PublishL4SyncDetails(controllerName string, success, isPredictedResync, wasUpdated bool)

func PublishL4controllerLastSyncTime added in v1.29.0

func PublishL4controllerLastSyncTime(controllerName string)

PublishL4controllerLastSyncTime records timestamp when L4 controller STARTED to sync an item

func PublishNetLBSyncMetrics added in v1.16.0

func PublishNetLBSyncMetrics(success bool, syncType, gceResource, errType string, startTime time.Time, isResync bool, isWeightedLB bool, l4BackendType metrics.L4BackendType)

PublishNetLBSyncMetrics exports metrics related to the L4 NetLB sync.

Types

type L4ControllerHealthCheckStatus added in v1.22.0

type L4ControllerHealthCheckStatus string

Jump to

Keyboard shortcuts

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