Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IpamdErr = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "awscni_ipamd_error_count", Help: "The number of errors encountered in ipamd", }, []string{"fn"}, ) IpamdActionsInprogress = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "awscni_ipamd_action_inprogress", Help: "The number of ipamd actions in progress", }, []string{"fn"}, ) EnisMax = prometheus.NewGauge( prometheus.GaugeOpts{ Name: "awscni_eni_max", Help: "The maximum number of ENIs that can be attached to the instance, accounting for unmanaged ENIs", }, ) IpMax = prometheus.NewGauge( prometheus.GaugeOpts{ Name: "awscni_ip_max", Help: "The maximum number of IP addresses that can be allocated to the instance", }, ) ReconcileCnt = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "awscni_reconcile_count", Help: "The number of times ipamd reconciles on ENIs and IP/Prefix addresses", }, []string{"fn"}, ) AddIPCnt = prometheus.NewGauge( prometheus.GaugeOpts{ Name: "awscni_add_ip_req_count", Help: "The number of add IP address requests", }, ) DelIPCnt = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "awscni_del_ip_req_count", Help: "The number of delete IP address requests", }, []string{"reason"}, ) PodENIErr = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "awscni_pod_eni_error_count", Help: "The number of errors encountered for pod ENIs", }, []string{"fn"}, ) AwsAPILatency = prometheus.NewSummaryVec( prometheus.SummaryOpts{ Name: "awscni_aws_api_latency_ms", Help: "AWS API call latency in ms", }, []string{"api", "error", "status"}, ) AwsAPIErr = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "awscni_aws_api_error_count", Help: "The number of times AWS API returns an error", }, []string{"api", "error"}, ) AwsUtilsErr = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "awscni_aws_utils_error_count", Help: "The number of errors not handled in awsutils library", }, []string{"fn", "error"}, ) Ec2ApiReq = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "awscni_ec2api_req_count", Help: "The number of requests made to EC2 APIs by CNI", }, []string{"fn"}, ) Ec2ApiErr = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "awscni_ec2api_error_count", Help: "The number of failed EC2 APIs requests", }, []string{"fn"}, ) Enis = prometheus.NewGauge( prometheus.GaugeOpts{ Name: "awscni_eni_allocated", Help: "The number of ENIs allocated", }, ) TotalIPs = prometheus.NewGauge( prometheus.GaugeOpts{ Name: "awscni_total_ip_addresses", Help: "The total number of IP addresses", }, ) AssignedIPs = prometheus.NewGauge( prometheus.GaugeOpts{ Name: "awscni_assigned_ip_addresses", Help: "The number of IP addresses assigned to pods", }, ) ForceRemovedENIs = prometheus.NewGauge( prometheus.GaugeOpts{ Name: "awscni_force_removed_enis", Help: "The number of ENIs force removed while they had assigned pods", }, ) ForceRemovedIPs = prometheus.NewGauge( prometheus.GaugeOpts{ Name: "awscni_force_removed_ips", Help: "The number of IPs force removed while they had assigned pods", }, ) TotalPrefixes = prometheus.NewGauge( prometheus.GaugeOpts{ Name: "awscni_total_ipv4_prefixes", Help: "The total number of IPv4 prefixes", }, ) IpsPerCidr = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "awscni_assigned_ip_per_cidr", Help: "The total number of IP addresses assigned per cidr", }, []string{"cidr"}, ) NoAvailableIPAddrs = prometheus.NewGauge( prometheus.GaugeOpts{ Name: "awscni_no_available_ip_addresses", Help: "The number of pod IP assignments that fail due to no available IP addresses", }, ) EniIPsInUse = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "awscni_assigned_ip_per_eni", Help: "The number of allocated ips partitioned by eni", }, []string{"eni"}, ) )
Functions ¶
func GetSupportedPrometheusCNIMetricsMapping ¶
func GetSupportedPrometheusCNIMetricsMapping() map[string]prometheus.Collector
This can be enhanced to get it programatically. Initial CNI metrics helper enhancement includes only Gauge. Doesn't support GaugeVec, Counter, CounterVec and Summary
func PrometheusRegister ¶
func PrometheusRegister()
func ServeMetrics ¶
func ServeMetrics(metricsPort int)
ServeMetrics sets up ipamd metrics and introspection endpoints
func SetupMetricsServer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.