Remove string casting for template variables in prometheus

This commit is contained in:
David Kaltschmidt
2018-07-16 13:02:36 +02:00
parent 1efe34e6cf
commit 1f74b298c4
3 changed files with 20 additions and 20 deletions

View File

@@ -222,7 +222,7 @@ class MetricsPanelCtrl extends PanelCtrl {
// and add built in variables interval and interval_ms
var scopedVars = Object.assign({}, this.panel.scopedVars, {
__interval: { text: this.interval, value: this.interval },
__interval_ms: { text: String(this.intervalMs), value: String(this.intervalMs) },
__interval_ms: { text: this.intervalMs, value: this.intervalMs },
});
var metricsQuery = {