Skip to content

Commit 178d92e

Browse files
authored
Make sure mean target doesn't conflict by name
1 parent e22c3e4 commit 178d92e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common-lib/common/panels/generic/timeSeries/topk_percentage.libsonnet

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ base {
2424
);
2525
local meanTarget = target
2626
{ expr: 'avg(' + target.expr + ')' }
27-
+ g.query.prometheus.withLegendFormat('Mean');
27+
+ g.query.prometheus.withLegendFormat('Mean')
28+
+ g.query.prometheus.withRefId('Mean');
2829
super.new(title, targets=[topTarget, meanTarget], description=description)
2930
+ self.withDataLink(instanceLabels, drillDownDashboardUid),
3031

0 commit comments

Comments
 (0)