From 5b1c083a7497b9d07c035390667d4fffe9b493b9 Mon Sep 17 00:00:00 2001 From: Ricardo F Date: Fri, 13 Apr 2018 14:03:32 +0200 Subject: [PATCH] Fix graphs in apache --- prometheus/apache-exporter-full.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/prometheus/apache-exporter-full.json b/prometheus/apache-exporter-full.json index d5f7ff9..5f562b0 100644 --- a/prometheus/apache-exporter-full.json +++ b/prometheus/apache-exporter-full.json @@ -84,7 +84,7 @@ } ], "maxDataPoints": 100, - "nullPointMode": "null", + "nullPointMode": "connected", "nullText": null, "postfix": "s", "postfixFontSize": "50%", @@ -179,7 +179,7 @@ "step": 120 }, { - "expr": "count(apache_up{instance=~\"$host:$port\"} == 0)", + "expr": "count_scalar(apache_up{instance=~\"$host:$port\"} == 0)", "format": "time_series", "intervalFactor": 2, "legendFormat": "Apache Down", @@ -438,7 +438,7 @@ "steppedLine": false, "targets": [ { - "expr": "rate(apache_scoreboard{instance=~\"$host:$port\"}[5m])", + "expr": "apache_scoreboard{instance=~\"$host:$port\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{ state }}", @@ -528,7 +528,7 @@ "steppedLine": false, "targets": [ { - "expr": "rate(apache_workers{instance=~\"$host:$port\"}[5m])", + "expr": "apache_workers{instance=~\"$host:$port\"}\n", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{ state }}", @@ -606,7 +606,7 @@ "steppedLine": false, "targets": [ { - "expr": "rate(apache_cpuload{instance=~\"$host:$port\"}[5m])", + "expr": "apache_cpuload{instance=~\"$host:$port\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "Load", @@ -737,5 +737,5 @@ }, "timezone": "", "title": "Apache", - "version": 10 -} + "version": 11 +} \ No newline at end of file