expr:'sum by(instance) (awscni_ip_max) - sum by(instance) (awscni_assigned_ip_addresses) < %s'%$.values.eks.minimumAvailableIPs,
expr:'sum by(instance) (awscni_total_ip_addresses) - sum by(instance) (awscni_assigned_ip_addresses) < %s'%$.values.awsVpcCni.minimumWarmIPs,
labels:{
labels:{
severity:'critical',
severity:'critical',
},
},
annotations:{
annotations:{
summary:'EKS CNI is running low on available IPs',
summary:'AWS VPC CNI has a low warm IP pool',
description:'Instance {{ $labels.instance }} has only {{ $value }} IPs available which is lower than set threshold of %s'%$.values.eks.minimumAvailableIPs,
description:|||
Instance {{ $labels.instance }} has only {{ $value }} warm IPs which is lower than set threshold of %s.
It could mean the current subnet is out of available IP addresses or the CNI is unable to request them from the EC2 API.