mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
heatmap: fix middle bucket bound for prometheus
This commit is contained in:
parent
57f48f17a0
commit
2085397f31
@ -231,7 +231,10 @@ export class HeatmapCtrl extends MetricsPanelCtrl {
|
|||||||
|
|
||||||
tsBuckets = _.map(this.series, 'label');
|
tsBuckets = _.map(this.series, 'label');
|
||||||
const yBucketBound = this.panel.yBucketBound;
|
const yBucketBound = this.panel.yBucketBound;
|
||||||
if ((panelDatasource === 'prometheus' && yBucketBound !== 'lower') || yBucketBound === 'upper') {
|
if (
|
||||||
|
(panelDatasource === 'prometheus' && yBucketBound !== 'lower' && yBucketBound !== 'middle') ||
|
||||||
|
yBucketBound === 'upper'
|
||||||
|
) {
|
||||||
// Prometheus labels are upper inclusive bounds, so add empty bottom bucket label.
|
// Prometheus labels are upper inclusive bounds, so add empty bottom bucket label.
|
||||||
tsBuckets = [''].concat(tsBuckets);
|
tsBuckets = [''].concat(tsBuckets);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user