mirror of
https://github.com/prometheus/prometheus
synced 2025-03-11 07:59:57 +00:00
Expose __meta_gce_instance_id as an integer (instead of raw bytes).
Signed-off-by: Javier Kohen <jkohen@google.com>
This commit is contained in:
parent
2d4bcb3ee1
commit
403ac08ece
@ -17,6 +17,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@ -210,7 +211,7 @@ func (d *Discovery) refresh() (tg *targetgroup.Group, err error) {
|
||||
labels := model.LabelSet{
|
||||
gceLabelProject: model.LabelValue(d.project),
|
||||
gceLabelZone: model.LabelValue(inst.Zone),
|
||||
gceLabelInstanceID: model.LabelValue(inst.Id),
|
||||
gceLabelInstanceID: model.LabelValue(strconv.FormatUint(inst.Id, 10)),
|
||||
gceLabelInstanceName: model.LabelValue(inst.Name),
|
||||
gceLabelInstanceStatus: model.LabelValue(inst.Status),
|
||||
gceLabelMachineType: model.LabelValue(inst.MachineType),
|
||||
|
Loading…
Reference in New Issue
Block a user