Switch count_scalar to count for prometheus
Closes-Bug: PROD-16609
Change-Id: I0d53cd7c28b087325073c2b2d550d124182dd102
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"
}
],