Use scalar query function instead of count_scalar

Parse error : unknown function with name "count_scalar"
This commit is contained in:
Fatih Sarhan 2019-01-16 15:46:59 +03:00 committed by GitHub
parent 92ac542f4b
commit 62901a1f3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -179,7 +179,7 @@
"step": 120
},
{
"expr": "count_scalar(apache_up{instance=~\"$host:$port\"} == 0)",
"expr": "scalar(count(apache_up{instance=~\"$host:$port\"} == 0))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Apache Down",
@ -738,4 +738,4 @@
"timezone": "",
"title": "Apache",
"version": 13
}
}