Skip to content

Commit dc018f7

Browse files
authored
qpsPanelNativeHistogram: do not apply field overrides (#1548)
1 parent cf3dd08 commit dc018f7

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

grafana-builder/grafana.libsonnet

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -508,35 +508,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
508508
native: template % { metricQuery: nativeClassicQuery.native, label: statusLabelName },
509509
classic: template % { metricQuery: nativeClassicQuery.classic, label: statusLabelName },
510510
},
511-
fieldConfig+: {
512-
defaults+: {
513-
custom+: {
514-
lineWidth: 0,
515-
fillOpacity: 100, // Get solid fill.
516-
stacking: {
517-
mode: 'normal',
518-
group: 'A',
519-
},
520-
},
521-
unit: 'reqps',
522-
min: 0,
523-
},
524-
overrides+: [{
525-
matcher: {
526-
id: 'byName',
527-
options: status,
528-
},
529-
properties: [
530-
{
531-
id: 'color',
532-
value: {
533-
mode: 'fixed',
534-
fixedColor: $.httpStatusColors[status],
535-
},
536-
},
537-
],
538-
} for status in std.objectFieldsAll($.httpStatusColors)],
539-
},
511+
aliasColors: $.httpStatusColors,
540512
targets: [
541513
{
542514
expr: utils.showClassicHistogramQuery(sumByStatus(utils.ncHistogramCountRate(metricName, selector))),

0 commit comments

Comments
 (0)