set metric label to rule expression when there is no group

This commit is contained in:
liugq 2022-06-02 18:53:57 +08:00
parent e13a06a31a
commit 084436e75d
1 changed files with 1 additions and 1 deletions

View File

@ -766,7 +766,7 @@ func getRuleMetricData( rule *alerting.Rule, filterParam *alerting.FilterParam)
Data: targetData,
BucketSize: filterParam.BucketSize,
Metric: common.MetricSummary{
Label: strings.Join(md.GroupValues, "-"),
Label: label,
Group: rule.ID,
TickFormat: "0,0.[00]",
FormatType: "num",