Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MultiEniMultiIPEniCount = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "multi_eni_multi_ip_eni_count", Help: "eni count of bcc", }, []string{"cluster", "vpc", "subnet", "eni_status"}, ) MultiEniMultiIPEniIPCount = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "multi_eni_multi_ip_eniip_count", Help: "eni ip count of bcc (exclude primary ip)", }, []string{"cluster", "vpc", "subnet"}, ) )
bcc multi eni mode
View Source
var ( PrimaryEniMultiIPEniIPTotalCount = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "primary_eni_multi_ip_eniip_total_count", Help: "count of total ip on primary eni", }, []string{"cluster", "vpc", "node", "subnet"}, ) PrimaryEniMultiIPEniIPAllocatedCount = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "primary_eni_multi_ip_eniip_allocated_count", Help: "count of allocated ip on primary eni", }, []string{"cluster", "vpc", "node", "subnet"}, ) PrimaryEniMultiIPEniIPAvailableCount = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "primary_eni_multi_ip_eniip_available_count", Help: "count of available ip on primary eni", }, []string{"cluster", "vpc", "node", "subnet"}, ) )
bbc primary eni mode
View Source
var ( RPCLatency = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: "cni_rpc_latency", Help: "cni rpc latency in ms", Buckets: prometheus.ExponentialBuckets(50, 2, 12), }, []string{"cluster", "ip_type", "rpc_api", "error"}, ) RPCConcurrency = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "cni_rpc_concurrency", Help: "cni rpc concurrency", }, []string{"cluster", "ip_type", "rpc_api"}, ) RPCErrorCounter = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "cni_rpc_error_count", Help: "cni rpc error count", }, []string{"cluster", "ip_type", "rpc_api"}, ) RPCRejectedCounter = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "cni_rpc_rejected_count", Help: "cni rpc rejected count", }, []string{"cluster", "ip_type", "rpc_api"}, ) )
View Source
var ( RPCPerPodLatency = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "cni_rpc_per_pod_latency", Help: "cni rpc per pod latency", }, []string{"cluster", "ip_type", "rpc_api", "error", "namespace", "name", "container_id"}, ) RPCPerPodLockLatency = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "cni_rpc_per_pod_lock_latency", Help: "cni rpc per pod lock latency", }, []string{"cluster", "namespace", "name", "container_id", "phase"}, ) )
Debug Only
View Source
var ( // MEMUsagePercent is the metric for cni component memory usage. MEMUsagePercent = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "memory_usage_percent", Help: "current memory usage percent", }, []string{"cluster"}, ) )
View Source
var (
MetaInfo metaInfo
)
View Source
var ( // OpenAPILatency bce open api latency OpenAPILatency = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: "bce_openapi_latency", Help: "bce openapi latency in ms", Buckets: []float64{50, 100, 200, 400, 800, 1600, 3200, 6400, 12800, 14800, 16800, 20800, 28800, 44800}, }, []string{"cluster", "api", "error", "code"}, ) )
View Source
var ( SubnetAvailableIPCount = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "subnet_available_ip_count", Help: "subnet available ip count", }, []string{"cluster", "vpc", "zone", "subnet"}, ) )
Functions ¶
func RegisterPrometheusMetrics ¶
RegisterPrometheusMetrics register metrics to prometheus server
func RunMemUsagePercentMetric ¶ added in v1.8.6
func SetMetricMetaInfo ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.