Documentation
¶
Index ¶
Constants ¶
View Source
const EnvPodIP = "POD_IP"
Variables ¶
View Source
var ( DummyRegistry = prometheus.NewRegistry() DetailRegistry = prometheus.NewRegistry() Registry = prometheus.NewRegistry() Prefix = "model_csi_" )
View Source
var ( NodeNotReady = prometheus.NewGauge( prometheus.GaugeOpts{ Name: Prefix + "node_not_ready", }, ) NodeOpFailed = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: Prefix + "node_op_failed", }, []string{opLabel}, ) NodeOpSucceed = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: Prefix + "node_op_succeed", }, []string{opLabel}, ) NodePullLayerTooLong = prometheus.NewCounter( prometheus.CounterOpts{ Name: Prefix + "node_pull_layer_too_long", }, ) NodeOpLatency = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Name: Prefix + "node_op_latency_in_seconds", Buckets: LatencyInSecondsBuckets, }, []string{opLabel}) NodePullOpLatency = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Name: Prefix + "node_pull_op_latency_in_seconds", Buckets: LatencyInSecondsBuckets, }, []string{opLabel, sizeLabel}) NodeCacheSizeInBytes = prometheus.NewGauge( prometheus.GaugeOpts{ Name: Prefix + "node_cache_size_in_bytes", }, ) NodeMountedStaticImages = prometheus.NewGauge( prometheus.GaugeOpts{ Name: Prefix + "node_mounted_static_images", }, ) NodeMountedDynamicImages = prometheus.NewGauge( prometheus.GaugeOpts{ Name: Prefix + "node_mounted_dynamic_images", }, ) ControllerOpFailed = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: Prefix + "controller_op_failed", }, []string{opLabel}, ) ControllerOpSucceed = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: Prefix + "controller_op_succeed", }, []string{opLabel}, ) ControllerOpLatency = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Name: Prefix + "controller_op_latency_in_seconds", Buckets: LatencyInSecondsBuckets, }, []string{opLabel}) )
View Source
var LatencyInSecondsBuckets = prometheus.ExponentialBuckets(1, 2, 16)
View Source
var SizeInMBBuckets = prometheus.ExponentialBuckets(1, 2, 24)
Functions ¶
func GetAddrByEnv ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.