diff --git a/metrics/group_processes.go b/metrics/group_processes.go index 0708cb4..22bbc1c 100644 --- a/metrics/group_processes.go +++ b/metrics/group_processes.go @@ -54,7 +54,7 @@ func (p *ProcessesMetricGroup) getTags(processName string, process *models.Proce tags["zone"] = "unknown" // Try to tag the name with the human readable name (as published by the operator) instead of the key in the json if process.Locality != nil { - tags["fdb_pod_name"] = process.Locality.ProcessId + tags["fdb_pod_name"] = process.Locality.Process_Id tags["zone"] = process.Locality.ZoneId } } diff --git a/models/process.go b/models/process.go index 496bdeb..08ebcd7 100644 --- a/models/process.go +++ b/models/process.go @@ -54,6 +54,7 @@ type ProcessLocality struct { InstanceId string `json:"instance_id"` MachineId string `json:"machineid"` ProcessId string `json:"processid"` + Process_Id string `json:"process_id"` ZoneId string `json:"zoneid"` }