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 ?


And I found below code in prometheus/discovery/aws/ec2.go at main · 
prometheus/prometheus · GitHub 
<https://github.com/prometheus/prometheus/blob/main/discovery/aws/ec2.go>

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
}


-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/839934dd-8453-422a-8c7d-d3e0f4113e5cn%40googlegroups.com.

Reply via email to