|
|
@ -17,6 +17,7 @@ import (
|
|
|
|
"context"
|
|
|
|
"context"
|
|
|
|
"fmt"
|
|
|
|
"fmt"
|
|
|
|
"net/http"
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"strconv"
|
|
|
|
"strings"
|
|
|
|
"strings"
|
|
|
|
"time"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
|
@ -210,7 +211,7 @@ func (d *Discovery) refresh() (tg *targetgroup.Group, err error) {
|
|
|
|
labels := model.LabelSet{
|
|
|
|
labels := model.LabelSet{
|
|
|
|
gceLabelProject: model.LabelValue(d.project),
|
|
|
|
gceLabelProject: model.LabelValue(d.project),
|
|
|
|
gceLabelZone: model.LabelValue(inst.Zone),
|
|
|
|
gceLabelZone: model.LabelValue(inst.Zone),
|
|
|
|
gceLabelInstanceID: model.LabelValue(inst.Id),
|
|
|
|
gceLabelInstanceID: model.LabelValue(strconv.FormatUint(inst.Id, 10)),
|
|
|
|
gceLabelInstanceName: model.LabelValue(inst.Name),
|
|
|
|
gceLabelInstanceName: model.LabelValue(inst.Name),
|
|
|
|
gceLabelInstanceStatus: model.LabelValue(inst.Status),
|
|
|
|
gceLabelInstanceStatus: model.LabelValue(inst.Status),
|
|
|
|
gceLabelMachineType: model.LabelValue(inst.MachineType),
|
|
|
|
gceLabelMachineType: model.LabelValue(inst.MachineType),
|
|
|
|