mirror of
https://github.com/prometheus/prometheus
synced 2024-12-24 07:23:02 +00:00
Integrate feedback
Signed-off-by: George Brighton <george@gebn.co.uk>
This commit is contained in:
parent
1f752b6910
commit
e6e7b08e6f
@ -270,7 +270,7 @@ func (d *EC2Discovery) refresh(ctx context.Context) ([]*targetgroup.Group, error
|
|||||||
azID, ok := d.azToAZID[*inst.Placement.AvailabilityZone]
|
azID, ok := d.azToAZID[*inst.Placement.AvailabilityZone]
|
||||||
if !ok && d.azToAZID != nil {
|
if !ok && d.azToAZID != nil {
|
||||||
level.Debug(d.logger).Log(
|
level.Debug(d.logger).Log(
|
||||||
"msg", "Availability zone not found",
|
"msg", "Availability zone ID not found",
|
||||||
"az", *inst.Placement.AvailabilityZone)
|
"az", *inst.Placement.AvailabilityZone)
|
||||||
}
|
}
|
||||||
labels[ec2LabelAZID] = model.LabelValue(azID)
|
labels[ec2LabelAZID] = model.LabelValue(azID)
|
||||||
|
Loading…
Reference in New Issue
Block a user