mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(monitor): diffTagKeys are empty when only one series in results (#23310)
This commit is contained in:
@@ -164,6 +164,10 @@ func translateResponse(resp *Response, query *tsdb.Query) (*tsdb.QueryResult, er
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if len(results) == 1 {
|
||||
for tagKey := range results[0].Metric {
|
||||
diffTagKeys.Insert(tagKey)
|
||||
}
|
||||
}
|
||||
|
||||
if !isUnionResult {
|
||||
|
||||
Reference in New Issue
Block a user