{ "__inputs": [ { "name": "DS_GRAFANA-POSTGRESQL-DATASOURCE", "label": "grafana-postgresql-datasource", "description": "", "type": "datasource", "pluginId": "grafana-postgresql-datasource", "pluginName": "PostgreSQL" } ], "__elements": {}, "__requires": [ { "type": "panel", "id": "gauge", "name": "Gauge", "version": "" }, { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "12.2.1" }, { "type": "datasource", "id": "grafana-postgresql-datasource", "name": "PostgreSQL", "version": "12.2.1" }, { "type": "panel", "id": "stat", "name": "Stat", "version": "" }, { "type": "panel", "id": "table", "name": "Table", "version": "" }, { "type": "panel", "id": "text", "name": "Text", "version": "" }, { "type": "panel", "id": "timeseries", "name": "Time series", "version": "" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "links": [], "panels": [ { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 7, "panels": [ { "fieldConfig": { "defaults": {}, "overrides": [] }, "gridPos": { "h": 4, "w": 24, "x": 0, "y": 419 }, "id": 8, "options": { "code": { "language": "plaintext", "showLineNumbers": false, "showMiniMap": false }, "content": "
\n\n
\n

${hostname} - Server

\n
\n\n\n\n\n\n", "mode": "html" }, "pluginVersion": "12.2.1", "title": "", "type": "text" } ], "title": "Welcome", "type": "row" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 1 }, "id": 4, "panels": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 0, "y": 347 }, "id": 1, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "center", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "builder", "format": "table", "rawSql": "SELECT AVG(uptime) FROM system WHERE host = '$hostname' GROUP BY \"time\" LIMIT 50 ", "refId": "A", "sql": { "columns": [ { "name": "AVG", "parameters": [ { "name": "uptime", "type": "functionParameter" } ], "type": "function" } ], "groupBy": [ { "property": { "name": "\"time\"", "type": "string" }, "type": "groupBy" } ], "limit": 50, "whereJsonTree": { "children1": [ { "id": "a89bb899-cdef-4012-b456-7198262096ed", "properties": { "field": "host", "fieldSrc": "field", "operator": "equal", "value": [ "$hostname" ], "valueError": [ null ], "valueSrc": [ "value" ], "valueType": [ "text" ] }, "type": "rule" } ], "id": "bbaa9a9a-0123-4456-b89a-b198261f7759", "type": "group" }, "whereString": "host = '$hostname'" }, "table": "system" } ], "title": "Uptime", "type": "stat" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 2, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "bits" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 3, "y": 347 }, "id": 10, "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "builder", "format": "table", "rawSql": "SELECT SUM(total) FROM mem WHERE host = '$hostname' GROUP BY \"time\" LIMIT 50 ", "refId": "A", "sql": { "columns": [ { "name": "SUM", "parameters": [ { "name": "total", "type": "functionParameter" } ], "type": "function" } ], "groupBy": [ { "property": { "name": "\"time\"", "type": "string" }, "type": "groupBy" } ], "limit": 50, "whereJsonTree": { "children1": [ { "id": "a88bab98-0123-4456-b89a-b1982627084d", "properties": { "field": "host", "fieldSrc": "field", "operator": "equal", "value": [ "$hostname" ], "valueError": [ null ], "valueSrc": [ "value" ], "valueType": [ "text" ] }, "type": "rule" } ], "id": "bbaa9a9a-0123-4456-b89a-b198261f7759", "type": "group" }, "whereString": "host = '$hostname'" }, "table": "mem" } ], "title": " RAM Total", "type": "stat" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "orange", "value": 70 }, { "color": "red", "value": 85 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 6, "y": 347 }, "id": 2, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "sizing": "auto" }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT time_bucket(INTERVAL'$__interval', \"time\") as interval, AVG(100 - usage_idle) as usage_cpu FROM cpu WHERE host = '$hostname' and \"time\" >= $__timeFrom() and \"time\" <= $__timeTo() GROUP BY \"time\" LIMIT 50 ", "refId": "A", "sql": { "columns": [ { "name": "AVG", "parameters": [ { "name": "usage_idle", "type": "functionParameter" } ], "type": "function" } ], "groupBy": [ { "property": { "name": "\"time\"", "type": "string" }, "type": "groupBy" } ], "limit": 50, "whereJsonTree": { "children1": [ { "id": "8aab9bb8-cdef-4012-b456-7198262a051d", "properties": { "field": "host", "fieldSrc": "field", "operator": "equal", "value": [ "$hostname" ], "valueError": [ null ], "valueSrc": [ "value" ], "valueType": [ "text" ] }, "type": "rule" } ], "id": "bbaa9a9a-0123-4456-b89a-b198261f7759", "type": "group" }, "whereString": "host = '$hostname'" }, "table": "cpu" } ], "title": "CPU Usage", "type": "gauge" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 9, "y": 347 }, "id": 15, "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(n_cpus) AS mean_n_cpus\r\nFROM system\r\nWHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "CPUs", "type": "stat" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 2, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "#EAB839", "value": 80 }, { "color": "red", "value": 90 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 12, "y": 347 }, "id": 5, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "sizing": "auto", "text": {} }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n last(used_percent, \"time\") AS last_used_percent\r\nFROM mem\r\nWHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "RAM", "type": "gauge" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 2, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "bits" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 15, "y": 347 }, "id": 9, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT DISTINCT ON (interval)\r\n interval,\r\n used AS last_used\r\nFROM (\r\n SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n \"time\",\r\n used\r\n FROM mem\r\n WHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n ORDER BY interval, \"time\" DESC\r\n) sub\r\nORDER BY interval;", "refId": "A", "sql": { "columns": [ { "name": "SUM", "parameters": [ { "name": "used", "type": "functionParameter" } ], "type": "function" } ], "groupBy": [ { "property": { "name": "\"time\"", "type": "string" }, "type": "groupBy" } ], "limit": 50 }, "table": "mem" } ], "title": "RAM Used", "type": "stat" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "#299c46", "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 1 }, { "color": "#d44a3a", "value": 5 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 18, "y": 347 }, "id": 12, "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n last(total_threads, \"time\") AS last_total_threads\r\nFROM processes\r\nWHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Threads", "type": "stat" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "#299c46", "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 1 }, { "color": "#d44a3a", "value": 5 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 21, "y": 347 }, "id": 11, "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n last(total, \"time\") AS last_total_process\r\nFROM processes\r\nWHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Processes", "type": "stat" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "#EAB839", "value": 3 }, { "color": "red", "value": 7 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 0, "y": 524 }, "id": 3, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "text": { "valueSize": 30 }, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n last(load5, \"time\") AS last_load5\r\nFROM system\r\nWHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "LA (Medium)", "type": "stat" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "max": 2000, "min": 100, "thresholds": { "mode": "absolute", "steps": [ { "color": "rgba(50, 172, 45, 0.97)", "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 1500 }, { "color": "rgba(245, 54, 54, 0.9)", "value": 1700 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 3, "y": 524 }, "id": 13, "maxDataPoints": 100, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "sizing": "auto" }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n avg(total_threads) AS mean_total_threads\r\nFROM processes\r\nWHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "total threads", "type": "gauge" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#299c46", "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 50 }, { "color": "#d44a3a", "value": 70 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 6, "y": 524 }, "id": 14, "maxDataPoints": 100, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "sizing": "auto" }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT DISTINCT ON (interval)\r\n interval,\r\n used_percent AS last_used_percent\r\nFROM (\r\n SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n \"time\",\r\n used_percent\r\n FROM swap\r\n WHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n ORDER BY interval, \"time\" DESC\r\n) sub\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Swap Usage", "type": "gauge" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "#EAB839", "value": 70 }, { "color": "red", "value": 80 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 9, "y": 524 }, "id": 6, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "sizing": "auto" }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT DISTINCT ON (interval)\r\n interval,\r\n used_percent AS last_used_percent\r\nFROM (\r\n SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n \"time\",\r\n used_percent\r\n FROM disk\r\n WHERE host ~* '$hostname'\r\n AND path ~* '/'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n ORDER BY interval, \"time\" DESC\r\n) sub\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Root FS Used", "type": "gauge" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "rgba(50, 172, 45, 0.97)", "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 70 }, { "color": "rgba(245, 54, 54, 0.9)", "value": 90 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 12, "y": 524 }, "id": 16, "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(used_percent) AS mean_used_percent\r\nFROM disk\r\nWHERE host = '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "name": "AVG", "parameters": [ { "name": "\"time\"", "type": "functionParameter" } ], "type": "function" } ], "groupBy": [ { "property": { "name": "\"time\"", "type": "string" }, "type": "groupBy" } ], "limit": 50, "orderBy": { "property": { "name": "AVG(\"time\")", "type": "string" }, "type": "property" }, "whereJsonTree": { "children1": [ { "id": "abbb88b8-cdef-4012-b456-71982664f185", "properties": { "field": "host", "fieldSrc": "field", "operator": "equal", "value": [ "$hostname" ], "valueError": [ null ], "valueSrc": [ "value" ], "valueType": [ "text" ] }, "type": "rule" }, { "id": "ba8baabb-89ab-4cde-b012-3198266567a7", "properties": { "field": "path", "fieldSrc": "field", "operator": "equal", "value": [ "$path" ], "valueError": [ null ], "valueSrc": [ "value" ], "valueType": [ "text" ] }, "type": "rule" } ], "id": "bbaa9a9a-0123-4456-b89a-b198261f7759", "type": "group" }, "whereString": "(host = '$hostname' AND path = '$path')" }, "table": "disk" } ], "title": "Space Disk Used => Path: $dpath ", "type": "stat" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 2, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "#299c46", "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 70 }, { "color": "#d44a3a", "value": 80 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 15, "y": 524 }, "id": 17, "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(usage_iowait) AS mean_usage_iowait\r\nFROM cpu\r\nWHERE host ~* '$hostname'\r\n AND cpu IN (${dcpu:singlequote})\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "IOWait", "type": "stat" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "rgba(50, 172, 45, 0.97)", "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 1 }, { "color": "rgba(245, 54, 54, 0.9)", "value": 5 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 18, "y": 524 }, "id": 18, "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT DISTINCT ON (interval)\r\n interval,\r\n zombies AS last_zombies\r\nFROM (\r\n SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n \"time\",\r\n zombies\r\n FROM processes \r\n WHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n ORDER BY interval, \"time\" DESC\r\n) sub\r\nORDER BY interval;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 }, "table": "processes" } ], "title": "Zombies", "type": "stat" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "#299c46", "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 20 }, { "color": "#d44a3a", "value": 50 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 21, "y": 524 }, "id": 19, "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(n_users) AS mean_n_users\r\nFROM system \r\nWHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Users", "type": "stat" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "max": 105545592832, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "rgba(50, 172, 45, 0.97)", "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 73881914982 }, { "color": "rgba(245, 54, 54, 0.9)", "value": 94991033548 } ] }, "unit": "bytes" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 0, "y": 691 }, "id": 20, "maxDataPoints": 100, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "sizing": "auto" }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(used) AS mean_used\r\nFROM disk\r\nWHERE host ~* '$hostname'\r\n AND path = $dpath\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "$hostname- Disk Used(/)", "type": "gauge" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "max": 100, "min": 1, "thresholds": { "mode": "absolute", "steps": [ { "color": "rgba(50, 172, 45, 0.97)", "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 75 }, { "color": "rgba(245, 54, 54, 0.9)", "value": 90 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 3, "y": 691 }, "id": 21, "maxDataPoints": 100, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "sizing": "auto" }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n (AVG(inodes_used) * 100.0) / NULLIF(AVG(inodes_total), 0) AS inodes_used_percent\r\nFROM disk\r\nWHERE host ~* '$hostname'\r\n AND path = $dpath \r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "inode $dpath", "type": "gauge" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "description": "Thresholds are 10 mbit,50 mbit,100 mbit", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "max": 100000000, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#299c46", "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 10000000 }, { "color": "#d44a3a", "value": 50000000 } ] }, "unit": "bps" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 6, "y": 691 }, "id": 22, "maxDataPoints": 100, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "sizing": "auto" }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n interval,\r\n (mean_bytes_recv - LAG(mean_bytes_recv) OVER (ORDER BY interval)) \r\n * 8 / EXTRACT(EPOCH FROM INTERVAL '$__interval') AS bits_per_second\r\nFROM (\r\n SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(bytes_recv) AS mean_bytes_recv\r\n FROM net\r\n WHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n GROUP BY interval\r\n) sub\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Download", "type": "gauge" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "description": "Thresholds are 10 mbit,50 mbit,100 mbit", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "max": 100000000, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#299c46", "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 10000000 }, { "color": "#d44a3a", "value": 50000000 } ] }, "unit": "bps" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 9, "y": 691 }, "id": 23, "maxDataPoints": 100, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "sizing": "auto" }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n interval,\r\n (mean_bytes_sent - LAG(mean_bytes_sent) OVER (ORDER BY interval)) \r\n * 8 / EXTRACT(EPOCH FROM INTERVAL '$__interval') AS bits_per_second\r\nFROM (\r\n SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(bytes_sent) AS mean_bytes_sent\r\n FROM net\r\n WHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n GROUP BY interval\r\n) sub\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Upload", "type": "gauge" } ], "title": "General View", "type": "row" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 2 }, "id": 24, "panels": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 0, "y": 348 }, "id": 25, "interval": "$inter", "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max", "min" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(load1) AS load1,\r\n AVG(load5) AS load5,\r\n AVG(load15) AS load15\r\nFROM system\r\nWHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval ASC;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "CPU Load", "transformations": [ { "id": "concatenate", "options": {} }, { "id": "organize", "options": { "excludeByName": {}, "includeByName": {}, "indexByName": {}, "renameByName": { "load1": "$hostname load1", "load15": "$hostname load15", "load5": "$hostname load5" } } } ], "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 12, "w": 12, "x": 12, "y": 348 }, "id": 26, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(usage_user) AS mean_usage_user,\r\n avg(usage_iowait) as mean_usage_iowait,\r\n avg(usage_system) as mean_usage_system\r\n FROM cpu \r\nWHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "CPU (%)", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byName", "options": "mean_load1" }, "properties": [ { "id": "displayName", "value": "1 Min" } ] }, { "matcher": { "id": "byName", "options": "mean_load5" }, "properties": [ { "id": "displayName", "value": "5 Min" } ] }, { "matcher": { "id": "byName", "options": "mean_load15" }, "properties": [ { "id": "displayName", "value": "15 Min" } ] } ] }, "gridPos": { "h": 12, "w": 9, "x": 0, "y": 694 }, "id": 27, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "rawQuery": true, "rawSql": "SELECT\r\n time_bucket('$__interval', time) AS time,\r\n AVG(load1) AS mean_load1,\r\n AVG(load5) AS mean_load5,\r\n AVG(load15) AS mean_load15\r\nFROM\r\n system\r\nWHERE\r\n host ~ '^$hostname$$'\r\n AND $__timeFilter(time)\r\nGROUP BY\r\n time_bucket('$__interval', time)\r\nORDER BY\r\n time;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Load", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 2, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "rgba(50, 172, 45, 0.97)", "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 5 }, { "color": "rgba(245, 54, 54, 0.9)", "value": 15 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 9, "y": 694 }, "id": 28, "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(load1) AS mean_load1\r\nFROM system\r\nWHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval;", "refId": "A", "sql": { "columns": [ { "alias": "\"load1\"", "name": "AVG", "parameters": [ { "name": "load1", "type": "functionParameter" } ], "type": "function" } ], "groupBy": [ { "property": { "name": "\"time\"", "type": "string" }, "type": "groupBy" } ], "limit": 50, "whereJsonTree": { "children1": [ { "id": "b8889bab-cdef-4012-b456-71982add63b6", "properties": { "fieldSrc": "field", "value": [], "valueSrc": [] }, "type": "rule" } ], "id": "9b9b9aa8-0123-4456-b89a-b1982ac5908b", "type": "group" } }, "table": "system" } ], "title": "load 1", "type": "stat" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "normal" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 2, "displayName": "$cpu", "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 12, "y": 696 }, "id": 31, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max", "min" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\r\n time_bucket(INTERVAL '$__interval', time) AS time,\r\n cpu,\r\n AVG(100 - usage_idle) AS usage_percent\r\nFROM cpu \r\nWHERE\r\n $__timeFilter(time)\r\n AND host = '$hostname'\r\n AND cpu IN (${dcpu:singlequote})\r\nGROUP BY time, cpu\r\nORDER BY time;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 }, "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" } } ], "title": "CPU usage per core", "transformations": [ { "id": "concatenate", "options": {} }, { "id": "rowsToFields", "options": { "mappings": [ { "fieldName": "usage_percent", "handlerKey": "field.label" }, { "fieldName": "cpu", "handlerKey": "field.value" } ] } } ], "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 2, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "rgba(50, 172, 45, 0.97)", "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 5 }, { "color": "rgba(245, 54, 54, 0.9)", "value": 15 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 9, "y": 698 }, "id": 29, "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(load5) AS mean_load5\r\nFROM system\r\nWHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "load 5", "type": "stat" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 2, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "rgba(50, 172, 45, 0.97)", "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 5 }, { "color": "rgba(245, 54, 54, 0.9)", "value": 15 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 9, "y": 702 }, "id": 30, "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(load15) AS mean_load15\r\nFROM system\r\nWHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "load 15", "type": "stat" } ], "title": "CPU", "type": "row" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 3 }, "id": 32, "panels": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "left", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 14, "w": 24, "x": 0, "y": 4 }, "id": 33, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "right", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "repeat": "cpu", "repeatDirection": "h", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n cpu,\r\n AVG(usage_user) AS \"user\",\r\n AVG(usage_system) AS \"system\",\r\n AVG(usage_softirq) AS softirq,\r\n AVG(usage_steal) AS steal,\r\n AVG(usage_nice) AS nice,\r\n AVG(usage_irq) AS irq,\r\n AVG(usage_iowait) AS iowait,\r\n AVG(usage_guest) AS guest,\r\n AVG(usage_guest_nice) AS guest_nice\r\nFROM cpu\r\nWHERE host ~* '$hostname'\r\n AND cpu IN (${dcpu:singlequote})\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval, cpu\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "$dcpu Usage", "type": "timeseries" } ], "title": "Per-CPU-Usage", "type": "row" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 4 }, "id": 34, "panels": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 2, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "decbytes" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 419 }, "id": 35, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(available) AS mean_available,\r\n avg(buffered) AS mean_buffered,\r\n avg(cached) AS mean_cached,\r\n avg(free) As mean_free,\r\n avg(used) as mean_used,\r\n avg(total) as mean_total,\r\n avg(mapped) as mean_mapped\r\nFROM mem\r\nWHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": " RAM", "transformations": [ { "id": "concatenate", "options": {} }, { "id": "organize", "options": { "excludeByName": { "interval": false }, "includeByName": {}, "indexByName": {}, "renameByName": { "interval": "", "mean_available": "Available", "mean_buffered": "Buffered", "mean_cached": "Cached", "mean_free": "Free", "mean_mapped": "Mapped", "mean_total": "Total", "mean_used": "Used" } } } ], "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "total" }, "properties": [ { "id": "color", "value": { "fixedColor": "#BF1B00", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 419 }, "id": 36, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(used) as mean_used, \r\n AVg(total) as mean_toatl\r\nFROM mem\r\nWHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval\r\nORDER BY interval;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "MEM", "transformations": [ { "id": "concatenate", "options": {} }, { "id": "organize", "options": { "excludeByName": {}, "includeByName": {}, "indexByName": {}, "renameByName": { "mean_toatl": "Mem_Total", "mean_used": "Mem_Used" } } } ], "type": "timeseries" } ], "title": "RAM", "type": "row" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 5 }, "id": 37, "panels": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "stepAfter", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "disk.total" }, "properties": [ { "id": "color", "value": { "fixedColor": "#BF1B00", "mode": "fixed" } }, { "id": "custom.fillOpacity", "value": 0 }, { "id": "custom.lineWidth", "value": 2 } ] } ] }, "gridPos": { "h": 9, "w": 12, "x": 0, "y": 6 }, "id": 38, "interval": "$inter", "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max", "min" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n host,\r\n path,\r\n AVG(total) AS total,\r\n AVG(used) AS used,\r\n AVG(free) AS free\r\nFROM disk\r\nWHERE host ~* '$hostname'\r\n AND path = '/'::text\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval, host, path\r\nORDER BY interval;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Root Disk usage (/)", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "stepAfter", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 9, "w": 12, "x": 12, "y": 6 }, "id": 39, "interval": "$inter", "options": { "legend": { "calcs": [ "lastNotNull", "max", "min" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket('$__interval', time) AS time,\r\n path,\r\n device,\r\n fstype,\r\n AVG(used_percent) AS used_percent\r\nFROM disk\r\nWHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\nGROUP BY time_bucket('$__interval', time), path, device, fstype\r\nORDER BY time;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "All partitions usage (%)", "transformations": [ { "id": "labelsToFields", "options": { "valueLabel": "path" } } ], "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "Inode Total", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 20, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "log": 10, "type": "log" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "undefined" }, "properties": [ { "id": "color", "value": { "fixedColor": "#1F78C1", "mode": "fixed" } } ] }, { "__systemRef": "hideSeriesFrom", "matcher": { "id": "byNames", "options": { "mode": "exclude", "names": [ "mean_inodes_total /proc/sys/kernel/random/boot_id" ], "prefix": "All except:", "readOnly": true } }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": false, "tooltip": true, "viz": true } } ] } ] }, "gridPos": { "h": 9, "w": 12, "x": 0, "y": 120 }, "id": 40, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "hide": false, "rawQuery": true, "rawSql": "SELECT \r\n time_bucket('$__interval', time) AS time,\r\n path,\r\n AVG(inodes_total) AS mean_inodes_total\r\nFROM disk\r\nWHERE \r\n host ~ '$hostname'\r\n AND time >= $__timeFrom() AND time <= $__timeTo()\r\nGROUP BY time_bucket('$__interval', time), path\r\nORDER BY time;", "refId": "B", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "DISK partitions Inode Total", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "Inode Total", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 20, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "log": 10, "type": "log" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "undefined" }, "properties": [ { "id": "color", "value": { "fixedColor": "#1F78C1", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 9, "w": 12, "x": 12, "y": 120 }, "id": 41, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket('$__interval', time) AS time,\r\n path,\r\n AVG(inodes_free) AS mean_inodes_free\r\nFROM disk\r\nWHERE \r\n host ~ '$hostname'\r\n AND time >= $__timeFrom() AND time <= $__timeTo()\r\nGROUP BY time_bucket('$__interval', time), path\r\nORDER BY time;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "DISK partitions Inode Free", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "Inode Total", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 20, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "log": 10, "type": "log" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "undefined" }, "properties": [ { "id": "color", "value": { "fixedColor": "#1F78C1", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 9, "w": 12, "x": 0, "y": 129 }, "id": 42, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket('$__interval', time) AS time,\r\n path,\r\n AVG(total) AS mean_total\r\nFROM disk\r\nWHERE \r\n host = '$hostname'\r\n AND $__timeFilter(time)\r\nGROUP BY time_bucket('$__interval', time), path\r\nORDER BY time;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "DISK partitions Space Total", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "Inode Total", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 20, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "log": 10, "type": "log" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "undefined" }, "properties": [ { "id": "color", "value": { "fixedColor": "#1F78C1", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 9, "w": 12, "x": 12, "y": 129 }, "id": 43, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket('$__interval', time) AS time,\r\n path,\r\n AVG(free) AS free_total\r\nFROM disk\r\nWHERE \r\n host = '$hostname'\r\n AND $__timeFilter(time)\r\nGROUP BY time_bucket('$__interval', time), path\r\nORDER BY time;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "DISK Free Space Total", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic-by-name" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "stepAfter", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 } ] }, "unit": "bytes" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 138 }, "id": 44, "interval": "$inter", "options": { "legend": { "calcs": [ "mean" ], "displayMode": "table", "placement": "bottom", "showLegend": true, "sortBy": "Mean", "sortDesc": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket('$__interval', time) AS time,\r\n host,\r\n path,\r\n AVG(inodes_total) AS total,\r\n AVG(inodes_free) AS free,\r\n AVG(inodes_used) AS used\r\nFROM disk\r\nWHERE \r\n host ~ '$hostname'\r\n AND path = '/'\r\n AND $__timeFilter(time)\r\nGROUP BY time_bucket('$__interval', time), host, path\r\nORDER BY time;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Root Disk usage (/)", "transformations": [ { "id": "labelsToFields", "options": {} } ], "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "stepAfter", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "disk.total" }, "properties": [ { "id": "color", "value": { "fixedColor": "#BF1B00", "mode": "fixed" } }, { "id": "custom.fillOpacity", "value": 0 }, { "id": "custom.lineWidth", "value": 2 } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 138 }, "id": 45, "interval": "$inter", "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max", "min" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket('$__interval', time) AS time,\r\n path,\r\n device,\r\n fstype,\r\n AVG(inodes_free) AS free\r\nFROM disk\r\nWHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\nGROUP BY time_bucket('$__interval', time), path, device, fstype", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "All partitions Inodes (Free)", "transformations": [ { "id": "labelsToFields", "options": { "valueLabel": "path" } } ], "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "stepAfter", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/total/" }, "properties": [ { "id": "custom.fillOpacity", "value": 0 } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 146 }, "id": 46, "interval": "$inter", "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max", "min" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket('$__interval', time) AS time,\r\n host,\r\n AVG(free) AS free,\r\n AVG(used) AS used,\r\n AVG(total) AS total\r\nFROM swap\r\nWHERE \r\n host ~ '$hostname'\r\n AND $__timeFilter(time)\r\nGROUP BY time_bucket('$__interval', time), host\r\nORDER BY time ASC;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Swap usage (bytes)", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/in/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 146 }, "id": 47, "interval": "$inter", "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max", "min" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket('$__interval', time) AS time,\r\n host,\r\n AVG(\"in\") AS \"in\",\r\n AVG(\"out\") AS \"out\"\r\nFROM swap\r\nWHERE \r\n host ~ '$hostname'\r\n AND $__timeFilter(time)\r\nGROUP BY time_bucket('$__interval', time), host\r\nORDER BY time ASC;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Swap I/O bytes", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "stepAfter", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "iops" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 154 }, "id": 48, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max", "min" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "hide": false, "rawQuery": true, "rawSql": "SELECT \r\n time_bucket('$__interval', time) AS time,\r\n host,\r\n name,\r\n (MAX(writes) - MIN(writes)) / EXTRACT(EPOCH FROM '$__interval'::interval) AS write\r\nFROM diskio\r\nWHERE \r\n host = '$hostname'\r\n AND $__timeFilter(time)\r\nGROUP BY time_bucket('$__interval', time), host, name\r\nORDER BY time;", "refId": "B", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "hide": false, "rawQuery": true, "rawSql": "SELECT \r\n time_bucket('$__interval', time) AS time,\r\n host,\r\n name,\r\n (MAX(reads) - MIN(reads)) / EXTRACT(EPOCH FROM '$__interval'::interval) AS read\r\nFROM diskio\r\nWHERE \r\n host = '$hostname'\r\n AND $__timeFilter(time)\r\nGROUP BY time_bucket('$__interval', time), host, name\r\nORDER BY time;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Disk I/O requests", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "color-background" }, "footer": { "reducers": [] }, "inspect": false }, "decimals": 2, "displayName": "", "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "rgba(50, 172, 45, 0.97)", "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 80 }, { "color": "rgba(245, 54, 54, 0.9)", "value": 90 } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byName", "options": "Time" }, "properties": [ { "id": "displayName", "value": "Time" }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "last" }, "properties": [ { "id": "displayName", "value": "Used Percent" }, { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "rgb(153, 147, 98)", "value": 0 }, { "color": "rgba(237, 129, 40, 0.89)", "value": 80 }, { "color": "rgba(245, 54, 54, 0.9)", "value": 90 } ] } }, { "id": "custom.cellOptions", "value": { "type": "color-background" } }, { "id": "custom.align" } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 154 }, "id": 49, "options": { "cellHeight": "sm", "showHeader": true }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n path,\r\n device,\r\n (array_agg(used_percent ORDER BY time DESC))[1] AS last_used_percent\r\nFROM disk\r\nWHERE \r\n host ~ '^$hostname$$'\r\n AND $__timeFilter(time)\r\nGROUP BY path, device;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Path Used Percent", "transformations": [ { "id": "labelsToFields", "options": { "mode": "columns" } }, { "id": "organize", "options": { "excludeByName": { "__name__": true, "fstype": true, "host": true, "instance": true, "job": true, "mode": true, "path": false }, "includeByName": {}, "indexByName": {}, "renameByName": { "Value": "Usage Percent", "path": "" } } } ], "type": "table" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "stepBefore", "lineStyle": { "fill": "solid" }, "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/read/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 162 }, "id": 76, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max", "min" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "hide": false, "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n host,\r\n name,\r\n GREATEST(0, (avg_write_bytes - LAG(avg_write_bytes) OVER (PARTITION BY host, name ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS write\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n host,\r\n name,\r\n AVG(write_bytes) AS avg_write_bytes\r\n FROM diskio\r\n WHERE \r\n host ~ '$hostname'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time), host, name\r\n) AS subquery\r\nORDER BY time;", "refId": "B", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": false, "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n host,\r\n name,\r\n GREATEST(0, (avg_read_bytes - LAG(avg_read_bytes) OVER (PARTITION BY host, name ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS read\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n host,\r\n name,\r\n AVG(read_bytes) AS avg_read_bytes\r\n FROM diskio\r\n WHERE \r\n host ~ '$hostname'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time), host, name\r\n) AS subquery\r\nORDER BY time;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Disk I/O bytes", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "stepAfter", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "ms" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/read/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 162 }, "id": 77, "interval": "$inter", "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max", "min" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n host,\r\n name,\r\n GREATEST(0, (avg_read_time - LAG(avg_read_time) OVER (PARTITION BY host, name ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS read\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n host,\r\n name,\r\n AVG(read_time) AS avg_read_time\r\n FROM diskio\r\n WHERE \r\n host ~ '$hostname'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time), host, name\r\n) AS subquery\r\nORDER BY time;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "hide": false, "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n host,\r\n name,\r\n GREATEST(0, (avg_write_time - LAG(avg_write_time) OVER (PARTITION BY host, name ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS write\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n host,\r\n name,\r\n AVG(write_time) AS avg_write_time\r\n FROM diskio\r\n WHERE \r\n host ~ '$hostname'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time), host, name\r\n) AS subquery\r\nORDER BY time;", "refId": "B", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Disk I/O time", "type": "timeseries" } ], "title": "Disk", "type": "row" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 6 }, "id": 51, "panels": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "ns" }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 0, "y": 7 }, "id": 50, "options": { "legend": { "calcs": [ "mean", "lastNotNull" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "WITH data AS (\r\n SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(write_time_ns) AS avg_write_time_ns\r\n FROM internal_write\r\n WHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n GROUP BY interval\r\n)\r\nSELECT\r\n interval,\r\n GREATEST(\r\n (avg_write_time_ns - LAG(avg_write_time_ns) OVER (ORDER BY interval)) / EXTRACT(EPOCH FROM INTERVAL '$__interval'),\r\n 0\r\n ) AS non_negative_derivative_write_time_ns_per_sec\r\nFROM data\r\nORDER BY interval;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Delivery time", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "displayName": "Gather Time", "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "ns" }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 6, "y": 7 }, "id": 52, "options": { "legend": { "calcs": [ "mean", "lastNotNull" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "WITH bucketed AS (\r\n SELECT\r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(gather_time_ns) AS mean_gather_time_ns\r\n FROM internal_gather\r\n WHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n GROUP BY interval\r\n)\r\n\r\nSELECT\r\n interval,\r\n GREATEST(\r\n (mean_gather_time_ns - LAG(mean_gather_time_ns) OVER (ORDER BY interval)) / EXTRACT(EPOCH FROM INTERVAL '10 seconds'),\r\n 0\r\n ) AS non_negative_derivative_per_sec\r\nFROM bucketed\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Gather time", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 0, "displayName": "Metrics Written", "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 12, "y": 7 }, "id": 53, "options": { "legend": { "calcs": [ "mean", "lastNotNull" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "WITH avg_metrics AS (\r\n SELECT\r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(metrics_written) AS avg_metrics_written\r\n FROM internal_agent\r\n WHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n GROUP BY interval\r\n)\r\nSELECT\r\n interval,\r\n GREATEST(\r\n (avg_metrics_written - LAG(avg_metrics_written) OVER (ORDER BY interval))\r\n / EXTRACT(EPOCH FROM INTERVAL '$__interval'),\r\n 0\r\n ) AS non_negative_derivative_per_second\r\nFROM avg_metrics\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Written metrics", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "showValues": false, "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 18, "y": 7 }, "id": 54, "options": { "alertThreshold": true, "legend": { "calcs": [ "lastNotNull", "max", "min" ], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "WITH aggregated AS (\r\n SELECT\r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(gather_errors) AS mean_gather_errors\r\n FROM internal_agent\r\n WHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n GROUP BY interval\r\n)\r\nSELECT\r\n interval,\r\n GREATEST(\r\n (mean_gather_errors - LAG(mean_gather_errors) OVER (ORDER BY interval)) * (1.0 / EXTRACT(EPOCH FROM INTERVAL '$__interval')),\r\n 0\r\n ) AS non_negative_derivative_per_second\r\nFROM aggregated\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": false, "rawQuery": true, "rawSql": "WITH aggregated AS (\r\n SELECT\r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(metrics_dropped) AS mean_metrics_dropped\r\n FROM internal_agent\r\n WHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n GROUP BY interval\r\n)\r\nSELECT\r\n interval,\r\n GREATEST(\r\n (mean_metrics_dropped - LAG(mean_metrics_dropped) OVER (ORDER BY interval)) * (1.0 / EXTRACT(EPOCH FROM INTERVAL '$__interval')),\r\n 0\r\n ) AS non_negative_derivative_per_second\r\nFROM aggregated\r\nORDER BY interval;\r\n", "refId": "B", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Error rate", "transformations": [ { "id": "concatenate", "options": {} }, { "id": "organize", "options": { "excludeByName": {}, "includeByName": {}, "indexByName": {}, "renameByName": { "non_negative_derivative_per_second 1": "Gather Errors", "non_negative_derivative_per_second 2": "Dropped Metrics" } } } ], "type": "timeseries" } ], "title": "Metrics Velocity", "type": "row" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 7 }, "id": 55, "panels": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "continuous-RdYlGr" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "bps" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/ in$/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 8 }, "id": 56, "interval": "$inter", "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max", "min" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "WITH data AS (\r\n SELECT\r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(bytes_recv) AS avg_bytes_recv\r\n FROM net\r\n WHERE host ~* '$hostname'\r\n AND interface ~* '$interface'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n GROUP BY interval\r\n)\r\nSELECT\r\n interval,\r\n GREATEST(\r\n (avg_bytes_recv - LAG(avg_bytes_recv) OVER (ORDER BY interval)) * 8\r\n / EXTRACT(EPOCH FROM INTERVAL '$__interval'),\r\n 0\r\n ) AS in_bits_per_sec\r\nFROM data\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": false, "rawQuery": true, "rawSql": "WITH data AS (\r\n SELECT\r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(bytes_sent) AS avg_bytes_sent\r\n FROM net\r\n WHERE host ~* '$hostname'\r\n AND interface ~* '$interface'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n GROUP BY interval\r\n)\r\nSELECT\r\n interval,\r\n GREATEST(\r\n (avg_bytes_sent - LAG(avg_bytes_sent) OVER (ORDER BY interval)) * 8\r\n / EXTRACT(EPOCH FROM INTERVAL '$__interval'),\r\n 0\r\n ) AS in_bits_per_sec\r\nFROM data\r\nORDER BY interval;\r\n", "refId": "B", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Network Usage", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "continuous-RdYlGr" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "bps" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/ in$/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "gridPos": { "h": 9, "w": 24, "x": 0, "y": 71 }, "id": 57, "interval": "$inter", "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max", "min" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "WITH data AS (\r\n SELECT\r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(packets_recv) AS avg_packets_recv\r\n FROM net\r\n WHERE host ~* '$hostname'\r\n AND interface ~* '$interface'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n GROUP BY interval\r\n)\r\nSELECT\r\n interval,\r\n GREATEST(\r\n (avg_packets_recv - LAG(avg_packets_recv) OVER (ORDER BY interval)) * 8\r\n / EXTRACT(EPOCH FROM INTERVAL '$__interval'),\r\n 0\r\n ) AS in_bits_per_sec\r\nFROM data\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": false, "rawQuery": true, "rawSql": "WITH data AS (\r\n SELECT\r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n AVG(packets_sent) AS avg_packets_sent\r\n FROM net\r\n WHERE host ~* '$hostname'\r\n AND interface ~* '$interface'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n GROUP BY interval\r\n)\r\nSELECT\r\n interval,\r\n GREATEST(\r\n (avg_packets_sent - LAG(avg_packets_sent) OVER (ORDER BY interval)) * 8\r\n / EXTRACT(EPOCH FROM INTERVAL '$__interval'),\r\n 0\r\n ) AS in_bits_per_sec\r\nFROM data\r\nORDER BY interval;\r\n", "refId": "B", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Network Packets", "transformations": [ { "id": "concatenate", "options": {} }, { "id": "organize", "options": { "excludeByName": {}, "includeByName": {}, "indexByName": {}, "renameByName": { "in_bits_per_sec 1": "Packets Rcvd", "in_bits_per_sec 2": "Packets Send" } } } ], "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "continuous-RdYlGr" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "bps" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/ in$/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 80 }, "id": 58, "interval": "$inter", "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max", "min" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "WITH agg AS (\r\n SELECT\r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n host,\r\n interface,\r\n AVG(drop_in) AS avg_drop_in\r\n FROM net\r\n WHERE host ~* '$hostname'\r\n AND interface ~* '$interface'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n GROUP BY interval, host, interface\r\n)\r\n\r\nSELECT\r\n interval,\r\n host,\r\n interface,\r\n GREATEST(\r\n (avg_drop_in - LAG(avg_drop_in) OVER (PARTITION BY host, interface ORDER BY interval)) \r\n / EXTRACT(EPOCH FROM INTERVAL '$__interval'),\r\n 0\r\n ) AS drop_in_per_sec\r\nFROM agg\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "name": "AVG", "parameters": [ { "name": "drop_in", "type": "functionParameter" } ], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" }, { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 }, "table": "net" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": false, "rawQuery": true, "rawSql": "WITH agg AS (\r\n SELECT\r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n host,\r\n interface,\r\n AVG(drop_out) AS avg_drop_out\r\n FROM net\r\n WHERE host ~* '$hostname'\r\n AND interface ~* '$interface'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n GROUP BY interval, host, interface\r\n)\r\n\r\nSELECT\r\n interval,\r\n host,\r\n interface,\r\n GREATEST(\r\n (avg_drop_out - LAG(avg_drop_out) OVER (PARTITION BY host, interface ORDER BY interval)) \r\n / EXTRACT(EPOCH FROM INTERVAL '$__interval'),\r\n 0\r\n ) AS drop_out_per_sec\r\nFROM agg\r\nORDER BY interval;\r\n", "refId": "B", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Network Drops", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "continuous-RdYlGr" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "bps" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/ in$/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 80 }, "id": 59, "interval": "$inter", "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max", "min" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "WITH agg AS (\r\n SELECT\r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n host,\r\n interface,\r\n AVG(err_in) AS avg_err_in\r\n FROM net\r\n WHERE host ~* '$hostname'\r\n AND interface ~* '$interface'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n GROUP BY interval, host, interface\r\n)\r\n\r\nSELECT\r\n interval,\r\n host,\r\n interface,\r\n GREATEST(\r\n (avg_err_in - LAG(avg_err_in) OVER (PARTITION BY host, interface ORDER BY interval)) \r\n / EXTRACT(EPOCH FROM INTERVAL '$__interval'),\r\n 0\r\n ) AS err_in_per_sec\r\nFROM agg\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 }, "table": "net" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": false, "rawQuery": true, "rawSql": "WITH agg AS (\r\n SELECT\r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n host,\r\n interface,\r\n AVG(err_out) AS avg_err_out\r\n FROM net\r\n WHERE host ~* '$hostname'\r\n AND interface ~* '$interface'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\n GROUP BY interval, host, interface\r\n)\r\n\r\nSELECT\r\n interval,\r\n host,\r\n interface,\r\n GREATEST(\r\n (avg_err_out - LAG(avg_err_out) OVER (PARTITION BY host, interface ORDER BY interval)) \r\n / EXTRACT(EPOCH FROM INTERVAL '$__interval'),\r\n 0\r\n ) AS err_out_per_sec\r\nFROM agg\r\nORDER BY interval;\r\n", "refId": "B", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Network Errors", "type": "timeseries" } ], "title": "Network", "type": "row" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 8 }, "id": 60, "panels": [], "title": "Network Stack UDP", "type": "row" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 9 }, "id": 63, "panels": [], "title": "Network Stack TCP", "type": "row" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/in/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "gridPos": { "h": 8, "w": 24, "x": 0, "y": 10 }, "id": 62, "interval": "$inter", "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "right", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "asc" } }, "pluginVersion": "12.2.1", "targets": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket(INTERVAL '$__interval', \"time\") AS interval,\r\n host,\r\n AVG(tcp_close) AS closed,\r\n AVG(tcp_close_wait) AS close_wait,\r\n AVG(tcp_closing) AS closing,\r\n AVG(tcp_established) AS established,\r\n AVG(tcp_fin_wait1) AS fin_wait1,\r\n AVG(tcp_fin_wait2) AS fin_wait2,\r\n AVG(tcp_last_ack) AS last_ack,\r\n AVG(tcp_syn_recv) AS syn_recv,\r\n AVG(tcp_syn_sent) AS syn_sent,\r\n AVG(tcp_time_wait) AS time_wait\r\nFROM netstat\r\nWHERE host ~* '$hostname'\r\n AND \"time\" >= $__timeFrom()\r\n AND \"time\" <= $__timeTo()\r\nGROUP BY interval, host\r\nORDER BY interval;\r\n", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Network Packets", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "ops" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/in/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 18 }, "id": 64, "interval": "$inter", "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "right", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket('$__interval', time) AS time,\r\n GREATEST(0, (MAX(\"TcpExtTCPAbortOnClose\") - MIN(\"TcpExtTCPAbortOnClose\")) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"OnClose\"\r\nFROM nstat\r\nWHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\nGROUP BY time_bucket('$__interval', time)\r\nORDER BY time;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "hide": false, "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n GREATEST(0, (avg_value - LAG(avg_value) OVER (ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"OnData\"\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"TcpExtTCPAbortOnData\") AS avg_value\r\n FROM nstat\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time)\r\n) AS subquery\r\nORDER BY time;", "refId": "B", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": false, "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n GREATEST(0, (avg_value - LAG(avg_value) OVER (ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"TmeOut\"\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"TcpExtTCPAbortOnTimeout\") AS avg_value\r\n FROM nstat\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time)\r\n) AS subquery\r\nORDER BY time;", "refId": "C", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "TCP aborts", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/in/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 18 }, "id": 67, "interval": "$inter", "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n GREATEST(0, (avg_value - LAG(avg_value) OVER (ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"Icmp_InErrors\"\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"IcmpInErrors\") AS avg_value\r\n FROM nstat\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time)\r\n) AS subquery\r\nORDER BY time;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "ICMP errors", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisGridShow": true, "axisLabel": "", "axisPlacement": "auto", "barAlignment": -1, "barWidthFactor": 0.6, "drawStyle": "bars", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "showValues": false, "spanNulls": false, "stacking": { "group": "A", "mode": "normal" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 9, "w": 12, "x": 0, "y": 26 }, "id": 66, "interval": "$inter", "options": { "alertThreshold": true, "legend": { "calcs": [ "lastNotNull", "mean", "max" ], "displayMode": "list", "placement": "right", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n GREATEST(0, (avg_value - LAG(avg_value) OVER (ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"Icmp_In_Echos\"\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"IcmpInEchos\") AS avg_value\r\n FROM nstat\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time)\r\n) AS subquery\r\nORDER BY time;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "hide": true, "rawQuery": true, "rawSql": "SELECT\r\n time,\r\n GREATEST(\r\n 0,\r\n (\r\n avg_value - LAG(avg_value) OVER (\r\n ORDER BY\r\n time\r\n )\r\n ) / EXTRACT(\r\n EPOCH\r\n FROM\r\n '$__interval' :: interval\r\n )\r\n ) AS \"Icmp_Out_Echos\"\r\nFROM\r\n (\r\n SELECT\r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"IcmpOutEchos\") AS avg_value\r\n FROM\r\n nstat\r\n WHERE\r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY\r\n time_bucket('$__interval', time)\r\n ) AS subquery\r\nORDER BY\r\n time;", "refId": "B", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": false, "rawQuery": true, "rawSql": "SELECT\r\n time,\r\n GREATEST(\r\n 0,\r\n (\r\n avg_value - LAG(avg_value) OVER (\r\n ORDER BY\r\n time\r\n )\r\n ) / EXTRACT(\r\n EPOCH\r\n FROM\r\n '$__interval' :: interval\r\n )\r\n ) AS \"Icmp_Out_Echos_Reps\"\r\nFROM\r\n (\r\n SELECT\r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"IcmpOutEchoReps\") AS avg_value\r\n FROM\r\n nstat\r\n WHERE\r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY\r\n time_bucket('$__interval', time)\r\n ) AS subquery\r\nORDER BY\r\n time;", "refId": "C", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": true, "rawQuery": true, "rawSql": "SELECT\r\n time,\r\n GREATEST(\r\n 0,\r\n (\r\n avg_value - LAG(avg_value) OVER (\r\n ORDER BY\r\n time\r\n )\r\n ) / EXTRACT(\r\n EPOCH\r\n FROM\r\n '$__interval' :: interval\r\n )\r\n ) AS \"Icmp_In_Echos_Reps\"\r\nFROM\r\n (\r\n SELECT\r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"IcmpInEchoReps\") AS avg_value\r\n FROM\r\n nstat\r\n WHERE\r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY\r\n time_bucket('$__interval', time)\r\n ) AS subquery\r\nORDER BY\r\n time;", "refId": "D", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "ICMP Packets", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/in/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "gridPos": { "h": 9, "w": 12, "x": 12, "y": 26 }, "id": 78, "interval": "$inter", "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "right", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": true, "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n GREATEST(0, (avg_value - LAG(avg_value) OVER (ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"Ip_In_Discards\"\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"IpInDiscards\") AS avg_value\r\n FROM nstat\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time)\r\n) AS subquery\r\nORDER BY time;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": false, "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n GREATEST(0, (avg_value - LAG(avg_value) OVER (ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"Ip_Out_Discards\"\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"IpOutDiscards\") AS avg_value\r\n FROM nstat\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time)\r\n) AS subquery\r\nORDER BY time;", "refId": "B", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": true, "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n GREATEST(0, (avg_value - LAG(avg_value) OVER (ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"Ip_InHdr_Errors\"\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"IpInHdrErrors\") AS avg_value\r\n FROM nstat\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time)\r\n) AS subquery\r\nORDER BY time;", "refId": "C", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": false, "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n GREATEST(0, (avg_value - LAG(avg_value) OVER (ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"Ip_In_Addr_Errors\"\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"IpInAddrErrors\") AS avg_value\r\n FROM nstat\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time)\r\n) AS subquery\r\nORDER BY time;", "refId": "D", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": true, "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n GREATEST(0, (avg_value - LAG(avg_value) OVER (ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"Ip_Out_No_Routes\"\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"IpOutNoRoutes\") AS avg_value\r\n FROM nstat\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time)\r\n) AS subquery\r\nORDER BY time;", "refId": "E", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": true, "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n GREATEST(0, (avg_value - LAG(avg_value) OVER (ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"Ip_In_Unknown_Protos\"\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"IpInUnknownProtos\") AS avg_value\r\n FROM nstat\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time)\r\n) AS subquery\r\nORDER BY time;", "refId": "F", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "IPv4 errors", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/in/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 35 }, "id": 79, "interval": "$inter", "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "right", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n GREATEST(0, (avg_value - LAG(avg_value) OVER (ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"Ip6_In_Discards\"\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"Ip6InDiscards\") AS avg_value\r\n FROM nstat\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time)\r\n) AS subquery\r\nORDER BY time;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": true, "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n GREATEST(0, (avg_value - LAG(avg_value) OVER (ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"Ip6_Out_Discards\"\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"Ip6OutDiscards\") AS avg_value\r\n FROM nstat\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time)\r\n) AS subquery\r\nORDER BY time;", "refId": "B", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": true, "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n GREATEST(0, (avg_value - LAG(avg_value) OVER (ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"Ip6_InHdr_Errors\"\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"Ip6InHdrErrors\") AS avg_value\r\n FROM nstat\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time)\r\n) AS subquery\r\nORDER BY time;", "refId": "C", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": true, "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n GREATEST(0, (avg_value - LAG(avg_value) OVER (ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"Ip6_In_Addr_Errors\"\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"Ip6InAddrErrors\") AS avg_value\r\n FROM nstat\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time)\r\n) AS subquery\r\nORDER BY time;", "refId": "D", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": false, "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n GREATEST(0, (avg_value - LAG(avg_value) OVER (ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"Ip6_Out_No_Routes\"\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"Ip6OutNoRoutes\") AS avg_value\r\n FROM nstat\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time)\r\n) AS subquery\r\nORDER BY time;", "refId": "E", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "hide": true, "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n GREATEST(0, (avg_value - LAG(avg_value) OVER (ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"Ip6_In_Unknown_Protos\"\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n AVG(\"Ip6InUnknownProtos\") AS avg_value\r\n FROM nstat\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time)\r\n) AS subquery\r\nORDER BY time;", "refId": "F", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "IPv6 errors", "type": "timeseries" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 43 }, "id": 68, "panels": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "ops" }, "overrides": [] }, "gridPos": { "h": 9, "w": 24, "x": 0, "y": 44 }, "id": 69, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n host,\r\n irq,\r\n GREATEST(0, (avg_total - LAG(avg_total) OVER (PARTITION BY host, irq ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval) * 10) \r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n host,\r\n irq,\r\n AVG(total) AS avg_total\r\n FROM interrupts\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time), host, irq\r\n) AS subquery\r\nORDER BY time;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Interrupts", "transformations": [ { "id": "labelsToFields", "options": { "valueLabel": "irq" } } ], "type": "timeseries" } ], "title": "Interrups", "type": "row" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 44 }, "id": 70, "panels": [ { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "ops" }, "overrides": [] }, "gridPos": { "h": 11, "w": 8, "x": 0, "y": 45 }, "id": 71, "interval": "$inter", "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n host,\r\n GREATEST(0, (avg_context_switches - LAG(avg_context_switches) OVER (PARTITION BY host ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS \"context switches\"\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n host,\r\n AVG(context_switches) AS avg_context_switches\r\n FROM kernel\r\n WHERE \r\n host ~ '$hostname'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time), host\r\n) AS subquery\r\nORDER BY time ASC;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Context Switches", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "ops" }, "overrides": [] }, "gridPos": { "h": 11, "w": 8, "x": 8, "y": 45 }, "id": 72, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT \r\n time,\r\n host,\r\n GREATEST(0, (avg_processes_forked - LAG(avg_processes_forked) OVER (PARTITION BY host ORDER BY time)) / EXTRACT(EPOCH FROM '$__interval'::interval)) AS forks\r\nFROM (\r\n SELECT \r\n time_bucket('$__interval', time) AS time,\r\n host,\r\n AVG(processes_forked) AS avg_processes_forked\r\n FROM kernel\r\n WHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\n GROUP BY time_bucket('$__interval', time), host\r\n) AS subquery\r\nORDER BY time;", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Forks", "type": "timeseries" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic-by-name" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/max/" }, "properties": [ { "id": "color", "value": { "fixedColor": "#890F02", "mode": "fixed" } }, { "id": "custom.fillOpacity", "value": 0 } ] }, { "matcher": { "id": "byRegexp", "options": "/opened/" }, "properties": [ { "id": "color", "value": { "fixedColor": "#0A437C", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 11, "w": 8, "x": 16, "y": 45 }, "id": 73, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "rawQuery": true, "rawSql": "SELECT \r\n time_bucket('$__interval', time) AS time,\r\n host,\r\n AVG(\"file-max\") AS max\r\nFROM linux_sysctl_fs\r\nWHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\nGROUP BY time_bucket('$__interval', time), host\r\nORDER BY time;", "refId": "A", "sql": { "columns": [ { "name": "AVG", "parameters": [ { "name": "\"file-max\"", "type": "functionParameter" } ], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50, "whereJsonTree": { "children1": [ { "id": "989baa8a-cdef-4012-b456-719a5635e289", "properties": { "field": "host", "fieldSrc": "field", "operator": "equal", "value": [ "$hostname" ], "valueError": [ null ], "valueSrc": [ "value" ], "valueType": [ "text" ] }, "type": "rule" } ], "id": "8b99babb-0123-4456-b89a-b19a563294e6", "type": "group" }, "whereString": "host = '$hostname'" }, "table": "linux_sysctl_fs" }, { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "time_series", "hide": false, "rawQuery": true, "rawSql": "SELECT \r\n time_bucket('$__interval', time) AS time,\r\n host,\r\n AVG(\"file-nr\") AS opened\r\nFROM linux_sysctl_fs\r\nWHERE \r\n host ~ '^$hostname$'\r\n AND $__timeFilter(time)\r\nGROUP BY time_bucket('$__interval', time), host\r\nORDER BY time;", "refId": "B", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "File descriptors", "type": "timeseries" } ], "title": "Kernel", "type": "row" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 45 }, "id": 74, "panels": [], "title": "Process", "type": "row" }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "footer": { "reducers": [] }, "inspect": false }, "decimals": 2, "displayName": "", "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byName", "options": "time" }, "properties": [ { "id": "displayName", "value": "Time" }, { "id": "unit", "value": "dateTimeAsIso" }, { "id": "custom.align", "value": "left" } ] }, { "matcher": { "id": "byName", "options": "pid" }, "properties": [ { "id": "displayName", "value": "Pid" }, { "id": "unit", "value": "none" }, { "id": "custom.cellOptions", "value": { "type": "color-text" } }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "memory_vms" }, "properties": [ { "id": "displayName", "value": "VMS" }, { "id": "unit", "value": "bytes" }, { "id": "decimals", "value": 2 }, { "id": "custom.cellOptions", "value": { "type": "color-text" } }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "memory_rss" }, "properties": [ { "id": "displayName", "value": "RSS" }, { "id": "unit", "value": "bytes" }, { "id": "decimals", "value": 2 }, { "id": "custom.cellOptions", "value": { "type": "color-text" } }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "memory_swap" }, "properties": [ { "id": "displayName", "value": "Swap" }, { "id": "unit", "value": "bytes" }, { "id": "decimals", "value": 1 }, { "id": "custom.cellOptions", "value": { "type": "color-text" } }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "cpu_usage" }, "properties": [ { "id": "displayName", "value": "CPU Usage" }, { "id": "unit", "value": "percent" }, { "id": "decimals", "value": 2 }, { "id": "custom.cellOptions", "value": { "type": "color-text" } }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "cpu_time_user" }, "properties": [ { "id": "displayName", "value": "CPU Time User" }, { "id": "unit", "value": "s" }, { "id": "decimals", "value": 2 }, { "id": "custom.cellOptions", "value": { "type": "color-text" } }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "pattern" }, "properties": [ { "id": "displayName", "value": "Pattern" }, { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "process_name" }, "properties": [ { "id": "displayName", "value": "Process Name" }, { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "host" }, "properties": [ { "id": "displayName", "value": "Host" }, { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] } ] }, "gridPos": { "h": 20, "w": 14, "x": 0, "y": 46 }, "id": 80, "interval": "$inter", "options": { "cellHeight": "sm", "showHeader": true }, "pluginVersion": "12.2.1", "targets": [ { "dataset": "telegraf_tsdb_utf8", "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\r\n \"time\",\r\n host,\r\n pid,\r\n memory_vms,\r\n memory_rss,\r\n memory_swap,\r\n cpu_usage,\r\n cpu_time_user,\r\n pattern,\r\n process_name\r\n \r\nFROM\r\n procstat\r\nWHERE\r\n host = '$hostname'\r\nORDER BY\r\n \"time\" ASC\r\nLIMIT\r\n 50", "refId": "A", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } ], "title": "Process", "transformations": [ { "id": "seriesToColumns", "options": { "reducers": [] } } ], "type": "table" } ], "schemaVersion": 42, "tags": [], "templating": { "list": [ { "current": {}, "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "definition": "SELECT DISTINCT host FROM system;", "label": "hostname", "name": "hostname", "options": [], "query": "SELECT DISTINCT host FROM system;", "refresh": 1, "regex": "", "type": "query" }, { "auto": true, "auto_count": 100, "auto_min": "1s", "current": { "text": "$__auto", "value": "$__auto" }, "label": "Interval", "name": "inter", "options": [ { "selected": false, "text": "1s", "value": "1s" }, { "selected": false, "text": "5s", "value": "5s" }, { "selected": false, "text": "10s", "value": "10s" }, { "selected": false, "text": "15s", "value": "15s" }, { "selected": false, "text": "30s", "value": "30s" }, { "selected": false, "text": "1m", "value": "1m" }, { "selected": false, "text": "10m", "value": "10m" }, { "selected": false, "text": "30m", "value": "30m" }, { "selected": false, "text": "1h", "value": "1h" }, { "selected": false, "text": "6h", "value": "6h" }, { "selected": false, "text": "12h", "value": "12h" }, { "selected": false, "text": "1d", "value": "1d" }, { "selected": false, "text": "7d", "value": "7d" }, { "selected": false, "text": "14d", "value": "14d" }, { "selected": false, "text": "30d", "value": "30d" }, { "selected": false, "text": "60d", "value": "60d" }, { "selected": false, "text": "90d", "value": "90d" } ], "query": "1s,5s,10s,15s,30s,1m,10m,30m,1h,6h,12h,1d,7d,14d,30d,60d,90d", "refresh": 2, "type": "interval" }, { "current": {}, "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "definition": "select distinct cpu from cpu where host ~ '$hostname';\n\n", "includeAll": true, "label": "CPU", "name": "dcpu", "options": [], "query": "select distinct cpu from cpu where host ~ '$hostname';\n\n", "refresh": 1, "regex": "", "type": "query" }, { "current": {}, "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "definition": "select distinct device from disk;", "includeAll": false, "label": "disk", "multi": true, "name": "disk", "options": [], "query": "select distinct device from disk;", "refresh": 1, "regex": "", "type": "query" }, { "current": {}, "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "definition": "SELECT DISTINCT path FROM disk;", "description": "", "includeAll": true, "label": "dpath", "name": "dpath", "options": [], "query": "SELECT DISTINCT path FROM disk;", "refresh": 1, "regex": "", "type": "query" }, { "current": {}, "datasource": { "type": "grafana-postgresql-datasource", "uid": "${DS_GRAFANA-POSTGRESQL-DATASOURCE}" }, "definition": "SELECT DISTINCT interface FROM net where host ~ '$hostname';", "description": "interface", "name": "interface", "options": [], "query": "SELECT DISTINCT interface FROM net where host ~ '$hostname';", "refresh": 1, "regex": "", "type": "query" } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": {}, "timezone": "America/Toronto", "title": "LXC Container Data - TimeScale Metrics", "uid": "fb14dc7b-0747-47e9-84dc-b4c8b31417152", "version": 94, "weekStart": "", "id": null, "gnetId": 24344, "description": "Proxmox LXC Stats" }