Commit e8fda290 authored by godog's avatar godog

grafana: apache dashboard compatible with all instances

Ignore port, the current version works only if the selected hostname
runs on the first port.
parent 5293a0dd
Pipeline #3246 failed with stage
in 4 minutes and 38 seconds
......@@ -15,8 +15,8 @@
"editable": true,
"gnetId": 3894,
"graphTooltip": 0,
"id": 9,
"iteration": 1551088117898,
"id": 6,
"iteration": 1559409520591,
"links": [],
"panels": [
{
......@@ -81,7 +81,7 @@
"tableColumn": "",
"targets": [
{
"expr": "apache_uptime_seconds_total{instance=~\"$host:$port\"}",
"expr": "apache_uptime_seconds_total{instance=~\"^$host:.*\"}",
"format": "time_series",
"intervalFactor": 2,
"refId": "A",
......@@ -150,7 +150,7 @@
"steppedLine": false,
"targets": [
{
"expr": "count(apache_up{instance=~\"$host:$port\"} == 1)",
"expr": "count(apache_up{instance=~\"^$host:.*\"} == 1)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Apache Up",
......@@ -158,7 +158,7 @@
"step": 120
},
{
"expr": "scalar(count(apache_up{instance=~\"$host:$port\"} == 0))",
"expr": "scalar(count(apache_up{instance=~\"^$host:.*\"} == 0))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Apache Down",
......@@ -246,7 +246,7 @@
"steppedLine": false,
"targets": [
{
"expr": "rate(apache_sent_kilobytes_total{instance=~\"$host:$port\"}[5m])",
"expr": "rate(apache_sent_kilobytes_total{instance=~\"^$host:.*\"}[5m])",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Kilobytes Sent",
......@@ -334,7 +334,7 @@
"steppedLine": false,
"targets": [
{
"expr": "rate(apache_accesses_total{instance=~\"$host:$port\"}[5m])",
"expr": "rate(apache_accesses_total{instance=~\"^$host:.*\"}[5m])",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Accesses",
......@@ -362,7 +362,7 @@
},
"yaxes": [
{
"format": "short",
"format": "reqps",
"label": null,
"logBase": 1,
"max": null,
......@@ -406,6 +406,8 @@
"min": true,
"rightSide": true,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
......@@ -423,7 +425,7 @@
"steppedLine": false,
"targets": [
{
"expr": "apache_scoreboard{instance=~\"$host:$port\"}",
"expr": "apache_scoreboard{instance=~\"^$host:.*\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{ state }}",
......@@ -501,17 +503,26 @@
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"percentage": true,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"seriesOverrides": [
{
"alias": "busy",
"color": "#E02F44"
},
{
"alias": "idle",
"color": "#96D98D"
}
],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "apache_workers{instance=~\"$host:$port\"}\n",
"expr": "apache_workers{instance=~\"^$host:.*\"}\n",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{ state }}",
......@@ -542,7 +553,7 @@
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"max": "100",
"min": null,
"show": true
},
......@@ -599,7 +610,7 @@
"steppedLine": false,
"targets": [
{
"expr": "apache_cpuload{instance=~\"$host:$port\"}",
"expr": "apache_cpuload{instance=~\"^$host:.*\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Load",
......@@ -627,10 +638,10 @@
},
"yaxes": [
{
"format": "short",
"format": "percent",
"label": null,
"logBase": 1,
"max": null,
"max": "100",
"min": "0",
"show": true
},
......@@ -650,7 +661,7 @@
}
],
"refresh": "1m",
"schemaVersion": 16,
"schemaVersion": 18,
"style": "dark",
"tags": [],
"templating": {
......@@ -658,8 +669,8 @@
{
"allValue": null,
"current": {
"text": "host3.noblogs.infra.investici.org",
"value": "host3.noblogs.infra.investici.org"
"text": "assenza.noblogs.investici.org",
"value": "assenza.noblogs.investici.org"
},
"datasource": "localhost",
"definition": "",
......@@ -683,8 +694,8 @@
{
"allValue": null,
"current": {
"text": "8082",
"value": "8082"
"text": "8084",
"value": "8084"
},
"datasource": "localhost",
"definition": "",
......@@ -708,7 +719,7 @@
]
},
"time": {
"from": "now-1h",
"from": "now-3h",
"to": "now"
},
"timepicker": {
......@@ -740,4 +751,4 @@
"title": "Apache",
"uid": "a_mnQfrik",
"version": 1
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment