AWS EC2 which has Only IPv6 IP is not included in Service Discovery

33 views
Skip to first unread message

swe...@gmail.com

unread,
Jan 2, 2024, 8:59:12 PM1/2/24
to Prometheus Users
Hello, 

Prometheus ec2_sd_config does not detect AWS EC2 which has only IPv6 (does not have  ipv4 private IP). 

Is it intended operation ?
Is there a way to have only IPv6 EC2 instance on Service discovery ?



if err := ec2Client.DescribeInstancesPagesWithContext(ctx, input, func(p *ec2.DescribeInstancesOutput, lastPage bool) bool {
for _, r := range p.Reservations {
for _, inst := range r.Instances {
if inst.PrivateIpAddress == nil {
continue
}


Reply all
Reply to author
Forward
0 new messages