set metric label to rule expression when there is no group
This commit is contained in:
parent
e13a06a31a
commit
084436e75d
|
@ -766,7 +766,7 @@ func getRuleMetricData( rule *alerting.Rule, filterParam *alerting.FilterParam)
|
||||||
Data: targetData,
|
Data: targetData,
|
||||||
BucketSize: filterParam.BucketSize,
|
BucketSize: filterParam.BucketSize,
|
||||||
Metric: common.MetricSummary{
|
Metric: common.MetricSummary{
|
||||||
Label: strings.Join(md.GroupValues, "-"),
|
Label: label,
|
||||||
Group: rule.ID,
|
Group: rule.ID,
|
||||||
TickFormat: "0,0.[00]",
|
TickFormat: "0,0.[00]",
|
||||||
FormatType: "num",
|
FormatType: "num",
|
||||||
|
|
Loading…
Reference in New Issue