Merge pull request #28 from f9n/patch-1

Use scalar query function instead of count_scalar
This commit is contained in:
Ricardo F 2019-01-16 13:54:39 +01:00 committed by GitHub
commit 5fcf1a1613
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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