From 8da3697ca4723da6f3d81bf89918453a64faddc1 Mon Sep 17 00:00:00 2001 From: Bartosz Kupidura Date: Wed, 20 Dec 2017 11:32:50 +0100 Subject: [PATCH] Switch count_scalar to count for prometheus Closes-Bug: PROD-16609 Change-Id: I0d53cd7c28b087325073c2b2d550d124182dd102 --- .../grafana_dashboards/influxdb_prometheus.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/influxdb/files/grafana_dashboards/influxdb_prometheus.json b/influxdb/files/grafana_dashboards/influxdb_prometheus.json index 9b3d0fa..c7d6c16 100644 --- a/influxdb/files/grafana_dashboards/influxdb_prometheus.json +++ b/influxdb/files/grafana_dashboards/influxdb_prometheus.json @@ -72,7 +72,7 @@ "tableColumn": "", "targets": [ { - "expr": "count_scalar(influxdb_up)", + "expr": "count(influxdb_up)", "format": "time_series", "interval": "", "intervalFactor": 2, @@ -88,7 +88,7 @@ "valueMaps": [ { "op": "=", - "text": "N/A", + "text": "0", "value": "null" } ], @@ -151,7 +151,7 @@ "tableColumn": "", "targets": [ { - "expr": "count_scalar(influxdb_up == 1)", + "expr": "count(influxdb_up == 1)", "format": "time_series", "interval": "", "intervalFactor": 2, @@ -167,7 +167,7 @@ "valueMaps": [ { "op": "=", - "text": "N/A", + "text": "0", "value": "null" } ], @@ -230,7 +230,7 @@ "tableColumn": "", "targets": [ { - "expr": "count_scalar(influxdb_up == 0)", + "expr": "count(influxdb_up == 0)", "format": "time_series", "interval": "", "intervalFactor": 2, @@ -246,7 +246,7 @@ "valueMaps": [ { "op": "=", - "text": "N/A", + "text": "0", "value": "null" } ], -- 2.32.7