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

Changed Grafana dashboard

parent f7cdc8ee
......@@ -65,7 +65,7 @@
"rows": [
{
"collapse": false,
"height": 150,
"height": 140,
"panels": [
{
"cacheTimeout": null,
......@@ -231,23 +231,23 @@
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
"rgba(50, 172, 45, 0.97)"
],
"datasource": "${DS_PROMETHEUS-RPI}",
"decimals": 1,
"decimals": 0,
"editable": true,
"error": false,
"format": "percentunit",
"gauge": {
"maxValue": 1,
"maxValue": 100,
"minValue": 0,
"show": true,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"id": 26,
"id": 27,
"interval": null,
"links": [],
"mappingType": 1,
......@@ -277,24 +277,23 @@
],
"span": 2,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"fillColor": "rgba(50, 189, 31, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
"lineColor": "rgb(69, 193, 31)",
"show": true
},
"tableColumn": "",
"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",
"hide": false,
"intervalFactor": 2,
"refId": "A",
"step": 1800
}
],
"thresholds": "0.75, 0.90",
"title": "Disk space",
"thresholds": "0.8,0.9",
"title": "Load",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
......@@ -304,30 +303,27 @@
"value": "null"
}
],
"valueName": "current"
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(50, 172, 45, 0.97)",
"#299c46",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
"#d44a3a"
],
"datasource": "${DS_PROMETHEUS-RPI}",
"decimals": 0,
"editable": true,
"error": false,
"format": "percent",
"format": "celsius",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"id": 25,
"id": 40,
"interval": null,
"links": [],
"mappingType": 1,
......@@ -365,17 +361,16 @@
"tableColumn": "",
"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",
"intervalFactor": 2,
"refId": "A",
"step": 1800
"refId": "A"
}
],
"thresholds": "70, 90",
"title": "Memory",
"thresholds": "",
"title": "CPU Temperature",
"type": "singlestat",
"valueFontSize": "80%",
"valueFontSize": "110%",
"valueMaps": [
{
"op": "=",
......@@ -383,7 +378,7 @@
"value": "null"
}
],
"valueName": "current"
"valueName": "avg"
},
{
"cacheTimeout": null,
......@@ -398,15 +393,15 @@
"decimals": 0,
"editable": true,
"error": false,
"format": "decbytes",
"format": "percent",
"gauge": {
"maxValue": 500000000,
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": true
},
"id": 30,
"id": 25,
"interval": null,
"links": [],
"mappingType": 1,
......@@ -444,15 +439,15 @@
"tableColumn": "",
"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,
"legendFormat": "",
"refId": "A",
"step": 1800
}
],
"thresholds": "400000000",
"title": "Swap",
"thresholds": "70, 90",
"title": "Memory",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
......@@ -469,23 +464,23 @@
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
"rgba(245, 54, 54, 0.9)"
],
"datasource": "${DS_PROMETHEUS-RPI}",
"decimals": 0,
"decimals": 1,
"editable": true,
"error": false,
"format": "percentunit",
"gauge": {
"maxValue": 100,
"maxValue": 1,
"minValue": 0,
"show": false,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": true
},
"id": 27,
"id": 26,
"interval": null,
"links": [],
"mappingType": 1,
......@@ -515,23 +510,24 @@
],
"span": 2,
"sparkline": {
"fillColor": "rgba(50, 189, 31, 0.18)",
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(69, 193, 31)",
"show": true
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"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",
"hide": false,
"intervalFactor": 2,
"refId": "A",
"step": 1800
}
],
"thresholds": "0.8,0.9",
"title": "Load",
"thresholds": "0.75, 0.90",
"title": "Disk space",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
......@@ -541,7 +537,7 @@
"value": "null"
}
],
"valueName": "avg"
"valueName": "current"
}
],
"repeat": null,
......@@ -1765,6 +1761,168 @@
"title": "Row",
"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,
"height": 354,
......@@ -1939,7 +2097,7 @@
},
{
"collapse": false,
"height": 361,
"height": 250,
"panels": [
{
"columns": [
......@@ -1952,38 +2110,37 @@
"editable": true,
"error": false,
"fontSize": "100%",
"id": 36,
"id": 35,
"links": [],
"pageSize": null,
"scroll": true,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
"col": null,
"desc": false
},
"span": 4,
"span": 6,
"styles": [
{
"colorMode": null,
"colorMode": "cell",
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
"rgba(245, 54, 54, 0.9)"
],
"decimals": 2,
"pattern": "/.*/",
"thresholds": [
"10000000",
" 25000000"
"80",
"90"
],
"type": "number",
"unit": "decbytes"
"unit": "percent"
}
],
"targets": [
{
"expr": "sum(container_spec_memory_limit_bytes{name=~\".+\"} - container_memory_usage_bytes{name=~\".+\"}) by (name) ",
"hide": true,
"expr": "sum(100 - ((container_spec_memory_limit_bytes{name=~\".+\"} - container_memory_usage_bytes{name=~\".+\"}) * 100 / container_spec_memory_limit_bytes{name=~\".+\"}) ) by (name) ",
"intervalFactor": 2,
"legendFormat": "{{name}}",
"metric": "",
......@@ -1992,7 +2149,7 @@
},
{
"expr": "sum(container_spec_memory_limit_bytes{name=~\".+\"}) by (name) ",
"hide": false,
"hide": true,
"intervalFactor": 2,
"legendFormat": "{{name}}",
"refId": "B",
......@@ -2007,7 +2164,7 @@
"step": 240
}
],
"title": "Limit memory",
"title": "Remaining memory",
"transform": "timeseries_aggregations",
"type": "table"
},
......@@ -2022,37 +2179,38 @@
"editable": true,
"error": false,
"fontSize": "100%",
"id": 35,
"id": 36,
"links": [],
"pageSize": null,
"scroll": true,
"showHeader": true,
"sort": {
"col": null,
"desc": false
"col": 0,
"desc": true
},
"span": 8,
"span": 6,
"styles": [
{
"colorMode": "cell",
"colorMode": null,
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
"rgba(50, 172, 45, 0.97)"
],
"decimals": 2,
"pattern": "/.*/",
"thresholds": [
"80",
"90"
"10000000",
" 25000000"
],
"type": "number",
"unit": "percent"
"unit": "decbytes"
}
],
"targets": [
{
"expr": "sum(100 - ((container_spec_memory_limit_bytes{name=~\".+\"} - container_memory_usage_bytes{name=~\".+\"}) * 100 / container_spec_memory_limit_bytes{name=~\".+\"}) ) by (name) ",
"expr": "sum(container_spec_memory_limit_bytes{name=~\".+\"} - container_memory_usage_bytes{name=~\".+\"}) by (name) ",
"hide": true,
"intervalFactor": 2,
"legendFormat": "{{name}}",
"metric": "",
......@@ -2061,7 +2219,7 @@
},
{
"expr": "sum(container_spec_memory_limit_bytes{name=~\".+\"}) by (name) ",
"hide": true,
"hide": false,
"intervalFactor": 2,
"legendFormat": "{{name}}",
"refId": "B",
......@@ -2076,7 +2234,7 @@
"step": 240
}
],
"title": "Remaining memory",
"title": "Limit memory",
"transform": "timeseries_aggregations",
"type": "table"
}
......@@ -2237,7 +2395,7 @@
]
},
"time": {
"from": "now-12h",
"from": "now-6h",
"to": "now"
},
"timepicker": {
......@@ -2267,5 +2425,6 @@
},
"timezone": "browser",
"title": "Docker and system monitoring",
"version": 9
"version": 14
}
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