diff --git a/NEWS b/NEWS index b631914e..813fe12c 100644 --- a/NEWS +++ b/NEWS @@ -25,6 +25,11 @@ Enhancements and new features: * Add a new output mode to stdout #1168 * Huge refactor of the WebUI packaging thanks to @spike008t #1239 + One more thing ! A new Grafana Dash is available with: + * Network interface variable + * Disk variable + * Container CPU + Bugs corrected: * Crash in the Wifi plugin on my Laptop #1151 @@ -68,6 +73,23 @@ News command line options: News configuration keys in the glances.conf file: +Graph: + + [graph] + # Configuration for the --export graph option + # Set the path where the graph (.svg files) will be created + # Can be overwrite by the --graph-path command line option + path=/tmp + # It is possible to generate the graphs automatically by setting the + # generate_every to a non zero value corresponding to the seconds between + # two generation. Set it to 0 to disable graph auto generation. + generate_every=60 + # See followings configuration keys definitions in the Pygal lib documentation + # http://pygal.org/en/stable/documentation/index.html + width=800 + height=600 + style=DarkStyle + Processes list Nice value: [processlist] diff --git a/conf/glances-grafana.json b/conf/glances-grafana.json index 5f93d927..d4033d06 100644 --- a/conf/glances-grafana.json +++ b/conf/glances-grafana.json @@ -1,55 +1,8 @@ { - "__inputs": [ - { - "name": "DS_GLANCES", - "label": "glances", - "description": "", - "type": "datasource", - "pluginId": "influxdb", - "pluginName": "InfluxDB" - } - ], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "4.6.0-beta3" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "panel", - "id": "heatmap", - "name": "Heatmap", - "version": "" - }, - { - "type": "datasource", - "id": "influxdb", - "name": "InfluxDB", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "singlestat", - "name": "Singlestat", - "version": "" - }, - { - "type": "panel", - "id": "text", - "name": "Text", - "version": "" - } - ], "annotations": { "list": [ { + "$$hashKey": "object:2676", "builtIn": 1, "datasource": "-- Grafana --", "enable": true, @@ -63,2812 +16,3018 @@ "editable": true, "gnetId": null, "graphTooltip": 0, - "hideControls": false, - "id": null, + "id": 2, + "iteration": 1522698566936, "links": [], - "refresh": false, - "rows": [ + "panels": [ { - "collapse": false, - "height": 229, - "panels": [ + "cacheTimeout": null, + "colorBackground": false, + "colorValue": false, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "datasource": "glances", + "editable": true, + "error": false, + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 6, + "w": 2, + "x": 0, + "y": 0 + }, + "id": 5, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource": "${DS_GLANCES}", - "editable": true, - "error": false, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "id": 5, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "span": 1, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "column": "cpucore", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - } - ], - "measurement": "localhost.load", - "query": "SELECT mean(\"cpucore\") FROM \"localhost.load\" WHERE $timeFilter GROUP BY time($interval)", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "cpucore" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "load", - "tags": [] - } - ], - "thresholds": "", - "title": "Core", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" + "name": "value to text", + "value": 1 }, { - "aliasColors": {}, - "annotate": { - "enable": false - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_GLANCES}", - "fill": 1, - "grid": { - "max": null, - "min": null - }, - "id": 4, - "interactive": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "legend_counts": true, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": false, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "resolution": 100, - "scale": 1, - "seriesOverrides": [], - "spaceLength": 10, - "span": 10, - "spyable": true, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "1min", - "column": "min1", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "localhost.load", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"min1\") FROM \"localhost.load\" WHERE $timeFilter GROUP BY time($interval) fill(null)", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "min1" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "load", - "tags": [], - "target": "randomWalk('random walk')" - }, - { - "alias": "5mins", - "column": "min5", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "localhost.load", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"min5\") FROM \"localhost.load\" WHERE $timeFilter GROUP BY time($interval) fill(null)", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "min5" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "load", - "tags": [], - "target": "" - }, - { - "alias": "15mins", - "column": "min15", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "localhost.load", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"min15\") FROM \"localhost.load\" WHERE $timeFilter GROUP BY time($interval) fill(null)", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "min15" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "load", - "tags": [], - "target": "" - } - ], - "thresholds": [], - "timeFrom": null, - "timeShift": null, - "timezone": "browser", - "title": "Load", - "tooltip": { - "query_as_alias": true, - "shared": false, - "sort": 0, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ] - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "datasource": "${DS_GLANCES}", - "editable": true, - "error": false, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "id": 18, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "span": 1, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "column": "total", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - } - ], - "measurement": "localhost.processcount", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"total\") FROM \"localhost.processcount\" WHERE $timeFilter GROUP BY time($interval)", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "series": "processcount", - "tags": [] - } - ], - "thresholds": "", - "title": "Processes", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" + "name": "range to text", + "value": 2 } ], - "repeat": null, - "repeatIteration": null, - "repeatRowId": null, - "showTitle": false, - "title": "test", - "titleSize": "h6" - }, - { - "collapse": false, - "height": "250px", - "panels": [ + "maxDataPoints": 100, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_GLANCES}", - "editable": true, - "error": false, - "fill": 0, - "grid": {}, - "id": 6, - "legend": { - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "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": [ - { - "alias": "User", - "column": "user", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "localhost.cpu", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"user\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($interval) fill(null)", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "user" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "cpu", - "tags": [] - }, - { - "alias": "System", - "column": "system", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "localhost.cpu", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"system\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($interval) fill(null)", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "system" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "cpu", - "tags": [], - "target": "" - }, - { - "alias": "IoWait", - "column": "iowait", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "localhost.cpu", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"iowait\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($interval) fill(null)", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "iowait" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "cpu", - "tags": [], - "target": "" - } - ], - "thresholds": [], - "timeFrom": null, - "timeShift": null, - "title": "CPU (%)", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "percent", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ] - }, - { - "aliasColors": { - "Max": "#BF1B00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_GLANCES}", - "editable": true, - "error": false, - "fill": 0, - "grid": {}, - "id": 7, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "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": [ - { - "alias": "Used", - "column": "used", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - } - ], - "measurement": "localhost.mem", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"used\") FROM \"localhost.mem\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "used" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "mem", - "tags": [] - }, - { - "alias": "Max", - "column": "total", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - } - ], - "measurement": "localhost.mem", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"total\") FROM \"localhost.mem\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "mem", - "tags": [], - "target": "" - } - ], - "thresholds": [], - "timeFrom": null, - "timeShift": null, - "title": "MEM", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ] + "from": "null", + "text": "N/A", + "to": "null" } ], - "repeat": null, - "repeatIteration": null, - "repeatRowId": null, - "showTitle": false, - "title": "New row", - "titleSize": "h6" - }, - { - "collapse": false, - "height": "250px", - "panels": [ + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "tableColumn": "", + "targets": [ { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_GLANCES}", - "editable": true, - "error": false, - "fill": 3, - "grid": {}, - "id": 9, - "legend": { - "avg": true, - "current": false, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ + "column": "cpucore", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ { - "alias": "Tx", - "yaxis": 2 + "params": [ + "auto" + ], + "type": "time" } ], - "spaceLength": 10, - "span": 6, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Rx", - "column": "enp0s25.rx", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "interval": "", - "measurement": "localhost.network", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"wlp2s0.rx\")/mean(\"wlp2s0.time_since_update\")*8 FROM \"localhost.network\" WHERE $timeFilter GROUP BY time($interval) fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "eth0.rx" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "network", - "tags": [] - }, - { - "alias": "Tx", - "column": "eth0.tx*-1", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "localhost.network", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"wlp2s0.tx\")/mean(\"wlp2s0.time_since_update\")*8 FROM \"localhost.network\" WHERE $timeFilter GROUP BY time($interval) fill(none)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "eth0.tx" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "network", - "tags": [], - "target": "" - } + "measurement": "localhost.load", + "query": "SELECT mean(\"cpucore\") FROM \"localhost.load\" WHERE $timeFilter GROUP BY time($interval)", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "cpucore" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] ], - "thresholds": [], - "timeFrom": null, - "timeShift": null, - "title": "Net", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "cumulative" - }, - "transparent": false, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bps", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ] - }, - { - "aliasColors": { - "Max": "#BF1B00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_GLANCES}", - "editable": true, - "error": false, - "fill": 0, - "grid": {}, - "id": 8, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "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": [ - { - "alias": "Used", - "column": "used", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - } - ], - "measurement": "localhost.memswap", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"used\") FROM \"localhost.memswap\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "used" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "memswap", - "tags": [] - }, - { - "alias": "Max", - "column": "total", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - } - ], - "measurement": "localhost.memswap", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"total\") FROM \"localhost.memswap\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "memswap", - "tags": [], - "target": "" - } - ], - "thresholds": [], - "timeFrom": null, - "timeShift": null, - "title": "SWAP", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ] + "series": "load", + "tags": [] } ], - "repeat": null, - "repeatIteration": null, - "repeatRowId": null, - "showTitle": false, - "title": "New row", - "titleSize": "h6" + "thresholds": "", + "title": "Core", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "avg" }, { - "collapse": false, - "height": "250px", - "panels": [ + "aliasColors": {}, + "annotate": { + "enable": false + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "glances", + "fill": 1, + "grid": { + "max": null, + "min": null + }, + "gridPos": { + "h": 6, + "w": 20, + "x": 2, + "y": 0 + }, + "id": 4, + "interactive": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "legend_counts": true, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": false, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "resolution": 100, + "scale": 1, + "seriesOverrides": [], + "spaceLength": 10, + "spyable": true, + "stack": true, + "steppedLine": false, + "targets": [ { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_GLANCES}", - "editable": true, - "error": false, - "fill": 0, - "grid": {}, - "id": 10, - "legend": { - "avg": true, - "current": false, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true - }, - "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": [ + "alias": "1min", + "column": "min1", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ { - "alias": "Read", - "column": "sda2.read_bytes", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } + "params": [ + "auto" ], - "measurement": "localhost.diskio", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"sda2.read_bytes\")/mean(\"sda2.time_since_update\")*8 FROM \"localhost.diskio\" WHERE $timeFilter GROUP BY time($interval) fill(null)", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "sda2.read_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "diskio", - "tags": [] + "type": "time" }, { - "alias": "Write", - "column": "sda2.write_bytes", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } + "params": [ + "none" ], - "measurement": "localhost.diskio", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"sda2.write_bytes\")/mean(\"sda2.time_since_update\")*8 FROM \"localhost.diskio\" WHERE $timeFilter GROUP BY time($interval) fill(null)", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "sda2.write_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "diskio", - "tags": [], - "target": "" + "type": "fill" } ], - "thresholds": [], - "timeFrom": null, - "timeShift": null, - "title": "sda2 disk IO", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ] + "measurement": "localhost.load", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"min1\") FROM \"localhost.load\" WHERE $timeFilter GROUP BY time($interval) fill(null)", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "min1" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "load", + "tags": [], + "target": "randomWalk('random walk')" }, { - "aliasColors": { - "Max": "#BF1B00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_GLANCES}", - "editable": true, - "error": false, - "fill": 0, - "grid": {}, - "id": 11, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "span": 4, - "stack": false, - "steppedLine": false, - "targets": [ + "alias": "5mins", + "column": "min5", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ { - "alias": "Used", - "column": "\"/.used\"", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } + "params": [ + "auto" ], - "measurement": "localhost.fs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"/.used\") FROM \"localhost.fs\" WHERE $timeFilter GROUP BY time($interval) fill(null)", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "/.used" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "fs", - "tags": [] + "type": "time" }, { - "alias": "Max", - "column": "\"/.size\"", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } + "params": [ + "none" ], - "measurement": "localhost.fs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"/.size\") FROM \"localhost.fs\" WHERE $timeFilter GROUP BY time($interval) fill(null)", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "/.size" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "fs", - "tags": [], - "target": "" + "type": "fill" } ], - "thresholds": [], - "timeFrom": null, - "timeShift": null, - "title": "/ Size", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ] + "measurement": "localhost.load", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"min5\") FROM \"localhost.load\" WHERE $timeFilter GROUP BY time($interval) fill(null)", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "min5" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "load", + "tags": [], + "target": "" }, { - "cacheTimeout": null, - "colorBackground": true, - "colorValue": false, - "colors": [ - "rgba(71, 212, 59, 0.4)", - "rgba(245, 150, 40, 0.73)", - "rgba(225, 40, 40, 0.59)" + "alias": "15mins", + "column": "min15", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } ], - "datasource": "${DS_GLANCES}", - "editable": true, - "error": false, + "measurement": "localhost.load", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"min15\") FROM \"localhost.load\" WHERE $timeFilter GROUP BY time($interval) fill(null)", + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "min15" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "load", + "tags": [], + "target": "" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "timezone": "browser", + "title": "Load", + "tooltip": { + "query_as_alias": true, + "shared": false, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": false, + "colors": [ + "rgba(50, 172, 45, 0.97)", + "rgba(237, 129, 40, 0.89)", + "rgba(245, 54, 54, 0.9)" + ], + "datasource": "glances", + "editable": true, + "error": false, + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 6, + "w": 2, + "x": 22, + "y": 0 + }, + "id": 18, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "maxDataPoints": 100, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "tableColumn": "", + "targets": [ + { + "column": "total", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + } + ], + "measurement": "localhost.processcount", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"total\") FROM \"localhost.processcount\" WHERE $timeFilter GROUP BY time($interval)", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "total" + ], + "type": "field" + }, + { + "params": [], + "type": "last" + } + ] + ], + "series": "processcount", + "tags": [] + } + ], + "thresholds": "", + "title": "Processes", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "avg" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "glances", + "editable": true, + "error": false, + "fill": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 6 + }, + "id": 6, + "legend": { + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "User", + "column": "user", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "measurement": "localhost.cpu", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"user\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($interval) fill(null)", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "user" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "cpu", + "tags": [] + }, + { + "alias": "System", + "column": "system", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "measurement": "localhost.cpu", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"system\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($interval) fill(null)", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "system" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "cpu", + "tags": [], + "target": "" + }, + { + "alias": "IoWait", + "column": "iowait", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "measurement": "localhost.cpu", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"iowait\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($interval) fill(null)", + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "iowait" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "cpu", + "tags": [], + "target": "" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "CPU (%)", + "tooltip": { + "shared": false, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { "format": "percent", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "id": 16, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "span": 1, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(193, 71, 31)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "column": "\"/.percent\"", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - } - ], - "measurement": "localhost.fs", - "query": "SELECT mean(\"/.percent\") FROM \"localhost.fs\" WHERE $timeFilter GROUP BY time($interval)", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "/.percent" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "fs", - "tags": [] - } - ], - "thresholds": "70,90", - "title": "/ used", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" + "logBase": 1, + "max": null, + "min": null, + "show": true }, { - "cacheTimeout": null, - "colorBackground": true, - "colorValue": false, - "colors": [ - "rgba(71, 212, 59, 0.4)", - "rgba(245, 150, 40, 0.73)", - "rgba(225, 40, 40, 0.59)" + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": { + "Max": "#BF1B00" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "glances", + "editable": true, + "error": false, + "fill": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 6 + }, + "id": 7, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "Used", + "column": "used", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + } ], - "datasource": "${DS_GLANCES}", - "editable": true, - "error": false, + "measurement": "localhost.mem", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"used\") FROM \"localhost.mem\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "used" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "mem", + "tags": [] + }, + { + "alias": "Max", + "column": "total", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + } + ], + "measurement": "localhost.mem", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"total\") FROM \"localhost.mem\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "total" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "mem", + "tags": [], + "target": "" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "MEM", + "tooltip": { + "shared": false, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bytes", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "glances", + "editable": true, + "error": false, + "fill": 3, + "grid": {}, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 13 + }, + "id": 9, + "legend": { + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "Tx", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "Rx", + "column": "enp0s25.rx", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "interval": "", + "measurement": "localhost.network", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"$interface.rx\")/mean(\"$interface.time_since_update\")*8 FROM \"localhost.network\" WHERE $timeFilter GROUP BY time($interval) fill(none)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "eth0.rx" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "network", + "tags": [] + }, + { + "alias": "Tx", + "column": "eth0.tx*-1", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "localhost.network", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"$interface.tx\")/mean(\"$interface.time_since_update\")*8 FROM \"localhost.network\" WHERE $timeFilter GROUP BY time($interval) fill(none)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "eth0.tx" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "network", + "tags": [], + "target": "" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "$interface network interface", + "tooltip": { + "shared": false, + "sort": 0, + "value_type": "cumulative" + }, + "transparent": false, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bps", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": { + "Max": "#BF1B00" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "glances", + "editable": true, + "error": false, + "fill": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 13 + }, + "id": 8, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "Used", + "column": "used", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + } + ], + "measurement": "localhost.memswap", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"used\") FROM \"localhost.memswap\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "used" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "memswap", + "tags": [] + }, + { + "alias": "Max", + "column": "total", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + } + ], + "measurement": "localhost.memswap", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"total\") FROM \"localhost.memswap\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "total" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "memswap", + "tags": [], + "target": "" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "SWAP", + "tooltip": { + "shared": false, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bytes", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "glances", + "editable": true, + "error": false, + "fill": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 20 + }, + "id": 10, + "legend": { + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "Read", + "column": "sda2.read_bytes", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "measurement": "localhost.diskio", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"$disk.read_bytes\") FROM \"localhost.diskio\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "sda2.read_bytes" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "diskio", + "tags": [] + }, + { + "alias": "Write", + "column": "sda2.write_bytes", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "measurement": "localhost.diskio", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"$disk.write_bytes\") FROM \"localhost.diskio\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "sda2.write_bytes" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "diskio", + "tags": [], + "target": "" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "$disk disk IO", + "tooltip": { + "shared": false, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bytes", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": { + "Max": "#BF1B00" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "glances", + "editable": true, + "error": false, + "fill": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 8, + "x": 12, + "y": 20 + }, + "id": 11, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "Used", + "column": "\"/.used\"", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "measurement": "localhost.fs", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"/.used\") FROM \"localhost.fs\" WHERE $timeFilter GROUP BY time($interval) fill(null)", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "/.used" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "fs", + "tags": [] + }, + { + "alias": "Max", + "column": "\"/.size\"", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "measurement": "localhost.fs", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"/.size\") FROM \"localhost.fs\" WHERE $timeFilter GROUP BY time($interval) fill(null)", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "/.size" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "fs", + "tags": [], + "target": "" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "/ Size", + "tooltip": { + "shared": false, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bytes", + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "cacheTimeout": null, + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(71, 212, 59, 0.4)", + "rgba(245, 150, 40, 0.73)", + "rgba(225, 40, 40, 0.59)" + ], + "datasource": "glances", + "editable": true, + "error": false, + "format": "percent", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 7, + "w": 2, + "x": 20, + "y": 20 + }, + "id": 16, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "maxDataPoints": 100, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(193, 71, 31)", + "show": true + }, + "tableColumn": "", + "targets": [ + { + "column": "\"/.percent\"", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + } + ], + "measurement": "localhost.fs", + "query": "SELECT mean(\"/.percent\") FROM \"localhost.fs\" WHERE $timeFilter GROUP BY time($interval)", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "/.percent" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "fs", + "tags": [] + } + ], + "thresholds": "70,90", + "title": "/ used", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "avg" + }, + { + "cacheTimeout": null, + "colorBackground": true, + "colorValue": false, + "colors": [ + "rgba(71, 212, 59, 0.4)", + "rgba(245, 150, 40, 0.73)", + "rgba(225, 40, 40, 0.59)" + ], + "datasource": "glances", + "editable": true, + "error": false, + "format": "percent", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 7, + "w": 2, + "x": 22, + "y": 20 + }, + "id": 17, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "maxDataPoints": 100, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(193, 71, 31)", + "show": true + }, + "tableColumn": "", + "targets": [ + { + "column": "\"/home.percent\"", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + } + ], + "measurement": "localhost.fs", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"/boot/efi.percent\") FROM \"localhost.fs\" WHERE $timeFilter GROUP BY time($interval)", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "/boot.percent" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "fs", + "tags": [] + } + ], + "thresholds": "70,90", + "title": "/boot used", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "avg" + }, + { + "content": "", + "editable": true, + "error": false, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 27 + }, + "id": 13, + "links": [], + "mode": "markdown", + "style": {}, + "title": "Containers", + "type": "text" + }, + { + "aliasColors": { + "localhost.docker.mean": "#ba43a9" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "glances", + "fill": 1, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 30 + }, + "id": 25, + "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", + "repeat": "container", + "repeatDirection": "v", + "scopedVars": { + "container": { + "selected": true, + "text": "grafana", + "value": "grafana" + } + }, + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "localhost.docker", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"$container.cpu_percent\") FROM \"localhost.docker\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "grafana.cpu_percent" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "$container container CPU consumption", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "content": "", + "editable": true, + "error": false, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 38 + }, + "id": 26, + "links": [], + "mode": "markdown", + "style": {}, + "title": "CPU details", + "type": "text" + }, + { + "aliasColors": { + "max": "#890F02" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "glances", + "editable": true, + "error": false, + "fill": 0, + "grid": {}, + "gridPos": { + "h": 4, + "w": 24, + "x": 0, + "y": 41 + }, + "id": 12, + "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": [ + { + "alias": "max", + "fillBelowTo": "min", + "lines": false + }, + { + "alias": "min", + "lines": false + }, + { + "alias": "mean", + "linewidth": 2, + "zindex": 3 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "mean", + "column": "user", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "interval": "60s", + "measurement": "localhost.cpu", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"user\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "user" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "cpu", + "tags": [] + }, + { + "alias": "min", + "column": "user", + "dsType": "influxdb", + "function": "min", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "interval": "60s", + "measurement": "localhost.cpu", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT min(\"user\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "user" + ], + "type": "field" + }, + { + "params": [], + "type": "min" + } + ] + ], + "series": "cpu", + "tags": [], + "target": "" + }, + { + "alias": "max", + "column": "user", + "dsType": "influxdb", + "function": "max", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "interval": "60s", + "measurement": "localhost.cpu", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT max(\"user\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", + "rawQuery": false, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "user" + ], + "type": "field" + }, + { + "params": [], + "type": "max" + } + ] + ], + "series": "cpu", + "tags": [], + "target": "" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "CPU user", + "tooltip": { + "shared": false, + "sort": 0, + "value_type": "cumulative" + }, + "transparent": true, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { "format": "percent", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "id": 17, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "span": 1, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(193, 71, 31)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "column": "\"/home.percent\"", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - } - ], - "measurement": "localhost.fs", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"/boot/efi.percent\") FROM \"localhost.fs\" WHERE $timeFilter GROUP BY time($interval)", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "/boot.percent" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "fs", - "tags": [] - } - ], - "thresholds": "70,90", - "title": "/boot used", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true } - ], - "repeat": null, - "repeatIteration": null, - "repeatRowId": null, - "showTitle": false, - "title": "New row", - "titleSize": "h6" + ] }, { - "collapse": false, - "height": "25px", - "panels": [ + "aliasColors": { + "max": "#890F02" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "glances", + "editable": true, + "error": false, + "fill": 0, + "grid": {}, + "gridPos": { + "h": 4, + "w": 24, + "x": 0, + "y": 45 + }, + "id": 14, + "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": [ { - "content": "", - "editable": true, - "error": false, - "id": 13, - "links": [], - "mode": "markdown", - "span": 12, - "style": {}, - "title": "CPU details", - "type": "text" - } - ], - "repeat": null, - "repeatIteration": null, - "repeatRowId": null, - "showTitle": false, - "title": "New row", - "titleSize": "h6" - }, - { - "collapse": false, - "height": "150px", - "panels": [ - { - "aliasColors": { - "max": "#890F02" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_GLANCES}", - "editable": true, - "error": false, - "fill": 0, - "grid": {}, - "id": 12, - "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": [ - { - "alias": "max", - "fillBelowTo": "min", - "lines": false - }, - { - "alias": "min", - "lines": false - }, - { - "alias": "mean", - "linewidth": 2, - "zindex": 3 - } - ], - "spaceLength": 10, - "span": 12, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "mean", - "column": "user", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "interval": "60s", - "measurement": "localhost.cpu", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"user\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "user" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "cpu", - "tags": [] - }, - { - "alias": "min", - "column": "user", - "dsType": "influxdb", - "function": "min", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "interval": "60s", - "measurement": "localhost.cpu", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT min(\"user\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "user" - ], - "type": "field" - }, - { - "params": [], - "type": "min" - } - ] - ], - "series": "cpu", - "tags": [], - "target": "" - }, - { - "alias": "max", - "column": "user", - "dsType": "influxdb", - "function": "max", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "interval": "60s", - "measurement": "localhost.cpu", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT max(\"user\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "user" - ], - "type": "field" - }, - { - "params": [], - "type": "max" - } - ] - ], - "series": "cpu", - "tags": [], - "target": "" - } - ], - "thresholds": [], - "timeFrom": null, - "timeShift": null, - "title": "CPU user", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "cumulative" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "percent", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ] + "alias": "max", + "fillBelowTo": "min", + "lines": false }, { - "aliasColors": { - "max": "#890F02" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_GLANCES}", - "editable": true, - "error": false, - "fill": 0, - "grid": {}, - "id": 14, - "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": [ - { - "alias": "max", - "fillBelowTo": "min", - "lines": false - }, - { - "alias": "min", - "lines": false - }, - { - "alias": "mean", - "linewidth": 2, - "zindex": 3 - } - ], - "spaceLength": 10, - "span": 12, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "mean", - "column": "system", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "interval": "60s", - "measurement": "localhost.cpu", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"system\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "system" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "cpu", - "tags": [] - }, - { - "alias": "min", - "column": "system", - "dsType": "influxdb", - "function": "min", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "interval": "60s", - "measurement": "localhost.cpu", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT min(\"system\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "system" - ], - "type": "field" - }, - { - "params": [], - "type": "min" - } - ] - ], - "series": "cpu", - "tags": [], - "target": "" - }, - { - "alias": "max", - "column": "system", - "dsType": "influxdb", - "function": "max", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "interval": "60s", - "measurement": "localhost.cpu", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT max(\"system\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "system" - ], - "type": "field" - }, - { - "params": [], - "type": "max" - } - ] - ], - "series": "cpu", - "tags": [], - "target": "" - } - ], - "thresholds": [], - "timeFrom": null, - "timeShift": null, - "title": "CPU system", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "cumulative" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "percent", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ] + "alias": "min", + "lines": false }, { - "aliasColors": { - "max": "#890F02" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_GLANCES}", - "editable": true, - "error": false, - "fill": 0, - "grid": {}, - "id": 15, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "hideEmpty": 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": [ - { - "alias": "max", - "fillBelowTo": "min", - "lines": false - }, - { - "alias": "min", - "lines": false - }, - { - "alias": "mean", - "linewidth": 2, - "zindex": 3 - } - ], - "spaceLength": 10, - "span": 12, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "mean", - "column": "iowait", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "interval": "60s", - "measurement": "localhost.cpu", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"iowait\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "iowait" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "cpu", - "tags": [] - }, - { - "alias": "min", - "column": "iowait", - "dsType": "influxdb", - "function": "min", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "interval": "60s", - "measurement": "localhost.cpu", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT min(\"iowait\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "iowait" - ], - "type": "field" - }, - { - "params": [], - "type": "min" - } - ] - ], - "series": "cpu", - "tags": [], - "target": "" - }, - { - "alias": "max", - "column": "iowait", - "dsType": "influxdb", - "function": "max", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "interval": "60s", - "measurement": "localhost.cpu", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT max(\"iowait\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", - "rawQuery": false, - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "iowait" - ], - "type": "field" - }, - { - "params": [], - "type": "max" - } - ] - ], - "series": "cpu", - "tags": [], - "target": "" - } - ], - "thresholds": [], - "timeFrom": null, - "timeShift": null, - "title": "CPU iowait", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "cumulative" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "percent", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ] - }, - { - "aliasColors": { - "max": "#890F02" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_GLANCES}", - "editable": true, - "error": false, - "fill": 0, - "grid": {}, - "id": 19, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "hideEmpty": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, + "alias": "mean", "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "span": 12, - "stack": false, - "steppedLine": false, - "targets": [ + "zindex": 3 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "mean", + "column": "system", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ { - "alias": "mean", - "column": "iowait", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } + "params": [ + "auto" ], - "interval": "60s", - "measurement": "localhost.cpu", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"ctx_switches\") / mean(\"time_since_update\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($interval)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "time_since_update" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "cpu", - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeShift": null, - "title": "Context switches", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "cumulative" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "logBase": 1, - "max": null, - "min": null, - "show": true + "type": "time" }, { - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true + "params": [ + "none" + ], + "type": "fill" } - ] + ], + "interval": "60s", + "measurement": "localhost.cpu", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"system\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "system" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "cpu", + "tags": [] }, { - "aliasColors": { - "max": "#890F02" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_GLANCES}", - "editable": true, - "error": false, - "fill": 0, - "grid": {}, - "id": 20, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "hideEmpty": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "span": 12, - "stack": false, - "steppedLine": false, - "targets": [ + "alias": "min", + "column": "system", + "dsType": "influxdb", + "function": "min", + "groupBy": [ { - "alias": "mean", - "column": "iowait", - "dsType": "influxdb", - "function": "mean", - "groupBy": [ - { - "params": [ - "auto" - ], - "type": "time" - }, - { - "params": [ - "none" - ], - "type": "fill" - } + "params": [ + "auto" ], - "interval": "60s", - "measurement": "localhost.cpu", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT mean(\"interrupts\") / mean(\"time_since_update\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($interval)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "time_since_update" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "series": "cpu", - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeShift": null, - "title": "Interrupts", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "cumulative" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "logBase": 1, - "max": null, - "min": null, - "show": true + "type": "time" }, { - "format": "short", - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ] - } - ], - "repeat": null, - "repeatIteration": null, - "repeatRowId": null, - "showTitle": false, - "title": "New row", - "titleSize": "h6" - }, - { - "collapse": false, - "height": 4, - "panels": [ - { - "content": "", - "id": 22, - "links": [], - "mode": "markdown", - "span": 12, - "title": "Sensors", - "type": "text" - } - ], - "repeat": null, - "repeatIteration": null, - "repeatRowId": null, - "showTitle": false, - "title": "Dashboard Row", - "titleSize": "h6" - }, - { - "collapse": false, - "height": 250, - "panels": [ - { - "cards": { - "cardPadding": null, - "cardRound": null - }, - "color": { - "cardColor": "rgb(255, 0, 0)", - "colorScale": "sqrt", - "colorScheme": "interpolateReds", - "exponent": 1, - "mode": "opacity" - }, - "dataFormat": "timeseries", - "datasource": "${DS_GLANCES}", - "heatmap": {}, - "highlightCards": true, - "id": 21, - "legend": { - "show": false - }, - "links": [], - "span": 12, - "targets": [ - { - "alias": "AmbientTemperature", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } + "params": [ + "none" ], - "measurement": "localhost.sensors", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "Ambient.value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] + "type": "fill" } ], - "title": "Ambiant temperature", - "tooltip": { - "show": true, - "showHistogram": false - }, - "type": "heatmap", - "xAxis": { - "show": true - }, - "xBucketNumber": null, - "xBucketSize": null, - "yAxis": { - "decimals": null, - "format": "celsius", - "logBase": 1, - "max": null, - "min": "0", - "show": true, - "splitFactor": null - }, - "yBucketNumber": null, - "yBucketSize": null - } - ], - "repeat": null, - "repeatIteration": null, - "repeatRowId": null, - "showTitle": false, - "title": "Dashboard Row", - "titleSize": "h6" - }, - { - "collapse": false, - "height": 250, - "panels": [ + "interval": "60s", + "measurement": "localhost.cpu", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT min(\"system\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "system" + ], + "type": "field" + }, + { + "params": [], + "type": "min" + } + ] + ], + "series": "cpu", + "tags": [], + "target": "" + }, { - "cards": { - "cardPadding": null, - "cardRound": null - }, - "color": { - "cardColor": "rgb(255, 0, 0)", - "colorScale": "sqrt", - "colorScheme": "interpolateOranges", - "exponent": 1, - "mode": "opacity" - }, - "dataFormat": "timeseries", - "datasource": "${DS_GLANCES}", - "heatmap": {}, - "highlightCards": true, - "id": 23, - "legend": { - "show": false - }, - "links": [], - "span": 12, - "targets": [ + "alias": "max", + "column": "system", + "dsType": "influxdb", + "function": "max", + "groupBy": [ { - "alias": "CpuTemperature", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } + "params": [ + "auto" ], - "measurement": "localhost.sensors", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "CPU.value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] + "type": "time" + }, + { + "params": [ + "none" ], - "tags": [] + "type": "fill" } ], - "title": "Cpu Temperature", - "tooltip": { - "show": true, - "showHistogram": false - }, - "type": "heatmap", - "xAxis": { - "show": true - }, - "xBucketNumber": null, - "xBucketSize": null, - "yAxis": { - "decimals": null, - "format": "celsius", - "logBase": 1, - "max": null, - "min": "0", - "show": true, - "splitFactor": null - }, - "yBucketNumber": null, - "yBucketSize": null + "interval": "60s", + "measurement": "localhost.cpu", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT max(\"system\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", + "rawQuery": false, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "system" + ], + "type": "field" + }, + { + "params": [], + "type": "max" + } + ] + ], + "series": "cpu", + "tags": [], + "target": "" } ], - "repeat": null, - "repeatIteration": null, - "repeatRowId": null, - "showTitle": false, - "title": "Dashboard Row", - "titleSize": "h6" + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "CPU system", + "tooltip": { + "shared": false, + "sort": 0, + "value_type": "cumulative" + }, + "transparent": true, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percent", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": { + "max": "#890F02" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "glances", + "editable": true, + "error": false, + "fill": 0, + "grid": {}, + "gridPos": { + "h": 4, + "w": 24, + "x": 0, + "y": 49 + }, + "id": 15, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "hideEmpty": 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": [ + { + "alias": "max", + "fillBelowTo": "min", + "lines": false + }, + { + "alias": "min", + "lines": false + }, + { + "alias": "mean", + "linewidth": 2, + "zindex": 3 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "mean", + "column": "iowait", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "interval": "60s", + "measurement": "localhost.cpu", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"iowait\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "iowait" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "cpu", + "tags": [] + }, + { + "alias": "min", + "column": "iowait", + "dsType": "influxdb", + "function": "min", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "interval": "60s", + "measurement": "localhost.cpu", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT min(\"iowait\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "iowait" + ], + "type": "field" + }, + { + "params": [], + "type": "min" + } + ] + ], + "series": "cpu", + "tags": [], + "target": "" + }, + { + "alias": "max", + "column": "iowait", + "dsType": "influxdb", + "function": "max", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "interval": "60s", + "measurement": "localhost.cpu", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT max(\"iowait\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($__interval) fill(none)", + "rawQuery": false, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "iowait" + ], + "type": "field" + }, + { + "params": [], + "type": "max" + } + ] + ], + "series": "cpu", + "tags": [], + "target": "" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "CPU iowait", + "tooltip": { + "shared": false, + "sort": 0, + "value_type": "cumulative" + }, + "transparent": true, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percent", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": { + "max": "#890F02" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "glances", + "editable": true, + "error": false, + "fill": 0, + "grid": {}, + "gridPos": { + "h": 4, + "w": 24, + "x": 0, + "y": 53 + }, + "id": 19, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "hideEmpty": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "mean", + "column": "iowait", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "interval": "60s", + "measurement": "localhost.cpu", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"ctx_switches\") / mean(\"time_since_update\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($interval)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "time_since_update" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "cpu", + "tags": [] + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Context switches", + "tooltip": { + "shared": false, + "sort": 0, + "value_type": "cumulative" + }, + "transparent": true, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": { + "max": "#890F02" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "glances", + "editable": true, + "error": false, + "fill": 0, + "grid": {}, + "gridPos": { + "h": 4, + "w": 24, + "x": 0, + "y": 57 + }, + "id": 20, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "hideEmpty": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "mean", + "column": "iowait", + "dsType": "influxdb", + "function": "mean", + "groupBy": [ + { + "params": [ + "auto" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "interval": "60s", + "measurement": "localhost.cpu", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"interrupts\") / mean(\"time_since_update\") FROM \"localhost.cpu\" WHERE $timeFilter GROUP BY time($interval)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "time_since_update" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "series": "cpu", + "tags": [] + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Interrupts", + "tooltip": { + "shared": false, + "sort": 0, + "value_type": "cumulative" + }, + "transparent": true, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "content": "", + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 61 + }, + "id": 22, + "links": [], + "mode": "markdown", + "title": "Sensors", + "type": "text" + }, + { + "cards": { + "cardPadding": null, + "cardRound": null + }, + "color": { + "cardColor": "rgb(255, 0, 0)", + "colorScale": "sqrt", + "colorScheme": "interpolateReds", + "exponent": 1, + "mode": "opacity" + }, + "dataFormat": "timeseries", + "datasource": "glances", + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 64 + }, + "heatmap": {}, + "highlightCards": true, + "id": 21, + "legend": { + "show": false + }, + "links": [], + "targets": [ + { + "alias": "AmbientTemperature", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "localhost.sensors", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "Ambient.value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "title": "Ambiant temperature", + "tooltip": { + "show": true, + "showHistogram": false + }, + "type": "heatmap", + "xAxis": { + "show": true + }, + "xBucketNumber": null, + "xBucketSize": null, + "yAxis": { + "decimals": null, + "format": "celsius", + "logBase": 1, + "max": null, + "min": "0", + "show": true, + "splitFactor": null + }, + "yBucketNumber": null, + "yBucketSize": null + }, + { + "cards": { + "cardPadding": null, + "cardRound": null + }, + "color": { + "cardColor": "rgb(255, 0, 0)", + "colorScale": "sqrt", + "colorScheme": "interpolateOranges", + "exponent": 1, + "mode": "opacity" + }, + "dataFormat": "timeseries", + "datasource": "glances", + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 71 + }, + "heatmap": {}, + "highlightCards": true, + "id": 23, + "legend": { + "show": false + }, + "links": [], + "targets": [ + { + "alias": "CpuTemperature", + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "localhost.sensors", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "CPU.value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "title": "Cpu Temperature", + "tooltip": { + "show": true, + "showHistogram": false + }, + "type": "heatmap", + "xAxis": { + "show": true + }, + "xBucketNumber": null, + "xBucketSize": null, + "yAxis": { + "decimals": null, + "format": "celsius", + "logBase": 1, + "max": null, + "min": "0", + "show": true, + "splitFactor": null + }, + "yBucketNumber": null, + "yBucketSize": null } ], - "schemaVersion": 14, + "refresh": false, + "schemaVersion": 16, "style": "dark", "tags": [], "templating": { - "list": [] + "list": [ + { + "allValue": null, + "current": { + "text": "grafana", + "value": [ + "grafana" + ] + }, + "datasource": "glances", + "hide": 0, + "includeAll": false, + "label": null, + "multi": true, + "name": "container", + "options": [], + "query": "show field keys on glances from \"localhost.docker\"", + "refresh": 1, + "regex": "/(.*)\\..*/", + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "text": "wlp2s0", + "value": "wlp2s0" + }, + "datasource": "glances", + "hide": 0, + "includeAll": false, + "label": null, + "multi": false, + "name": "interface", + "options": [], + "query": "show field keys on glances from \"localhost.network\"", + "refresh": 1, + "regex": "/(.*)\\..*/", + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { + "text": "dm-0", + "value": "dm-0" + }, + "datasource": "glances", + "hide": 0, + "includeAll": false, + "label": null, + "multi": false, + "name": "disk", + "options": [], + "query": "show field keys on glances from \"localhost.diskio\"", + "refresh": 1, + "regex": "/(.*)\\..*/", + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] }, "time": { "from": "now-15m", @@ -2906,6 +3065,7 @@ "type": "timepicker" }, "timezone": "browser", - "title": "Glances", - "version": 2 -} \ No newline at end of file + "title": "Glances_20180117", + "uid": "000000002", + "version": 4 +} diff --git a/docs/_static/docker.png b/docs/_static/docker.png index 8584d33d..2b14b7ac 100644 Binary files a/docs/_static/docker.png and b/docs/_static/docker.png differ diff --git a/glances/exports/glances_export.py b/glances/exports/glances_export.py index 130abe3a..d05826f9 100644 --- a/glances/exports/glances_export.py +++ b/glances/exports/glances_export.py @@ -92,10 +92,10 @@ class GlancesExport(object): for opt in mandatories: setattr(self, opt, self.config.get_value(section, opt)) except NoSectionError: - logger.critical("No {} configuration found".format(section)) + logger.error("No {} configuration found".format(section)) return False except NoOptionError as e: - logger.critical("Error in the {} configuration ({})".format(section, e)) + logger.error("Error in the {} configuration ({})".format(section, e)) return False # Load options diff --git a/glances/plugins/glances_docker.py b/glances/plugins/glances_docker.py index c4258e8b..08a875ff 100644 --- a/glances/plugins/glances_docker.py +++ b/glances/plugins/glances_docker.py @@ -39,6 +39,31 @@ except ImportError as e: else: import_error_tag = False +# Define the items history list (list of items to add to history) +# TODO: For the moment limited to the CPU. Had to change the graph exports +# method to display one graph per container. +# items_history_list = [{'name': 'cpu_percent', +# 'description': 'Container CPU consumption in %', +# 'y_unit': '%'}, +# {'name': 'memory_usage', +# 'description': 'Container memory usage in bytes', +# 'y_unit': 'B'}, +# {'name': 'network_rx', +# 'description': 'Container network RX bitrate in bits per second', +# 'y_unit': 'bps'}, +# {'name': 'network_tx', +# 'description': 'Container network TX bitrate in bits per second', +# 'y_unit': 'bps'}, +# {'name': 'io_r', +# 'description': 'Container IO bytes read per second', +# 'y_unit': 'Bps'}, +# {'name': 'io_w', +# 'description': 'Container IO bytes write per second', +# 'y_unit': 'Bps'}] +items_history_list = [{'name': 'cpu_percent', + 'description': 'Container CPU consumption in %', + 'y_unit': '%'}] + class Plugin(GlancesPlugin): """Glances Docker plugin. @@ -48,7 +73,8 @@ class Plugin(GlancesPlugin): def __init__(self, args=None): """Init the plugin.""" - super(Plugin, self).__init__(args=args) + super(Plugin, self).__init__(args=args, + items_history_list=items_history_list) # The plgin can be disable using: args.disable_docker self.args = args @@ -198,14 +224,26 @@ class Plugin(GlancesPlugin): # Standards stats if container_stats['Status'] in ('running', 'paused'): container_stats['cpu'] = self.get_docker_cpu(container.id, self.thread_list[container.id].stats) + container_stats['cpu_percent'] = container_stats['cpu'].get('total', None) container_stats['memory'] = self.get_docker_memory(container.id, self.thread_list[container.id].stats) - container_stats['network'] = self.get_docker_network(container.id, self.thread_list[container.id].stats) + container_stats['memory_usage'] = container_stats['memory'].get('usage', None) container_stats['io'] = self.get_docker_io(container.id, self.thread_list[container.id].stats) + container_stats['io_r'] = container_stats['io'].get('ior', None) + container_stats['io_w'] = container_stats['io'].get('iow', None) + container_stats['network'] = self.get_docker_network(container.id, self.thread_list[container.id].stats) + container_stats['network_rx'] = container_stats['network'].get('rx', None) + container_stats['network_tx'] = container_stats['network'].get('tx', None) else: container_stats['cpu'] = {} + container_stats['cpu_percent'] = None container_stats['memory'] = {} - container_stats['network'] = {} + container_stats['memory_percent'] = None container_stats['io'] = {} + container_stats['io_r'] = None + container_stats['io_w'] = None + container_stats['network'] = {} + container_stats['network_rx'] = None + container_stats['network_tx'] = None # Add current container stats to the stats list self.stats['containers'].append(container_stats) @@ -537,9 +575,10 @@ class Plugin(GlancesPlugin): msg = '{:>7}'.format('_') ret.append(self.curse_add_line(msg)) # IO R/W + unit = 'B' for r in ['ior', 'iow']: try: - value = self.auto_unit(int(container['io'][r] // container['io']['time_since_update'] * 8)) + "b" + value = self.auto_unit(int(container['io'][r] // container['io']['time_since_update'])) + unit msg = '{:>7}'.format(value) except KeyError: msg = '{:>7}'.format('_') diff --git a/glances/plugins/glances_network.py b/glances/plugins/glances_network.py index 5c7372e9..bae3ae7d 100644 --- a/glances/plugins/glances_network.py +++ b/glances/plugins/glances_network.py @@ -35,7 +35,6 @@ snmp_oid = {'default': {'interface_name': '1.3.6.1.2.1.2.2.1.2', 'cumulative_tx': '1.3.6.1.2.1.2.2.1.16'}} # Define the history items list -# All items in this list will be historised if the --enable-history tag is set items_history_list = [{'name': 'rx', 'description': 'Download rate per second', 'y_unit': 'bit/s'}, diff --git a/glances/plugins/glances_plugin.py b/glances/plugins/glances_plugin.py index e0db344c..928f3b74 100644 --- a/glances/plugins/glances_plugin.py +++ b/glances/plugins/glances_plugin.py @@ -162,13 +162,13 @@ class GlancesPlugin(object): else: item_name = self.get_key() # Build the history - if self.stats and self._history_enable(): + if self.get_export() and self._history_enable(): for i in self.get_items_history_list(): - if isinstance(self.stats, list): + if isinstance(self.get_export(), list): # Stats is a list of data # Iter throught it (for exemple, iter throught network # interface) - for l in self.stats: + for l in self.get_export(): self.stats_history.add( str(l[item_name]) + '_' + i['name'], l[i['name']], @@ -178,7 +178,7 @@ class GlancesPlugin(object): # Stats is not a list # Add the item to the history directly self.stats_history.add(i['name'], - self.stats[i['name']], + self.get_export()[i['name']], description=i['description'], history_max_size=self._limits['history_size'])