Documentation ¶
Index ¶
Constants ¶
View Source
const ( FromStorageLabel = "from_storage" ToStorageLabel = "to_storage" )
Variables ¶
View Source
var ( KMSOperationsLatencyMetric = metrics.NewHistogramVec( &metrics.HistogramOpts{ Namespace: namespace, Subsystem: subsystem, Name: "kms_operations_latency_seconds", Help: "KMS operation duration with gRPC error code status total.", StabilityLevel: metrics.ALPHA, Buckets: metrics.ExponentialBuckets(0.001, 2, 18), }, []string{"provider_name", "method_name", "grpc_status_code"}, ) )
* By default, all the following metrics are defined as falling under * ALPHA stability level https://github.com/kubernetes/enhancements/blob/master/keps/sig-instrumentation/1209-metrics-stability/kubernetes-control-plane-metrics-stability.md#stability-classes) * * Promoting the stability level of the metric is a responsibility of the component owner, since it * involves explicitly acknowledging support for the metric across multiple releases, in accordance with * the metric stability policy.
Functions ¶
func RecordArrival ¶
func RecordDekCacheFillPercent ¶
func RecordDekCacheFillPercent(percent float64)
func RecordKMSOperationLatency ¶ added in v0.27.0
RecordKMSOperationLatency records the latency of KMS operation.
func RegisterMetrics ¶
func RegisterMetrics()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.