Integrate feedback

Signed-off-by: George Brighton <george@gebn.co.uk>
This commit is contained in:
George Brighton 2021-08-03 16:46:51 +01:00
parent 1f752b6910
commit e6e7b08e6f
No known key found for this signature in database
GPG Key ID: EB1FF129E25E4DA5

View File

@ -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)