Commit 34ca4c04 authored by CarlosEDP's avatar CarlosEDP
Browse files

Changed Grafana dashboard

parent f7cdc8ee
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
"rows": [ "rows": [
{ {
"collapse": false, "collapse": false,
"height": 150, "height": 140,
"panels": [ "panels": [
{ {
"cacheTimeout": null, "cacheTimeout": null,
...@@ -231,23 +231,23 @@ ...@@ -231,23 +231,23 @@
"colorBackground": false, "colorBackground": false,
"colorValue": false, "colorValue": false,
"colors": [ "colors": [
"rgba(50, 172, 45, 0.97)", "rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)", "rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)" "rgba(50, 172, 45, 0.97)"
], ],
"datasource": "${DS_PROMETHEUS-RPI}", "datasource": "${DS_PROMETHEUS-RPI}",
"decimals": 1, "decimals": 0,
"editable": true, "editable": true,
"error": false, "error": false,
"format": "percentunit", "format": "percentunit",
"gauge": { "gauge": {
"maxValue": 1, "maxValue": 100,
"minValue": 0, "minValue": 0,
"show": true, "show": false,
"thresholdLabels": false, "thresholdLabels": false,
"thresholdMarkers": true "thresholdMarkers": true
}, },
"id": 26, "id": 27,
"interval": null, "interval": null,
"links": [], "links": [],
"mappingType": 1, "mappingType": 1,
...@@ -277,24 +277,23 @@ ...@@ -277,24 +277,23 @@
], ],
"span": 2, "span": 2,
"sparkline": { "sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)", "fillColor": "rgba(50, 189, 31, 0.18)",
"full": false, "full": false,
"lineColor": "rgb(31, 120, 193)", "lineColor": "rgb(69, 193, 31)",
"show": false "show": true
}, },
"tableColumn": "", "tableColumn": "",
"targets": [ "targets": [
{ {
"expr": "min((node_filesystem_size{fstype=~\"xfs|ext4\",instance=~\"$server:.*\"} - node_filesystem_free{fstype=~\"xfs|ext4\",instance=~\"$server:.*\"} )/ node_filesystem_size{fstype=~\"xfs|ext4\",instance=~\"$server:.*\"})", "expr": "node_load1{instance=~\"$server:.*\"} / count by(job, instance)(count by(job, instance, cpu)(node_cpu{instance=~\"$server:.*\"}))",
"format": "time_series", "format": "time_series",
"hide": false,
"intervalFactor": 2, "intervalFactor": 2,
"refId": "A", "refId": "A",
"step": 1800 "step": 1800
} }
], ],
"thresholds": "0.75, 0.90", "thresholds": "0.8,0.9",
"title": "Disk space", "title": "Load",
"type": "singlestat", "type": "singlestat",
"valueFontSize": "80%", "valueFontSize": "80%",
"valueMaps": [ "valueMaps": [
...@@ -304,30 +303,27 @@ ...@@ -304,30 +303,27 @@
"value": "null" "value": "null"
} }
], ],
"valueName": "current" "valueName": "avg"
}, },
{ {
"cacheTimeout": null, "cacheTimeout": null,
"colorBackground": false, "colorBackground": false,
"colorValue": false, "colorValue": false,
"colors": [ "colors": [
"rgba(50, 172, 45, 0.97)", "#299c46",
"rgba(237, 129, 40, 0.89)", "rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)" "#d44a3a"
], ],
"datasource": "${DS_PROMETHEUS-RPI}", "datasource": "${DS_PROMETHEUS-RPI}",
"decimals": 0, "format": "celsius",
"editable": true,
"error": false,
"format": "percent",
"gauge": { "gauge": {
"maxValue": 100, "maxValue": 100,
"minValue": 0, "minValue": 0,
"show": true, "show": false,
"thresholdLabels": false, "thresholdLabels": false,
"thresholdMarkers": true "thresholdMarkers": true
}, },
"id": 25, "id": 40,
"interval": null, "interval": null,
"links": [], "links": [],
"mappingType": 1, "mappingType": 1,
...@@ -365,17 +361,16 @@ ...@@ -365,17 +361,16 @@
"tableColumn": "", "tableColumn": "",
"targets": [ "targets": [
{ {
"expr": "((node_memory_MemTotal{instance=~\"$server:.*\"} - node_memory_MemAvailable{instance=~\"$server:.*\"}) / node_memory_MemTotal{instance=~\"$server:.*\"}) * 100", "expr": "avg(rpi_cpu_temperature_celsius)",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"refId": "A", "refId": "A"
"step": 1800
} }
], ],
"thresholds": "70, 90", "thresholds": "",
"title": "Memory", "title": "CPU Temperature",
"type": "singlestat", "type": "singlestat",
"valueFontSize": "80%", "valueFontSize": "110%",
"valueMaps": [ "valueMaps": [
{ {
"op": "=", "op": "=",
...@@ -383,7 +378,7 @@ ...@@ -383,7 +378,7 @@
"value": "null" "value": "null"
} }
], ],
"valueName": "current" "valueName": "avg"
}, },
{ {
"cacheTimeout": null, "cacheTimeout": null,
...@@ -398,15 +393,15 @@ ...@@ -398,15 +393,15 @@
"decimals": 0, "decimals": 0,
"editable": true, "editable": true,
"error": false, "error": false,
"format": "decbytes", "format": "percent",
"gauge": { "gauge": {
"maxValue": 500000000, "maxValue": 100,
"minValue": 0, "minValue": 0,
"show": true, "show": true,
"thresholdLabels": false, "thresholdLabels": false,
"thresholdMarkers": true "thresholdMarkers": true
}, },
"id": 30, "id": 25,
"interval": null, "interval": null,
"links": [], "links": [],
"mappingType": 1, "mappingType": 1,
...@@ -444,15 +439,15 @@ ...@@ -444,15 +439,15 @@
"tableColumn": "", "tableColumn": "",
"targets": [ "targets": [
{ {
"expr": "(node_memory_SwapTotal{instance=~'$server:.*'} - node_memory_SwapFree{instance=~'$server:.*'})", "expr": "((node_memory_MemTotal{instance=~\"$server:.*\"} - node_memory_MemAvailable{instance=~\"$server:.*\"}) / node_memory_MemTotal{instance=~\"$server:.*\"}) * 100",
"format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "",
"refId": "A", "refId": "A",
"step": 1800 "step": 1800
} }
], ],
"thresholds": "400000000", "thresholds": "70, 90",
"title": "Swap", "title": "Memory",
"type": "singlestat", "type": "singlestat",
"valueFontSize": "80%", "valueFontSize": "80%",
"valueMaps": [ "valueMaps": [
...@@ -469,23 +464,23 @@ ...@@ -469,23 +464,23 @@
"colorBackground": false, "colorBackground": false,
"colorValue": false, "colorValue": false,
"colors": [ "colors": [
"rgba(245, 54, 54, 0.9)", "rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)", "rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)" "rgba(245, 54, 54, 0.9)"
], ],
"datasource": "${DS_PROMETHEUS-RPI}", "datasource": "${DS_PROMETHEUS-RPI}",
"decimals": 0, "decimals": 1,
"editable": true, "editable": true,
"error": false, "error": false,
"format": "percentunit", "format": "percentunit",
"gauge": { "gauge": {
"maxValue": 100, "maxValue": 1,
"minValue": 0, "minValue": 0,
"show": false, "show": true,
"thresholdLabels": false, "thresholdLabels": false,
"thresholdMarkers": true "thresholdMarkers": true
}, },
"id": 27, "id": 26,
"interval": null, "interval": null,
"links": [], "links": [],
"mappingType": 1, "mappingType": 1,
...@@ -515,23 +510,24 @@ ...@@ -515,23 +510,24 @@
], ],
"span": 2, "span": 2,
"sparkline": { "sparkline": {
"fillColor": "rgba(50, 189, 31, 0.18)", "fillColor": "rgba(31, 118, 189, 0.18)",
"full": false, "full": false,
"lineColor": "rgb(69, 193, 31)", "lineColor": "rgb(31, 120, 193)",
"show": true "show": false
}, },
"tableColumn": "", "tableColumn": "",
"targets": [ "targets": [
{ {
"expr": "node_load1{instance=~\"$server:.*\"} / count by(job, instance)(count by(job, instance, cpu)(node_cpu{instance=~\"$server:.*\"}))", "expr": "min((node_filesystem_size{fstype=~\"xfs|ext4\",instance=~\"$server:.*\"} - node_filesystem_free{fstype=~\"xfs|ext4\",instance=~\"$server:.*\"} )/ node_filesystem_size{fstype=~\"xfs|ext4\",instance=~\"$server:.*\"})",
"format": "time_series", "format": "time_series",
"hide": false,
"intervalFactor": 2, "intervalFactor": 2,
"refId": "A", "refId": "A",
"step": 1800 "step": 1800
} }
], ],
"thresholds": "0.8,0.9", "thresholds": "0.75, 0.90",
"title": "Load", "title": "Disk space",
"type": "singlestat", "type": "singlestat",
"valueFontSize": "80%", "valueFontSize": "80%",
"valueMaps": [ "valueMaps": [
...@@ -541,7 +537,7 @@ ...@@ -541,7 +537,7 @@
"value": "null" "value": "null"
} }
], ],
"valueName": "avg" "valueName": "current"
} }
], ],
"repeat": null, "repeat": null,
...@@ -1765,6 +1761,168 @@ ...@@ -1765,6 +1761,168 @@
"title": "Row", "title": "Row",
"titleSize": "h6" "titleSize": "h6"
}, },
{
"collapse": false,
"height": 318,
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS-RPI}",
"fill": 1,
"id": 38,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": false,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"span": 6,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "node_cpu_frequency_hertz{cpu='cpu0'}",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "CPU Frequency",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": null,
"format": "hertz",
"label": "Frequency (Mhz)",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS-RPI}",
"fill": 1,
"id": 39,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": false,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"span": 6,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "rpi_cpu_temperature_celsius",
"format": "time_series",
"intervalFactor": 2,
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "CPU Temperature",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "celsius",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
}
],
"repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": false,
"title": "Dashboard Row",
"titleSize": "h6"
},
{ {
"collapse": false, "collapse": false,
"height": 354, "height": 354,
...@@ -1939,7 +2097,7 @@ ...@@ -1939,7 +2097,7 @@
}, },
{ {
"collapse": false, "collapse": false,
"height": 361, "height": 250,
"panels": [ "panels": [
{ {
"columns": [ "columns": [
...@@ -1952,38 +2110,37 @@ ...@@ -1952,38 +2110,37 @@
"editable": true, "editable": true,
"error": false, "error": false,
"fontSize": "100%", "fontSize": "100%",
"id": 36, "id": 35,
"links": [], "links": [],
"pageSize": null, "pageSize": null,
"scroll": true, "scroll": true,
"showHeader": true, "showHeader": true,
"sort": { "sort": {
"col": 0, "col": null,
"desc": true "desc": false
}, },
"span": 4, "span": 6,
"styles": [ "styles": [
{ {
"colorMode": null, "colorMode": "cell",
"colors": [ "colors": [
"rgba(245, 54, 54, 0.9)", "rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)", "rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)" "rgba(245, 54, 54, 0.9)"
], ],
"decimals": 2, "decimals": 2,
"pattern": "/.*/", "pattern": "/.*/",
"thresholds": [ "thresholds": [
"10000000", "80",
" 25000000" "90"
], ],
"type": "number", "type": "number",