Fix replace deprecated count_scalar with count

https://prometheus.io/docs/prometheus/2.0/migration/#promql
This commit is contained in:
eeddaann 2017-12-19 21:14:45 +02:00 committed by GitHub
parent 04a9907645
commit af4ea14793
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
} }