Documentation ¶
Index ¶
- Constants
- Variables
- func PublishNegInitializationMetrics(latency time.Duration)
- func PublishNegManagerProcessMetrics(process string, err error, start time.Time)
- func PublishNegOperationMetrics(operation, negType, apiVersion string, err error, numEndpoints int, ...)
- func PublishNegSyncMetrics(negType, endpointCalculator string, err error, start time.Time)
- func RegisterMetrics()
Constants ¶
View Source
const ( GCProcess = "GC" SyncProcess = "Sync" )
Variables ¶
View Source
var ( NegOperationLatency = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Subsystem: negControllerSubsystem, Name: negOpLatencyKey, Help: "Latency of a NEG Operation", Buckets: prometheus.ExponentialBuckets(1, 2, 13), }, negOpLatencyMetricsLabels, ) NegOperationEndpoints = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Subsystem: negControllerSubsystem, Name: negOpEndpointsKey, Help: "Number of Endpoints during an NEG Operation", }, negOpEndpointsMetricsLabels, ) SyncerSyncLatency = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Subsystem: negControllerSubsystem, Name: syncerLatencyKey, Help: "Sync latency for NEG Syncer", Buckets: prometheus.ExponentialBuckets(1, 2, 13), }, syncerMetricsLabels, ) ManagerProcessLatency = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Subsystem: negControllerSubsystem, Name: managerProcessLatencyKey, Help: "Process latency for NEG Manager", Buckets: prometheus.ExponentialBuckets(1, 2, 13), }, negProcessMetricsLabels, ) InitializationLatency = prometheus.NewHistogram( prometheus.HistogramOpts{ Subsystem: negControllerSubsystem, Name: initLatencyKey, Help: "Initialization latency of a NEG", Buckets: prometheus.ExponentialBuckets(1, 2, 13), }, ) LastSyncTimestamp = prometheus.NewGauge( prometheus.GaugeOpts{ Subsystem: negControllerSubsystem, Name: lastSyncTimestampKey, Help: "The timestamp of the last execution of NEG controller sync loop.", }, ) )
Functions ¶
func PublishNegInitializationMetrics ¶ added in v1.10.2
PublishNegInitializationMetrics publishes collected metrics for time from request to initialization of NEG
func PublishNegManagerProcessMetrics ¶ added in v1.10.2
PublishNegManagerProcessMetrics publishes collected metrics for the neg manager loops
func PublishNegOperationMetrics ¶ added in v1.10.2
func PublishNegOperationMetrics(operation, negType, apiVersion string, err error, numEndpoints int, start time.Time)
PublishNegOperationMetrics publishes collected metrics for neg operations
func PublishNegSyncMetrics ¶ added in v1.10.2
PublishNegSyncMetrics publishes collected metrics for the sync of NEG
func RegisterMetrics ¶
func RegisterMetrics()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.