Merge pull request #9 from eeddaann/patch-1

Fix replace deprecated count_scalar with count
This commit is contained in:
Ricardo F 2017-12-21 08:32:13 +01:00 committed by GitHub
commit a092b5ec7b
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": "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": 10 "version": 10
} }