Fix graphs in apache

This commit is contained in:
Ricardo F 2018-04-13 14:03:32 +02:00
parent 1d83b23058
commit 5b1c083a74

View file

@ -84,7 +84,7 @@
} }
], ],
"maxDataPoints": 100, "maxDataPoints": 100,
"nullPointMode": "null", "nullPointMode": "connected",
"nullText": null, "nullText": null,
"postfix": "s", "postfix": "s",
"postfixFontSize": "50%", "postfixFontSize": "50%",
@ -179,7 +179,7 @@
"step": 120 "step": 120
}, },
{ {
"expr": "count(apache_up{instance=~\"$host:$port\"} == 0)", "expr": "count_scalar(apache_up{instance=~\"$host:$port\"} == 0)",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "Apache Down", "legendFormat": "Apache Down",
@ -438,7 +438,7 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "rate(apache_scoreboard{instance=~\"$host:$port\"}[5m])", "expr": "apache_scoreboard{instance=~\"$host:$port\"}",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{ state }}", "legendFormat": "{{ state }}",
@ -528,7 +528,7 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "rate(apache_workers{instance=~\"$host:$port\"}[5m])", "expr": "apache_workers{instance=~\"$host:$port\"}\n",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{ state }}", "legendFormat": "{{ state }}",
@ -606,7 +606,7 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "rate(apache_cpuload{instance=~\"$host:$port\"}[5m])", "expr": "apache_cpuload{instance=~\"$host:$port\"}",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "Load", "legendFormat": "Load",
@ -737,5 +737,5 @@
}, },
"timezone": "", "timezone": "",
"title": "Apache", "title": "Apache",
"version": 10 "version": 11
} }