Use namespace while filtering metric result

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
This commit is contained in:
Vivek Singh
2020-07-29 16:27:19 +05:30
committed by Alex Ellis
parent c0ba41ce33
commit c9c2b39601
2 changed files with 5 additions and 4 deletions

View File

@ -88,7 +88,7 @@ func mixIn(functions *[]types.FunctionStatus, metrics *VectorQueryResponse) {
for i, function := range *functions {
for _, v := range metrics.Data.Result {
if v.Metric.FunctionName == function.Name {
if v.Metric.FunctionName == fmt.Sprintf("%s.%s", function.Name, function.Namespace) {
metricValue := v.Value[1]
switch metricValue.(type) {
case string: