We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 170bddf commit ab3f4fbCopy full SHA for ab3f4fb
pkg/exporter/server.go
@@ -145,8 +145,9 @@ func (c *ServerCollector) Collect(ch chan<- prometheus.Metric) {
145
privateIP = *server.PrivateIP
146
}
147
148
- if server.PublicIP != nil {
149
- publicIP = server.PublicIP.Address.String()
+ for _, ip := range server.PublicIPs {
+ publicIP = ip.Address.String()
150
+ break
151
152
153
labels := []string{
0 commit comments