diff --git a/files/grafana/node/node-alert.json b/files/grafana/node/node-alert.json index 37fa1f909..e6b6d6dee 100644 --- a/files/grafana/node/node-alert.json +++ b/files/grafana/node/node-alert.json @@ -1,2777 +1,2928 @@ { - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - } - ] + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "author": "Ruohang Feng (rh@vonng.com)", + "description": "Node key metrics and alerts", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "license": "AGPLv3 @ https://pigsty.io/docs/about/license", + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "Pigsty", + "NODE" + ], + "targetBlank": false, + "title": "NODE", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 16, + "panels": [], + "title": "Overview", + "type": "row" }, - "author": "Ruohang Feng (rh@vonng.com)", - "description": "Node key metrics and alerts", - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": null, - "license": "AGPLv3 @ https://pigsty.io/docs/about/license", - "links": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "links": [], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "OK", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#fcdb72", + "value": 1 + }, + { + "color": "#f5a673", + "value": 4 + }, + { + "color": "#b783af", + "value": 8 + }, + { + "color": "text", + "value": 16 + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "A" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "targetBlank": true, + "title": "Pigsty Alertmanager", + "url": "http://a.pigsty" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "PGSQL Alert", + "url": "/d/pgsql-alert?${__url_time_range}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 2, + "x": 0, + "y": 1 + }, + "id": 87, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count(ALERTS{alertstate=\"firing\", job=\"node\"}) or on() vector(0)", + "interval": "", + "legendFormat": "Firing Alert", + "range": true, + "refId": "A" + }, { - "asDropdown": true, - "icon": "external link", - "includeVars": true, - "keepTime": true, - "tags": [ - "Pigsty", - "NODE" - ], - "targetBlank": false, - "title": "NODE", - "tooltip": "", - "type": "dashboards", - "url": "" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count(ALERTS{alertstate=\"pending\", job=\"node\"})", + "hide": true, + "interval": "", + "legendFormat": "Pending Alert", + "range": true, + "refId": "B" } - ], - "liveNow": false, - "panels": [ + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "links": [ + { + "targetBlank": true, + "title": "AlertInfo ${__field.labels.alertname}", + "url": "http://a.pigsty/#/alerts?filter=%7Balertname%3D%22${__field.labels.alertname}%22%7D" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "OK", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#fcdb72", + "value": 1 + }, + { + "color": "#f5a673", + "value": 2 + }, + { + "color": "#b783af", + "value": 4 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 4, + "x": 2, + "y": 1 + }, + "id": 86, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count(ALERTS{alertstate=\"firing\", job=\"node\"}) by (alertname, severity)", + "interval": "", + "legendFormat": "{{ alertname }}", + "range": true, + "refId": "A" + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "hidden", + "axisSoftMax": 1.2, + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 98, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineWidth": 0, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" }, - "id": 16, - "panels": [], - "title": "Overview", - "type": "row" + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [ + { + "targetBlank": true, + "title": "AlertInfo ${__field.labels.alertname} on Cluster ${__field.labels.cls}", + "url": "http://a.pigsty/#/alerts?filter=%7Bcls%3D%22${__field.labels.cls}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" + }, + { + "targetBlank": true, + "title": "Silence ${__field.labels.alertname} on Cluster ${__field.labels.cls}", + "url": "http://a.pigsty/#/silences/new?filter=%7Bcls%3D%22${__field.labels.cls}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" + }, + { + "title": "Node Cluster for ${__field.labels.cls} : Alerts", + "url": "/d/node-cluster?var-cls=${__field.labels.cls}&viewPanel=227&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + } + ] + }, + "unit": "none" }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "A" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 66 + } + ] + }, + { + "matcher": { + "id": "byType", + "options": "time" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "auto" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 18, + "x": 6, + "y": 1 + }, + "id": 34, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum without (ins,ip,instance,datname) (ALERTS{alertstate=\"firing\", job=\"node\"})", + "interval": "", + "legendFormat": "[{{ severity }}] {{alertname}} @ {{ cls }}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "0", + "hide": true, + "interval": "", + "legendFormat": "Alert", + "refId": "C" + } + ], + "title": "Firing Alerts", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "links": [], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "OK", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#fcdb72", - "value": 1 - }, - { - "color": "#f5a673", - "value": 4 - }, - { - "color": "#b783af", - "value": 8 - }, - { - "color": "text", - "value": 16 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byFrameRefID", - "options": "A" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "targetBlank": true, - "title": "Pigsty Alertmanager", - "url": "http://a.pigsty" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "B" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "PGSQL Alert", - "url": "/d/pgsql-alert?${__url_time_range}" - } - ] - } - ] - } + "inspect": false + }, + "decimals": 0, + "links": [], + "mappings": [], + "max": -4, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#e3e3e3e0", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Alert" + }, + "properties": [ + { + "id": "custom.width" + }, + { + "id": "links", + "value": [ + { + "targetBlank": true, + "title": "AlertInfo for ${__field.labels.alertname} on Cluster ${__field.labels.cls}", + "url": "http://a.pigsty/#/alerts?filter=%7Bcls%3D%22${__data.fields.Cluster}%22%2C%20alertname%3D%22${__data.fields.Alert}%22%7D" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "State" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "firing": { + "color": "light-red", + "index": 0, + "text": "FiringšŸ”„" + }, + "pending": { + "color": "light-orange", + "index": 1, + "text": "Pendā°" + } + }, + "type": "value" + } ] + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Level" }, - "gridPos": { - "h": 5, - "w": 2, - "x": 0, - "y": 1 + "properties": [ + { + "id": "custom.width", + "value": 60 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "red", + "index": 0, + "text": "P0" + }, + "1": { + "color": "#f5a673", + "index": 1, + "text": "P1" + }, + "2": { + "color": "#fcdb72", + "index": 2, + "text": "P2" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Severity" }, - "id": 87, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true + "properties": [ + { + "id": "custom.width", + "value": 110 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "CRIT": { + "color": "red", + "index": 0, + "text": "Critical āš”ļø" + }, + "INFO": { + "color": "light-yellow", + "index": 2, + "text": "Info ā„¹ļø" + }, + "WARN": { + "color": "super-light-orange", + "index": 1, + "text": "Warning āš ļø" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Category" }, - "pluginVersion": "11.1.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "count(ALERTS{alertstate=\"firing\", job=\"node\"}) or on() vector(0)", - "interval": "", - "legendFormat": "Firing Alert", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "count(ALERTS{alertstate=\"pending\", job=\"node\"})", - "hide": true, - "interval": "", - "legendFormat": "Pending Alert", - "range": true, - "refId": "B" + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "infra": { + "color": "#f5a673", + "index": 2, + "text": "INFRA" + }, + "node": { + "color": "#346f36cc", + "index": 1, + "text": "NODE" + }, + "pgsql": { + "color": "light-blue", + "index": 0, + "text": "PGSQL" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "color-background" } - ], - "type": "stat" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Ins" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Active" + }, + "properties": [ + { + "id": "custom.width", + "value": 66 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Cluster" + }, + "properties": [ + { + "id": "custom.width" + }, + { + "id": "links", + "value": [ + { + "title": "PGSQL Cluster for ${cls}", + "url": "/d/pgsql-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Instance" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "PGSQL Instance for ${__data.fields.Instance}", + "url": "/d/pgsql-instance?var-ins=${__data.fields.Instance}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Database" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "links", + "value": [ + { + "title": "PGSQL Database for ${__data.fields.Database} on ${__data.fields.Instance}", + "url": "/d/pgsql-database?var-ins=${__data.fields.Instance}&var-datname=${__data.fields.Database}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Silence" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "targetBlank": true, + "title": "Silence ${__data.fields.Alert} on Cluster ${__data.fields.Cluster}", + "url": "http://a.pigsty/#/silences/new?filter=%7Bcls%3D%22${__data.fields.Cluster}%22%2C%20alertname%3D%22${__data.fields.Alert}%22%7D" + } + ] + }, + { + "id": "mappings", + "value": [ + { + "options": { + "1": { + "index": 0, + "text": "silence" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.width", + "value": 70 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Agent" + }, + "properties": [ + { + "id": "custom.width", + "value": 140 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "IP" + }, + "properties": [ + { + "id": "custom.width", + "value": 110 + }, + { + "id": "links", + "value": [ + { + "title": "PGSQL Node: ${__data.fields.IP}", + "url": "/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ZFS_Pool" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.IP}", + "url": "/d/zfs-overview/node-zfs?var-id=${__data.fields.IP}&${__url_time_range}&var-pool=${__data.fields.ZFS_Pool}" + } + ] + }, + { + "id": "custom.width", + "value": 100 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ZFS_Dataset" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "", + "url": "/d/zfs-overview/node-zfs?var-id=${__data.fields.IP}&${__url_time_range}&var-pool=${__data.fields.ZFS_Pool}&var-dataset=${__data.fields.ZFS_Dataset}\r\n" + } + ] + }, + { + "id": "custom.minWidth", + "value": 120 + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 6 + }, + "id": 36, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false }, + "showHeader": true, + "sortBy": [ + { + "desc": false, + "displayName": "Level" + } + ] + }, + "pluginVersion": "11.5.2", + "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "ALERTS{job=\"node\"}", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Active Alerts", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Value": false, + "__name__": true, + "job": true, + "metric_type": true, + "type": true }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "links": [ - { - "targetBlank": true, - "title": "AlertInfo ${__field.labels.alertname}", - "url": "http://a.pigsty/#/alerts?filter=%7Balertname%3D%22${__field.labels.alertname}%22%7D" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "OK", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#fcdb72", - "value": 1 - }, - { - "color": "#f5a673", - "value": 2 - }, - { - "color": "#b783af", - "value": 4 - } - ] - }, - "unit": "none" - }, - "overrides": [] + "indexByName": { + "Time": 11, + "Value": 10, + "__name__": 13, + "alertname": 0, + "alertstate": 1, + "category": 4, + "cls": 5, + "datname": 8, + "ins": 6, + "instance": 9, + "ip": 7, + "job": 12, + "level": 2, + "severity": 3 }, - "gridPos": { - "h": 5, - "w": 4, - "x": 2, - "y": 1 + "renameByName": { + "Value": "Silence", + "Value #A": "Silence", + "__name__": "", + "alertname": "Alert", + "alertstate": "State", + "category": "Category", + "cls": "Cluster", + "datname": "Database", + "ins": "Instance", + "instance": "Agent", + "ip": "IP", + "job": "", + "level": "Level", + "metric_type": "ZFS_Metric_Type", + "name": "ZFS_Dataset", + "pool": "ZFS_Pool", + "severity": "Severity", + "type": "ZFS_Type" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMin": 0, + "barAlignment": 0, + "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", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" }, - "id": 86, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false + "thresholdsStyle": { + "mode": "area" + } + }, + "decimals": 1, + "links": [ + { + "title": "PGSQL Node : CPU for ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=172&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "green", + "value": 0.1 + }, + { + "color": "yellow", + "value": 0.3 + }, + { + "color": "orange", + "value": 0.5 + }, + { + "color": "red", + "value": 0.7 + }, + { + "color": "purple", + "value": 0.9 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 14 + }, + "id": 18, + "options": { + "legend": { + "calcs": [ + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:cpu_usage_1m", + "interval": "", + "legendFormat": "{{ ip }}", + "refId": "A" + } + ], + "title": "NodeCpuHigh", + "type": "timeseries" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 22 + }, + "id": 82, + "panels": [ + { + "datasource": { + "type": "loki", + "uid": "ds-loki" + }, + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 24 + }, + "id": 84, + "maxDataPoints": 100, + "options": { + "dedupStrategy": "none", + "enableLogDetails": false, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": true, + "showTime": true, + "sortOrder": "Descending", + "wrapLogMessage": false + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "ds-loki" + }, + "expr": "{job=\"node\"}", + "refId": "A" + } + ], + "title": "Node Logs", + "type": "logs" + } + ], + "title": "Node Logs", + "type": "row" + }, + { + "collapsed": true, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 23 + }, + "id": 53, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Standard Load (divide by cpu count) > 100%", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - "showPercentChange": false, - "text": { - "titleSize": 12 + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.1.3", - "targets": [ + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "decimals": 1, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "count(ALERTS{alertstate=\"firing\", job=\"node\"}) by (alertname, severity)", - "interval": "", - "legendFormat": "{{ alertname }}", - "range": true, - "refId": "A" + "title": "PGSQL Node: Load for ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=173&${__url_time_range}" } - ], - "type": "stat" - }, - { - "datasource": { + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "green", + "value": 0.1 + }, + { + "color": "yellow", + "value": 0.3 + }, + { + "color": "orange", + "value": 0.5 + }, + { + "color": "red", + "value": 0.7 + }, + { + "color": "purple", + "value": 0.9 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 35 + }, + "id": 11, + "options": { + "legend": { + "calcs": [ + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { "type": "prometheus", "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "hidden", - "axisSoftMax": 1.2, - "axisSoftMin": 0, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 98, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepBefore", - "lineWidth": 0, - "pointSize": 1, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "links": [ - { - "targetBlank": true, - "title": "AlertInfo ${__field.labels.alertname} on Cluster ${__field.labels.cls}", - "url": "http://a.pigsty/#/alerts?filter=%7Bcls%3D%22${__field.labels.cls}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" - }, - { - "targetBlank": true, - "title": "Silence ${__field.labels.alertname} on Cluster ${__field.labels.cls}", - "url": "http://a.pigsty/#/silences/new?filter=%7Bcls%3D%22${__field.labels.cls}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" - }, - { - "title": "Node Cluster for ${__field.labels.cls} : Alerts", - "url": "/d/node-cluster?var-cls=${__field.labels.cls}&viewPanel=227&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - } - ] - }, - "unit": "none" + }, + "exemplar": false, + "expr": "node:ins:stdload1", + "interval": "", + "legendFormat": "{{ ip }}", + "refId": "A" + } + ], + "title": "NodeLoadHigh", + "type": "timeseries" + } + ], + "title": "Node: Schedule", + "type": "row" + }, + { + "collapsed": true, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 24 + }, + "id": 85, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Available memory < 10%", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - "overrides": [ - { - "matcher": { - "id": "byFrameRefID", - "options": "A" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 66 - } - ] - }, - { - "matcher": { - "id": "byType", - "options": "time" - }, - "properties": [ - { - "id": "custom.axisPlacement", - "value": "auto" - } - ] - } + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "decimals": 1, + "links": [ + { + "title": "PGSQL Node: Memory for ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=40&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "purple" + }, + { + "color": "red", + "value": 0.1 + }, + { + "color": "orange", + "value": 0.15 + }, + { + "color": "green", + "value": 0.2 + } ] + }, + "unit": "percentunit" }, - "gridPos": { - "h": 5, - "w": 18, - "x": 6, - "y": 1 + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 44 + }, + "id": 56, + "options": { + "legend": { + "calcs": [ + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true }, - "id": 34, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:mem_avail", + "interval": "", + "legendFormat": "{{ ip }}", + "range": true, + "refId": "A" + } + ], + "title": "NodeOutOfMem", + "type": "timeseries" + } + ], + "title": "Node: Memory", + "type": "row" + }, + { + "collapsed": true, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 25 + }, + "id": 55, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Available memory < 10%", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum without (ins,ip,instance,datname) (ALERTS{alertstate=\"firing\", job=\"node\"})", - "interval": "", - "legendFormat": "[{{ severity }}] {{alertname}} @ {{ cls }}", - "range": true, - "refId": "A" + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "0", - "hide": true, - "interval": "", - "legendFormat": "Alert", - "refId": "C" + "title": "PGSQL Node: Swap for ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=33&${__url_time_range}" } - ], - "title": "Firing Alerts", - "type": "timeseries" - }, - { - "datasource": { + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "orange", + "value": 0.01 + }, + { + "color": "red", + "value": 0.05 + }, + { + "color": "purple", + "value": 0.1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 53 + }, + "id": 57, + "options": { + "legend": { + "calcs": [ + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { "type": "prometheus", "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "center", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "decimals": 0, - "links": [], - "mappings": [], - "max": -4, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#e3e3e3e0", - "value": null - } - ] - }, - "unit": "none" + }, + "exemplar": false, + "expr": "node:ins:swap_usage", + "interval": "", + "legendFormat": "{{ ip }}", + "refId": "A" + } + ], + "title": "NodeMemSwapped", + "type": "timeseries" + } + ], + "title": "Node: Swap", + "type": "row" + }, + { + "collapsed": true, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 26 + }, + "id": 27, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Disk read/write avg latency > 32ms", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Alert" - }, - "properties": [ - { - "id": "custom.width" - }, - { - "id": "links", - "value": [ - { - "targetBlank": true, - "title": "AlertInfo for ${__field.labels.alertname} on Cluster ${__field.labels.cls}", - "url": "http://a.pigsty/#/alerts?filter=%7Bcls%3D%22${__data.fields.Cluster}%22%2C%20alertname%3D%22${__data.fields.Alert}%22%7D" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "State" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "firing": { - "color": "light-red", - "index": 0, - "text": "Firing\ud83d\udd25" - }, - "pending": { - "color": "light-orange", - "index": 1, - "text": "Pend\u23f0" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "color-background" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Level" - }, - "properties": [ - { - "id": "custom.width", - "value": 60 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "red", - "index": 0, - "text": "P0" - }, - "1": { - "color": "#f5a673", - "index": 1, - "text": "P1" - }, - "2": { - "color": "#fcdb72", - "index": 2, - "text": "P2" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "color-background" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Severity" - }, - "properties": [ - { - "id": "custom.width", - "value": 110 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "CRIT": { - "color": "red", - "index": 0, - "text": "Critical \u26a1\ufe0f" - }, - "INFO": { - "color": "light-yellow", - "index": 2, - "text": "Info \u2139\ufe0f" - }, - "WARN": { - "color": "super-light-orange", - "index": 1, - "text": "Warning \u26a0\ufe0f" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "color-background" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Category" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "infra": { - "color": "#f5a673", - "index": 2, - "text": "INFRA" - }, - "node": { - "color": "#346f36cc", - "index": 1, - "text": "NODE" - }, - "pgsql": { - "color": "light-blue", - "index": 0, - "text": "PGSQL" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "color-background" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Ins" - }, - "properties": [ - { - "id": "custom.width", - "value": 100 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Active" - }, - "properties": [ - { - "id": "custom.width", - "value": 66 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Cluster" - }, - "properties": [ - { - "id": "custom.width" - }, - { - "id": "links", - "value": [ - { - "title": "PGSQL Cluster for ${cls}", - "url": "/d/pgsql-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Instance" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "PGSQL Instance for ${__data.fields.Instance}", - "url": "/d/pgsql-instance?var-ins=${__data.fields.Instance}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Database" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - }, - { - "id": "links", - "value": [ - { - "title": "PGSQL Database for ${__data.fields.Database} on ${__data.fields.Instance}", - "url": "/d/pgsql-database?var-ins=${__data.fields.Instance}&var-datname=${__data.fields.Database}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Silence" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "targetBlank": true, - "title": "Silence ${__data.fields.Alert} on Cluster ${__data.fields.Cluster}", - "url": "http://a.pigsty/#/silences/new?filter=%7Bcls%3D%22${__data.fields.Cluster}%22%2C%20alertname%3D%22${__data.fields.Alert}%22%7D" - } - ] - }, - { - "id": "mappings", - "value": [ - { - "options": { - "1": { - "index": 0, - "text": "silence" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.width", - "value": 70 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Agent" - }, - "properties": [ - { - "id": "custom.width", - "value": 140 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "IP" - }, - "properties": [ - { - "id": "custom.width", - "value": 110 - }, - { - "id": "links", - "value": [ - { - "title": "PGSQL Node: ${__data.fields.IP}", - "url": "/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}" - } - ] - } - ] - } + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ + { + "title": "PGSQL Node: Disk Latency for ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=29&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "green", + "value": 0.001 + }, + { + "color": "orange", + "value": 0.008 + }, + { + "color": "red", + "value": 0.032 + }, + { + "color": "purple", + "value": 0.128 + }, + { + "color": "text", + "value": 1 + } ] + }, + "unit": "s" }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 6 + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 62 + }, + "id": 60, + "options": { + "legend": { + "calcs": [ + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true }, - "id": 36, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "max by (ip,device) (node:dev:disk_write_rt_1m > node:dev:disk_read_rt_1m or node:dev:disk_read_rt_1m)", + "interval": "", + "legendFormat": "{{ ip}}-{{ device }}", + "refId": "A" + } + ], + "title": "NodeDiskSlow", + "type": "timeseries" + } + ], + "title": "NODE: Disk", + "type": "row" + }, + { + "collapsed": true, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 27 + }, + "id": 29, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - "showHeader": true, - "sortBy": [ - { - "desc": false, - "displayName": "Level" - } - ] - }, - "pluginVersion": "11.1.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "ALERTS{job=\"node\"}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" } - ], - "title": "Active Alerts", - "transformations": [ + }, + "links": [ { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Value": false, - "__name__": true, - "job": true - }, - "indexByName": { - "Time": 11, - "Value": 10, - "__name__": 13, - "alertname": 0, - "alertstate": 1, - "category": 4, - "cls": 5, - "datname": 8, - "ins": 6, - "instance": 9, - "ip": 7, - "job": 12, - "level": 2, - "severity": 3 - }, - "renameByName": { - "Value": "Silence", - "Value #A": "Silence", - "alertname": "Alert", - "alertstate": "State", - "category": "Category", - "cls": "Cluster", - "datname": "Database", - "ins": "Instance", - "instance": "Agent", - "ip": "IP", - "job": "", - "level": "Level", - "severity": "Severity" - } - } + "title": "PGSQL Node: Space Usage for ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=199&${__url_time_range}" } - ], - "type": "table" - }, - { - "datasource": { + ], + "mappings": [], + "max": 3, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "green", + "value": 0.1 + }, + { + "color": "yellow", + "value": 0.8 + }, + { + "color": "orange", + "value": 0.9 + }, + { + "color": "red", + "value": 0.95 + }, + { + "color": "purple", + "value": 0.99 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 71 + }, + "id": 23, + "options": { + "legend": { + "calcs": [ + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { "type": "prometheus", "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "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", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "decimals": 1, - "links": [ - { - "title": "PGSQL Node : CPU for ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=172&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "green", - "value": 0.1 - }, - { - "color": "yellow", - "value": 0.3 - }, - { - "color": "orange", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "purple", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" + }, + "exemplar": false, + "expr": "node:fs:space_usage", + "interval": "", + "legendFormat": "{{ ip }}:{{ mountpoint }}", + "refId": "A" + } + ], + "title": "NodeFsFull", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 14 - }, - "id": 18, - "options": { - "legend": { - "calcs": [ - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" }, - "tooltip": { - "mode": "multi", - "sort": "none" + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" } - }, - "targets": [ + }, + "decimals": 0, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:cpu_usage_1m", - "interval": "", - "legendFormat": "{{ ip }}", - "refId": "A" + "title": "PGSQL Node: Space Exhaust for ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=51&${__url_time_range}" } - ], - "thresholds": [ + ], + "mappings": [ { - "colorMode": "critical", - "op": "gt", - "value": 0.7, - "visible": true + "options": { + "-1": { + "index": 1, + "text": "+Inf" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" } - ], - "title": "NodeCpuHigh", - "type": "timeseries" + ], + "max": 3200000, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "text" + }, + { + "color": "purple", + "value": 3600 + }, + { + "color": "orange", + "value": 86400 + }, + { + "color": "yellow", + "value": 604800 + }, + { + "color": "#346f36cc", + "value": 126230400 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 79 + }, + "id": 78, + "options": { + "legend": { + "calcs": [ + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:fs:space_exhaust{}", + "interval": "", + "legendFormat": "{{ ip }}:{{ mountpoint }}", + "refId": "A" + } + ], + "title": "NodeFsExhaust", + "type": "timeseries" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 22 - }, - "id": 82, - "panels": [ + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ { - "datasource": { - "type": "loki", - "uid": "ds-loki" - }, - "gridPos": { - "h": 10, - "w": 24, - "x": 0, - "y": 24 - }, - "id": 84, - "maxDataPoints": 100, - "options": { - "dedupStrategy": "none", - "enableLogDetails": false, - "prettifyLogMessage": false, - "showCommonLabels": false, - "showLabels": true, - "showTime": true, - "sortOrder": "Descending", - "wrapLogMessage": false - }, - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "ds-loki" - }, - "expr": "{job=\"node\"}", - "refId": "A" - } - ], - "title": "Node Logs", - "type": "logs" + "title": "PGSQL Node: iNode Usage for ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=174&${__url_time_range}" } - ], - "title": "Node Logs", - "type": "row" - }, - { - "collapsed": true, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + ], + "mappings": [], + "max": 3, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "green", + "value": 0.1 + }, + { + "color": "yellow", + "value": 0.8 + }, + { + "color": "orange", + "value": 0.9 + }, + { + "color": "red", + "value": 0.95 + }, + { + "color": "purple", + "value": 0.99 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 23 + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 86 + }, + "id": 58, + "options": { + "legend": { + "calcs": [ + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true }, - "id": 53, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Standard Load (divide by cpu count) > 100%", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "decimals": 1, - "links": [ - { - "title": "PGSQL Node: Load for ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=173&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "green", - "value": 0.1 - }, - { - "color": "yellow", - "value": 0.3 - }, - { - "color": "orange", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "purple", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 35 - }, - "id": 11, - "options": { - "legend": { - "calcs": [ - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:stdload1", - "interval": "", - "legendFormat": "{{ ip }}", - "refId": "A" - } - ], - "thresholds": [ - { - "colorMode": "critical", - "op": "gt", - "value": 1, - "visible": true - } - ], - "title": "NodeLoadHigh", - "type": "timeseries" - } - ], - "title": "Node: Schedule", - "type": "row" + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "exemplar": false, + "expr": "node:fs:inode_usage", + "interval": "", + "legendFormat": "{{ ins }}:{{ mountpoint }}", + "refId": "A" + } + ], + "title": "NodeFsFilesFull", + "type": "timeseries" }, { - "collapsed": true, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 24 - }, - "id": 85, - "panels": [ + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Available memory < 10%", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "decimals": 1, - "links": [ - { - "title": "PGSQL Node: Memory for ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=40&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "purple" - }, - { - "color": "red", - "value": 0.1 - }, - { - "color": "orange", - "value": 0.15 - }, - { - "color": "green", - "value": 0.2 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 44 - }, - "id": 56, - "options": { - "legend": { - "calcs": [ - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node:ins:mem_avail", - "interval": "", - "legendFormat": "{{ ip }}", - "range": true, - "refId": "A" - } - ], - "thresholds": [ - { - "colorMode": "critical", - "op": "lt", - "value": 0.1, - "visible": true - } - ], - "title": "NodeOutOfMem", - "type": "timeseries" + "title": "PGSQL Node: FD for ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=58&${__url_time_range}" } - ], - "title": "Node: Memory", - "type": "row" - }, - { - "collapsed": true, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + ], + "mappings": [], + "max": 3, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "green", + "value": 0.1 + }, + { + "color": "orange", + "value": 0.8 + }, + { + "color": "orange", + "value": 0.9 + }, + { + "color": "red", + "value": 0.95 + }, + { + "color": "purple", + "value": 0.99 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 25 + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 93 + }, + "id": 59, + "options": { + "legend": { + "calcs": [ + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true }, - "id": 55, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Available memory < 10%", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "links": [ - { - "title": "PGSQL Node: Swap for ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=33&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "orange", - "value": 0.01 - }, - { - "color": "red", - "value": 0.05 - }, - { - "color": "purple", - "value": 0.1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 53 - }, - "id": 57, - "options": { - "legend": { - "calcs": [ - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:swap_usage", - "interval": "", - "legendFormat": "{{ ip }}", - "refId": "A" - } - ], - "thresholds": [ - { - "colorMode": "critical", - "op": "gt", - "value": 0.01, - "visible": true - } - ], - "title": "NodeMemSwapped", - "type": "timeseries" - } - ], - "title": "Node: Swap", - "type": "row" - }, - { - "collapsed": true, - "datasource": { + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { "type": "prometheus", "uid": "ds-prometheus" - }, - "description": "", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 26 - }, - "id": 27, - "panels": [ + }, + "exemplar": false, + "expr": "node:ins:fd_usage", + "interval": "", + "legendFormat": "{{ ip }}", + "refId": "A" + } + ], + "title": "NodeFdFull", + "type": "timeseries" + } + ], + "title": "NODE: Filesystem", + "type": "row" + }, + { + "collapsed": true, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 28 + }, + "id": 62, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "TCP Error Rate > 1 / s", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "decimals": 1, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Disk read/write avg latency > 32ms", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "links": [ - { - "title": "PGSQL Node: Disk Latency for ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=29&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "green", - "value": 0.001 - }, - { - "color": "orange", - "value": 0.008 - }, - { - "color": "red", - "value": 0.032 - }, - { - "color": "purple", - "value": 0.128 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 62 - }, - "id": 60, - "options": { - "legend": { - "calcs": [ - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "max by (ip,device) (node:dev:disk_write_rt_1m > node:dev:disk_read_rt_1m or node:dev:disk_read_rt_1m)", - "interval": "", - "legendFormat": "{{ ip}}-{{ device }}", - "refId": "A" - } - ], - "thresholds": [ - { - "colorMode": "critical", - "op": "gt", - "value": 0.032, - "visible": true - } - ], - "title": "NodeDiskSlow", - "type": "timeseries" + "title": "PGSQL Node: TCP Errors for ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=55&${__url_time_range}" } - ], - "title": "NODE: Disk", - "type": "row" - }, - { - "collapsed": true, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + ], + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "orange", + "value": 1 + }, + { + "color": "red", + "value": 2 + } + ] + }, + "unit": "cps" }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 27 + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 101 + }, + "id": 71, + "options": { + "legend": { + "calcs": [ + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true }, - "id": 29, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "links": [ - { - "title": "PGSQL Node: Space Usage for ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=199&${__url_time_range}" - } - ], - "mappings": [], - "max": 3, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "green", - "value": 0.1 - }, - { - "color": "yellow", - "value": 0.8 - }, - { - "color": "orange", - "value": 0.9 - }, - { - "color": "red", - "value": 0.95 - }, - { - "color": "purple", - "value": 0.99 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 71 - }, - "id": 23, - "options": { - "legend": { - "calcs": [ - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:fs:space_usage", - "interval": "", - "legendFormat": "{{ ip }}:{{ mountpoint }}", - "refId": "A" - } - ], - "thresholds": [ - { - "colorMode": "critical", - "op": "gt", - "value": 0.9, - "visible": true - } - ], - "title": "NodeFsFull", - "type": "timeseries" + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "rate(node:ins:tcp_error[1m])", + "interval": "", + "legendFormat": "{{ ip }}", + "refId": "A" + } + ], + "title": "NodeTcpErrHigh", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "decimals": 0, - "links": [ - { - "title": "PGSQL Node: Space Exhaust for ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=51&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "-1": { - "index": 1, - "text": "+Inf" - } - }, - "type": "value" - }, - { - "options": { - "match": "null+nan", - "result": { - "index": 0, - "text": "N/A" - } - }, - "type": "special" - } - ], - "max": 3200000, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text" - }, - { - "color": "purple", - "value": 3600 - }, - { - "color": "orange", - "value": 86400 - }, - { - "color": "yellow", - "value": 604800 - }, - { - "color": "#346f36cc", - "value": 126230400 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 79 - }, - "id": 78, - "options": { - "legend": { - "calcs": [ - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:fs:space_exhaust{}", - "interval": "", - "legendFormat": "{{ ip }}:{{ mountpoint }}", - "refId": "A" - } - ], - "title": "NodeFsExhaust", - "type": "timeseries" + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 10, + "type": "log" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "links": [ - { - "title": "PGSQL Node: iNode Usage for ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=174&${__url_time_range}" - } - ], - "mappings": [], - "max": 3, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "green", - "value": 0.1 - }, - { - "color": "yellow", - "value": 0.8 - }, - { - "color": "orange", - "value": 0.9 - }, - { - "color": "red", - "value": 0.95 - }, - { - "color": "purple", - "value": 0.99 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 86 - }, - "id": 58, - "options": { - "legend": { - "calcs": [ - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "targets": [ - { - "exemplar": false, - "expr": "node:fs:inode_usage", - "interval": "", - "legendFormat": "{{ ins }}:{{ mountpoint }}", - "refId": "A" - } - ], - "thresholds": [ - { - "colorMode": "critical", - "op": "gt", - "value": 0.9, - "visible": true - } - ], - "title": "NodeFsFilesFull", - "type": "timeseries" + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "links": [ - { - "title": "PGSQL Node: FD for ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=58&${__url_time_range}" - } - ], - "mappings": [], - "max": 3, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "green", - "value": 0.1 - }, - { - "color": "orange", - "value": 0.8 - }, - { - "color": "orange", - "value": 0.9 - }, - { - "color": "red", - "value": 0.95 - }, - { - "color": "purple", - "value": 0.99 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 93 - }, - "id": 59, - "options": { - "legend": { - "calcs": [ - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:fd_usage", - "interval": "", - "legendFormat": "{{ ip }}", - "refId": "A" - } - ], - "thresholds": [ - { - "colorMode": "critical", - "op": "gt", - "value": 0.9, - "visible": true - } - ], - "title": "NodeFdFull", - "type": "timeseries" + "title": "PGSQL Node: TCP Retransmit for ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=52&${__url_time_range}" } - ], - "title": "NODE: Filesystem", - "type": "row" - }, - { - "collapsed": true, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "green", + "value": 1e-06 + }, + { + "color": "yellow", + "value": 0.0001 + }, + { + "color": "orange", + "value": 0.001 + }, + { + "color": "red", + "value": 0.01 + }, + { + "color": "purple", + "value": 0.1 + } + ] + }, + "unit": "sci" }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 28 + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 24, + "x": 0, + "y": 108 + }, + "id": 70, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true }, - "id": 62, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "TCP Error Rate > 1 / s", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "decimals": 1, - "links": [ - { - "title": "PGSQL Node: TCP Errors for ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=55&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "orange", - "value": 1 - }, - { - "color": "red", - "value": 2 - } - ] - }, - "unit": "cps" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 101 - }, - "id": 71, - "options": { - "legend": { - "calcs": [ - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "rate(node:ins:tcp_error[1m])", - "interval": "", - "legendFormat": "{{ ip }}", - "refId": "A" - } - ], - "thresholds": [ - { - "colorMode": "critical", - "op": "gt", - "value": 1, - "visible": true - } - ], - "title": "NodeTcpErrHigh", - "type": "timeseries" + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:tcp_retrans_ratio1m", + "interval": "", + "legendFormat": "{{ ip }}", + "refId": "A" + } + ], + "title": "NodeTcpRetransHigh", + "type": "timeseries" + } + ], + "title": "Node: Network", + "type": "row" + }, + { + "collapsed": true, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 29 + }, + "id": 25, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Check ntp protocol / clock sanity", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "hidden", + "barAlignment": 0, + "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", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "log": 10, - "type": "log" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "links": [ - { - "title": "PGSQL Node: TCP Retransmit for ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=52&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "green", - "value": 1e-06 - }, - { - "color": "yellow", - "value": 0.0001 - }, - { - "color": "orange", - "value": 0.001 - }, - { - "color": "red", - "value": 0.01 - }, - { - "color": "purple", - "value": 0.1 - } - ] - }, - "unit": "sci" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 24, - "x": 0, - "y": 108 - }, - "id": 70, - "options": { - "legend": { - "calcs": [ - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:tcp_retrans_ratio1m", - "interval": "", - "legendFormat": "{{ ip }}", - "refId": "A" - } - ], - "title": "NodeTcpRetransHigh", - "type": "timeseries" + "title": "PGSQL Node: NTP Sanity for ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=70&${__url_time_range}" } - ], - "title": "Node: Network", - "type": "row" - }, - { - "collapsed": true, - "datasource": { + ], + "mappings": [], + "max": 1.1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red" + }, + { + "color": "green", + "value": 0.5 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 31 + }, + "id": 75, + "options": { + "legend": { + "calcs": [ + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Min", + "sortDesc": false + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { "type": "prometheus", "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "min without() (node_timex_sync_status)", + "interval": "", + "legendFormat": "{{ ip }}", + "range": true, + "refId": "A" + } + ], + "title": "NodeTimeSync", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Clock time offset alert > 64ms", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 2, + "type": "log" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ + { + "title": "PGSQL Node: Time Offset for ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=83&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "green", + "value": 0.001 + }, + { + "color": "yellow", + "value": 0.01 + }, + { + "color": "orange", + "value": 0.064 + }, + { + "color": "red", + "value": 1 + }, + { + "color": "purple", + "value": 60 + }, + { + "color": "text", + "value": 600 + } + ] + }, + "unit": "s" }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 29 + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 38 + }, + "id": 74, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": true }, - "id": 25, - "panels": [ + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "abs(node_timex_offset_seconds)", + "interval": "", + "legendFormat": "{{ ip }}", + "refId": "A" + } + ], + "title": "NodeClockSkew", + "type": "timeseries" + } + ], + "title": "Node: Time", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 30 + }, + "id": 88, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "- 0.8+: Immediate intervention and adjustment are required \n- 0.6+: Monitor trends and prepare for scaling plans ", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "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", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Check ntp protocol / clock sanity", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "hidden", - "barAlignment": 0, - "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", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "links": [ - { - "title": "PGSQL Node: NTP Sanity for ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=70&${__url_time_range}" - } - ], - "mappings": [], - "max": 1.1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red" - }, - { - "color": "green", - "value": 0.5 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 31 - }, - "id": 75, - "options": { - "legend": { - "calcs": [ - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "sortBy": "Min", - "sortDesc": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "min without() (node_timex_sync_status)", - "interval": "", - "legendFormat": "{{ ip }}", - "range": true, - "refId": "A" - } - ], - "title": "NodeTimeSync", - "type": "timeseries" + "title": "Node Instance: ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "-1": { + "color": "gray", + "index": 1, + "text": "N/A" + } + }, + "type": "value" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Clock time offset alert > 64ms", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "log": 2, - "type": "log" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "links": [ - { - "title": "PGSQL Node: Time Offset for ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=83&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "green", - "value": 0.001 - }, - { - "color": "yellow", - "value": 0.01 - }, - { - "color": "orange", - "value": 0.064 - }, - { - "color": "red", - "value": 1 - }, - { - "color": "purple", - "value": 60 - }, - { - "color": "text", - "value": 600 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 38 - }, - "id": 74, - "options": { - "legend": { - "calcs": [ - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "sortBy": "Max", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "abs(node_timex_offset_seconds)", - "interval": "", - "legendFormat": "{{ ip }}", - "refId": "A" - } - ], - "thresholds": [ - { - "colorMode": "critical", - "op": "gt", - "value": 0.05, - "visible": true - } - ], - "title": "NodeClockSkew", - "type": "timeseries" + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "No Data" + } + }, + "type": "special" } - ], - "title": "Node: Time", - "type": "row" + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-green", + "value": null + }, + { + "color": "orange", + "value": 0.6 + }, + { + "color": "semi-dark-orange", + "value": 0.7 + }, + { + "color": "red", + "value": 0.8 + }, + { + "color": "semi-dark-red", + "value": 0.9 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "node:ins:zfs_arc_pressure_ratio" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "thresholds" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 31 + }, + "id": 89, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:zfs_arc_pressure_ratio", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "{{ins}}", + "range": true, + "refId": "A" + } + ], + "title": "ARC Pressure", + "type": "timeseries" } - ], - "revision": 1, - "schemaVersion": 39, - "tags": [ - "Pigsty", - "NODE", - "Overview", - "Alert" - ], - "templating": { - "list": [] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "2s", - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ] - }, - "timezone": "", - "title": "Node Alert", - "uid": "node-alert", - "version": 1, - "weekStart": "" + ], + "title": "Node: ZFS ARC", + "type": "row" + } + ], + "revision": 1, + "schemaVersion": 40, + "tags": [ + "Pigsty", + "NODE", + "Overview", + "Alert" + ], + "templating": { + "list": [] + }, + "time": { + "from": "now-1h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "2s", + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "Node Alert", + "uid": "node-alert", + "version": 1, + "weekStart": "" } \ No newline at end of file diff --git a/files/grafana/node/node-cluster.json b/files/grafana/node/node-cluster.json index e0b79d7fd..5a09e42b4 100644 --- a/files/grafana/node/node-cluster.json +++ b/files/grafana/node/node-cluster.json @@ -1,12768 +1,13933 @@ { - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - } - ] + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "author": "Ruohang Feng (rh@vonng.com)", + "description": "Node: Cluster Dashboard", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "license": "AGPLv3 @ https://pigsty.io/docs/about/license", + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "Pigsty", + "NODE" + ], + "targetBlank": false, + "title": "NODE", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 266, + "panels": [], + "title": "Overview", + "type": "row" }, - "author": "Ruohang Feng (rh@vonng.com)", - "description": "Node: Cluster Dashboard", - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": null, - "license": "AGPLv3 @ https://pigsty.io/docs/about/license", - "links": [ - { - "asDropdown": true, - "icon": "external link", - "includeVars": true, - "keepTime": true, - "tags": [ - "Pigsty", - "NODE" - ], - "targetBlank": false, - "title": "NODE", - "tooltip": "", - "type": "dashboards", - "url": "" + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "Node Overview", + "url": "/d/node-overview?${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 0, + "y": 1 + }, + "id": 257, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 18 + }, + "textMode": "name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "1", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "", + "queryType": "measurements", + "refId": "A" } - ], - "panels": [ + ], + "title": "", + "transformations": [ { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 + "id": "organize", + "options": { + "excludeByName": { + "Time": true }, - "id": 266, - "panels": [], - "title": "Overview", - "type": "row" + "indexByName": {}, + "renameByName": { + "Time": "", + "Value": "Node" + } + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "PGSQL Cluster for ${pg_cls}", + "url": "/d/pgsql-cluster?var-cls=${pg_cls}&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + } + ] + } }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Node Overview", - "url": "/d/node-overview?${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 0, - "y": 1 - }, - "id": 257, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 18 - }, - "textMode": "name", - "wideLayout": true - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "1", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "queryType": "measurements", - "refId": "A" - } - ], - "title": "", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": { - "Time": "", - "Value": "Node" - } - } - } - ], - "type": "stat" + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 7, + "x": 3, + "y": 1 + }, + "id": 235, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, + "showPercentChange": false, + "text": {}, + "textMode": "name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "1", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "", + "queryType": "measurements", + "refId": "A" + } + ], + "title": "", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "PGSQL Cluster for ${pg_cls}", - "url": "/d/pgsql-cluster?var-cls=${pg_cls}&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 7, - "x": 3, - "y": 1 - }, - "id": 235, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "name", - "wideLayout": true - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "1", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "queryType": "measurements", - "refId": "A" - } - ], - "title": "", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": { - "Time": "", - "Value": "${cls}" - } - } - } - ], - "type": "stat" + "indexByName": {}, + "renameByName": { + "Time": "", + "Value": "${cls}" + } + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "All nodes among cluster ${cls}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "max": 1.2, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#e3e3e3e0", + "value": null + } + ] + } }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Hostname" }, - "description": "All nodes among cluster ${cls}", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "center", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "max": 1.2, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#e3e3e3e0", - "value": null - } - ] - } - }, - "overrides": [ + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.Hostname}", + "url": "/d/node-instance?var-id=${__data.fields.Hostname}&${__url_time_range}" + } + ] + }, + { + "id": "custom.minWidth", + "value": 180 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "IP" + }, + "properties": [ + { + "id": "custom.width", + "value": 140 + }, + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.IP}", + "url": "/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Core" + }, + "properties": [ + { + "id": "custom.width", + "value": 40 + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "color-background" + } + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "matcher": { - "id": "byName", - "options": "Hostname" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Instance: ${__data.fields.Hostname}", - "url": "/d/node-instance?var-id=${__data.fields.Hostname}&${__url_time_range}" - } - ] - }, - { - "id": "custom.minWidth", - "value": 180 - } - ] + "color": "super-light-blue", + "value": null }, { - "matcher": { - "id": "byName", - "options": "IP" - }, - "properties": [ - { - "id": "custom.width", - "value": 140 - }, - { - "id": "links", - "value": [ - { - "title": "Node Instance: ${__data.fields.IP}", - "url": "/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}" - } - ] - } - ] + "color": "#3e668f", + "value": 1 }, { - "matcher": { - "id": "byName", - "options": "Core" - }, - "properties": [ - { - "id": "custom.width", - "value": 40 - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "color-background" - } - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "super-light-blue", - "value": null - }, - { - "color": "#3e668f", - "value": 1 - }, - { - "color": "dark-blue", - "value": 2 - }, - { - "color": "super-light-green", - "value": 4 - }, - { - "color": "#346f36cc", - "value": 8 - }, - { - "color": "dark-green", - "value": 16 - }, - { - "color": "super-light-orange", - "value": 32 - }, - { - "color": "semi-dark-orange", - "value": 48 - }, - { - "color": "super-light-red", - "value": 56 - }, - { - "color": "semi-dark-red", - "value": 64 - } - ] - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "transparent", - "index": 0 - } - }, - "type": "special" - } - ] - } - ] + "color": "dark-blue", + "value": 2 }, { - "matcher": { - "id": "byName", - "options": "CPU%" - }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "gauge" - } - }, - { - "id": "color", - "value": { - "mode": "thresholds" - } - }, - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "custom.width", - "value": 120 - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - } - }, - { - "id": "decimals", - "value": 1 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "transparent", - "index": 1 - } - }, - "type": "special" - } - ] - } - ] + "color": "super-light-green", + "value": 4 }, { - "matcher": { - "id": "byName", - "options": "Mem" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#b3b5b7", - "value": null - }, - { - "color": "super-light-blue", - "value": 1 - }, - { - "color": "#3275d9c4", - "value": 2 - }, - { - "color": "dark-blue", - "value": 4 - }, - { - "color": "#346f36cc", - "value": 8 - }, - { - "color": "#346f36cc", - "value": 16 - }, - { - "color": "dark-green", - "value": 32 - }, - { - "color": "#fcdb72", - "value": 62 - }, - { - "color": "super-light-orange", - "value": 64 - }, - { - "color": "#f5a673", - "value": 128 - }, - { - "color": "#e02f44bf", - "value": 256 - }, - { - "color": "red", - "value": 512 - } - ] - } - }, - { - "id": "unit", - "value": "gbytes" - }, - { - "id": "custom.width", - "value": 70 - }, - { - "id": "decimals", - "value": 0 - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "transparent", - "index": 0 - } - }, - "type": "special" - } - ] - } - ] + "color": "#346f36cc", + "value": 8 }, { - "matcher": { - "id": "byName", - "options": "Mem%" - }, - "properties": [ - { - "id": "custom.width", - "value": 120 - }, - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "gauge" - } - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#f5a673", - "value": 0.3 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - } - }, - { - "id": "decimals", - "value": 1 - } - ] + "color": "dark-green", + "value": 16 }, { - "matcher": { - "id": "byName", - "options": "Space" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - }, - { - "id": "unit", - "value": "gbytes" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "super-light-blue", - "value": null - }, - { - "color": "#3e668f", - "value": 32 - }, - { - "color": "super-light-green", - "value": 256 - }, - { - "color": "#346f36cc", - "value": 512 - }, - { - "color": "light-yellow", - "value": 1024 - }, - { - "color": "#f5a673", - "value": 4096 - }, - { - "color": "light-red", - "value": 8192 - } - ] - } - }, - { - "id": "decimals", - "value": 1 - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "transparent", - "index": 1 - } - }, - "type": "special" - } - ] - } - ] + "color": "super-light-orange", + "value": 32 }, { - "matcher": { - "id": "byName", - "options": "Space%" - }, - "properties": [ - { - "id": "custom.width", - "value": 120 - }, - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "decimals", - "value": 1 - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.05 - }, - { - "color": "#EAB839", - "value": 0.8 - }, - { - "color": "#f5a673", - "value": 0.85 - }, - { - "color": "red", - "value": 0.9 - }, - { - "color": "#b783af", - "value": 0.95 - }, - { - "color": "text", - "value": 0.99 - } - ] - } - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "gauge" - } - } - ] + "color": "semi-dark-orange", + "value": 48 }, { - "matcher": { - "id": "byName", - "options": "OS Release" - }, - "properties": [ - { - "id": "custom.minWidth", - "value": 150 - } - ] + "color": "super-light-red", + "value": 56 }, { - "matcher": { - "id": "byName", - "options": "Targets" - }, - "properties": [ - { - "id": "custom.width", - "value": 66 - } - ] + "color": "semi-dark-red", + "value": 64 + } + ] + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "transparent", + "index": 0 + } + }, + "type": "special" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "CPU%" + }, + "properties": [ + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "gauge" + } + }, + { + "id": "color", + "value": { + "mode": "thresholds" + } + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "custom.width", + "value": 120 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null }, { - "matcher": { - "id": "byName", - "options": "Cluster" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Cluster : ${__data.fields.Cluster}", - "url": "/d/node-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}" - } - ] - } - ] + "color": "#346f36cc", + "value": 0.1 }, { - "matcher": { - "id": "byName", - "options": "Instance" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Instance: ${__data.fields.Instance}", - "url": "/d/node-instance?var-ins=${__data.fields.Instance}&${__url_time_range}" - } - ] - } - ] + "color": "#fcdb72", + "value": 0.3 }, { - "matcher": { - "id": "byName", - "options": "Ping" - }, - "properties": [ - { - "id": "unit", - "value": "s" - }, - { - "id": "custom.width", - "value": 80 - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.0002 - }, - { - "color": "#fcdb72", - "value": 0.0005 - }, - { - "color": "#f5a673", - "value": 0.001 - }, - { - "color": "red", - "value": 0.01 - }, - { - "color": "text", - "value": 1 - } - ] - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "from": 7, - "result": { - "color": "text", - "index": 0, - "text": "\u221e" - }, - "to": 9999999 - }, - "type": "range" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - } - ] + "color": "#f5a673", + "value": 0.5 }, { - "matcher": { - "id": "byName", - "options": "HAProxy" - }, - "properties": [ - { - "id": "custom.width", - "value": 140 - }, - { - "id": "links", - "value": [ - { - "targetBlank": true, - "title": "HAProxy Admin Page : ${__data.fields.Instance}", - "url": "http://h.pigsty/${__data.fields.Instance}" - } - ] - } - ] + "color": "red", + "value": 0.7 }, { - "matcher": { - "id": "byName", - "options": "Conn" - }, - "properties": [ - { - "id": "custom.width", - "value": 60 - } - ] + "color": "#b783af", + "value": 0.9 }, { - "matcher": { - "id": "byName", - "options": "Alive" - }, - "properties": [ - { - "id": "custom.width", - "value": 100 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "#cc4637d9", - "index": 0, - "text": "Down" - }, - "1": { - "color": "#346f36cc", - "index": 1, - "text": "UP" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - }, - { - "id": "custom.width", - "value": 60 - } - ] + "color": "text", + "value": 1 } + ] + } + }, + { + "id": "decimals", + "value": 1 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "transparent", + "index": 1 + } + }, + "type": "special" + } ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Mem" }, - "gridPos": { - "h": 7, - "w": 14, - "x": 10, - "y": 1 - }, - "id": 267, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node_up{cls=\"$cls\"}", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "L" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "group without(ins,cls,instance) (node_uname_info{cls=\"$cls\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (node:ins:cpu_usage{cls=\"$cls\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#b3b5b7", + "value": null }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (node:ins:mem_usage{cls=\"$cls\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "super-light-blue", + "value": 1 }, - "editorMode": "code", - "exemplar": false, - "expr": "sum by (ip,instance) (node:ins:space_usage_max{cls=\"$cls\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#3275d9c4", + "value": 2 }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (node:ins:cpu_count{cls=\"$cls\"}) ", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "E" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "dark-blue", + "value": 4 }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (node_memory_MemTotal_bytes{cls=\"$cls\"}) / 1073741824", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "F" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#346f36cc", + "value": 8 }, - "editorMode": "code", - "exemplar": false, - "expr": "sum(node:fs:size_bytes{cls=\"$cls\"}) by (ip) / 1073741824", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "G" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#346f36cc", + "value": 16 }, - "editorMode": "code", - "exemplar": false, - "expr": "count by (ip) (up{cls=\"$cls\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "H" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "dark-green", + "value": 32 }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (probe_duration_seconds{cls=\"$cls\", job=\"ping\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "I" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#fcdb72", + "value": 62 }, - "editorMode": "code", - "exemplar": false, - "expr": "sum by (ip) (haproxy_backend_current_sessions{cls=\"$cls\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "J" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "super-light-orange", + "value": 64 }, - "editorMode": "code", - "exemplar": false, - "expr": "min by (ip) (node_up{cls=\"$cls\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "K" - } - ], - "title": "", - "transformations": [ - { - "id": "seriesToColumns", - "options": { - "byField": "ip" - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Time 1": true, - "Time 10": true, - "Time 11": true, - "Time 2": true, - "Time 3": true, - "Time 4": true, - "Time 5": true, - "Time 6": true, - "Time 7": true, - "Time 8": true, - "Time 9": true, - "Value #A": true, - "Value #B": false, - "Value #J": false, - "Value #L": true, - "__name__": true, - "__name__ 1": true, - "__name__ 2": true, - "__name__ 3": true, - "cls": true, - "cls 1": true, - "cls 2": false, - "cls 3": true, - "domainname": true, - "instance": false, - "instance 1": false, - "instance 2": true, - "instance 3": true, - "ip 2": true, - "ip 3": true, - "job": true, - "job 1": true, - "job 2": true, - "job 3": true, - "machine": true, - "maxmemory_policy": true, - "nodename": true, - "os": true, - "process_id": true, - "redis_build_id": true, - "release": false, - "run_id": true, - "sysname": true, - "tcp_port": true, - "version": true - }, - "indexByName": { - "Time 1": 17, - "Time 10": 26, - "Time 11": 27, - "Time 12": 31, - "Time 2": 18, - "Time 3": 19, - "Time 4": 20, - "Time 5": 21, - "Time 6": 22, - "Time 7": 23, - "Time 8": 24, - "Time 9": 25, - "Value #A": 7, - "Value #B": 9, - "Value #C": 11, - "Value #D": 13, - "Value #E": 8, - "Value #F": 10, - "Value #G": 12, - "Value #H": 6, - "Value #I": 14, - "Value #J": 15, - "Value #K": 0, - "Value #L": 29, - "__name__": 28, - "cls": 2, - "domainname": 33, - "ins": 3, - "instance 1": 4, - "instance 2": 30, - "ip": 1, - "job 1": 32, - "job 2": 34, - "machine": 35, - "nodename": 5, - "release": 16, - "sysname": 36, - "version": 37 - }, - "renameByName": { - "Time 4": "", - "Value #A": "", - "Value #B": "CPU%", - "Value #C": "Mem%", - "Value #D": "Space%", - "Value #E": "Core", - "Value #F": "Mem", - "Value #G": "Space", - "Value #H": "Targets", - "Value #I": "Ping", - "Value #J": "Conn", - "Value #K": "Alive", - "cls": "Cluster", - "cls 1": "Cluster", - "cls 2": "Cluster", - "ins": "Instance", - "ins 2": "Instance", - "instance": "HAProxy", - "instance 1": "HAProxy", - "instance 3": "", - "ip": "IP", - "ip 1": "IP", - "job 1": "", - "nodename": "Hostname", - "redis_mode": "Mode", - "redis_version": "Version", - "release": "OS Release", - "role": "Role" - } - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" + { + "color": "#f5a673", + "value": 128 }, - "mappings": [], - "max": 2.5, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - } - ] - } - }, - "overrides": [ { - "matcher": { - "id": "byRegexp", - "options": "/Mem|Disk|Data/" - }, - "properties": [ - { - "id": "unit", - "value": "bytes" - } - ] + "color": "#e02f44bf", + "value": 256 }, { - "matcher": { - "id": "byName", - "options": "Mem" - }, - "properties": [ - { - "id": "decimals", - "value": 1 - } - ] + "color": "red", + "value": 512 } + ] + } + }, + { + "id": "unit", + "value": "gbytes" + }, + { + "id": "custom.width", + "value": 70 + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "transparent", + "index": 0 + } + }, + "type": "special" + } ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Mem%" }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 4 - }, - "id": 239, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 16, - "valueSize": 14 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "count(count(node_load1{cls=\"$cls\"}) by (ip))", - "instant": true, - "interval": "", - "legendFormat": "Node", - "queryType": "measurements", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "properties": [ + { + "id": "custom.width", + "value": 120 + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "gauge" + } + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null }, - "exemplar": false, - "expr": "node:cls:cpu_count{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Core", - "queryType": "measurements", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#346f36cc", + "value": 0.1 }, - "exemplar": false, - "expr": "sum(node_memory_MemTotal_bytes{cls=\"$cls\"})", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Mem", - "queryType": "measurements", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#f5a673", + "value": 0.3 }, - "exemplar": false, - "expr": "sum(node:cls:size_bytes{cls=\"$cls\"})", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Disk", - "queryType": "measurements", - "refId": "D" - } - ], - "title": "", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" + { + "color": "#f5a673", + "value": 0.5 }, - "links": [], - "mappings": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 0, - "text": "\u2205" - } - }, - "type": "special" - }, - { - "options": { - "from": 7, - "result": { - "color": "text", - "index": 1, - "text": "\u221e" - }, - "to": 9999999 - }, - "type": "range" - } - ], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.0002 - }, - { - "color": "#f5a673", - "value": 0.001 - }, - { - "color": "red", - "value": 0.01 - }, - { - "color": "text", - "value": 7 - } - ] + { + "color": "red", + "value": 0.7 }, - "unit": "s" - }, - "overrides": [ { - "matcher": { - "id": "byFrameRefID", - "options": "A" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Instance : ${__field.labels.ip}", - "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" - } - ] - } - ] + "color": "#b783af", + "value": 0.9 }, { - "matcher": { - "id": "byFrameRefID", - "options": "B" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node VIP : ${__field.labels.vip}", - "url": "/d/node-vip?var-vip=${__field.labels.vip}&${__url_time_range}" - } - ] - } - ] + "color": "text", + "value": 1 } - ] - }, - "gridPos": { - "h": 4, - "w": 7, - "x": 3, - "y": 4 - }, - "id": 265, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "avg by (job,vip) (probe_duration_seconds{cls=\"$cls\", job=~\".*vip\"})", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ vip }} @ {{ job }}", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "probe_duration_seconds{cls=\"$cls\", job=\"ping\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ ip }} : {{ ins }}", - "refId": "A" + ] } - ], - "title": "", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + }, + { + "id": "decimals", + "value": 1 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Space" }, - "description": "Blue = PostgreSQL\n\nGreen = Pgbouncer\n\nYellow : Agent (Patroni / PG Exporters)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "unit", + "value": "gbytes" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null }, - "links": [], - "mappings": [ - { - "options": { - "0": { - "color": "text", - "index": 1, - "text": "Dead" - }, - "1": { - "index": 2, - "text": "Up" - } - }, - "type": "value" - }, - { - "options": { - "match": "null+nan", - "result": { - "index": 0 - } - }, - "type": "special" - } - ], - "max": 1.1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#aaaaaa", - "value": 1 - } - ] - } - }, - "overrides": [ { - "matcher": { - "id": "byFrameRefID", - "options": "A" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#3e668f", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "PGSQL Instance : ${__field.labels.ins}", - "url": "/d/pgsql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] + "color": "#3e668f", + "value": 32 }, { - "matcher": { - "id": "byFrameRefID", - "options": "B" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#3d668fd6", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "PGSQL Pgbouncer : ${__field.labels.ins}", - "url": "/d/pgsql-pgbouncer?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] + "color": "super-light-green", + "value": 256 }, { - "matcher": { - "id": "byFrameRefID", - "options": "C" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#5b9cd5", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "PGSQL Patroni : ${__field.labels.ins}", - "url": "/d/pgsql-patroni?var-cls=${__field.labels.cls}&${__url_time_range}" - } - ] - } - ] + "color": "#346f36cc", + "value": 512 }, { - "matcher": { - "id": "byFrameRefID", - "options": "D" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#b783af", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "PGSQL Exporter : ${__field.labels.ins}", - "url": "/d/pgsql-exporter?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] + "color": "light-yellow", + "value": 1024 }, { - "matcher": { - "id": "byFrameRefID", - "options": "E" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#7771a4", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "PGSQL Exporter : ${__field.labels.ins}", - "url": "/d/pgsql-exporter?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] + "color": "#f5a673", + "value": 4096 }, { - "matcher": { - "id": "byFrameRefID", - "options": "F" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Instance : ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#e6b03ee6", - "value": 1 - } - ] - } - } - ] + "color": "light-red", + "value": 8192 + } + ] + } + }, + { + "id": "decimals", + "value": 1 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "transparent", + "index": 1 + } + }, + "type": "special" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Space%" + }, + "properties": [ + { + "id": "custom.width", + "value": 120 + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "decimals", + "value": 1 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null }, { - "matcher": { - "id": "byFrameRefID", - "options": "G" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node HAProxy : ${__field.labels.ins}", - "url": "/d/node-haproxy?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#f5a673", - "value": 1 - } - ] - } - } - ] + "color": "#346f36cc", + "value": 0.05 }, { - "matcher": { - "id": "byFrameRefID", - "options": "H" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#1b6eb6d1", - "value": 1 - } - ] - } - } - ] + "color": "#EAB839", + "value": 0.8 }, { - "matcher": { - "id": "byFrameRefID", - "options": "I" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Logs Instance : ${__field.labels.ins}", - "url": "/d/logs-instance?var-ins=${__field.labels.ins}&var-src=syslog&${__url_time_range}\ufeff" - } - ] - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#cc4637d9", - "value": 1 - } - ] - } - } - ] + "color": "#f5a673", + "value": 0.85 }, { - "matcher": { - "id": "byFrameRefID", - "options": "J" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#346f36cc", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "Infra Overview", - "url": "/d/infra-overview?${__url_time_range}" - } - ] - } - ] + "color": "red", + "value": 0.9 }, { - "matcher": { - "id": "byFrameRefID", - "options": "K" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#5b9cd5", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "ETCD Overview", - "url": "/d/etcd-overview?${__url_time_range}" - } - ] - } - ] + "color": "#b783af", + "value": 0.95 }, { - "matcher": { - "id": "byFrameRefID", - "options": "L" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#cc4637d9", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "Redis Instance ${__field.labels.ins} @ ${__field.labels.instance}", - "url": "/d/redis-instance?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] + "color": "text", + "value": 0.99 + } + ] + } + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "gauge" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "OS Release" + }, + "properties": [ + { + "id": "custom.minWidth", + "value": 150 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Targets" + }, + "properties": [ + { + "id": "custom.width", + "value": 66 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Cluster" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Cluster : ${__data.fields.Cluster}", + "url": "/d/node-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Instance" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.Instance}", + "url": "/d/node-instance?var-ins=${__data.fields.Instance}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Ping" + }, + "properties": [ + { + "id": "unit", + "value": "s" + }, + { + "id": "custom.width", + "value": 80 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null }, { - "matcher": { - "id": "byFrameRefID", - "options": "M" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#d0475799", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "Minio Instance: ${__field.labels.ins}", - "url": "/d/minio-overview?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] + "color": "#346f36cc", + "value": 0.0002 }, { - "matcher": { - "id": "byFrameRefID", - "options": "N" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#806c52", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "Mongo Instance : ${__field.labels.ins}", - "url": "/d/mongo-overview?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] + "color": "#fcdb72", + "value": 0.0005 }, { - "matcher": { - "id": "byFrameRefID", - "options": "Y" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#6a8d9d", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "MySQL Instance : ${__field.labels.ins}", - "url": "/d/mysql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] + "color": "#f5a673", + "value": 0.001 }, { - "matcher": { - "id": "byFrameRefID", - "options": "P" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#5a8da5", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "MySQL Instance : ${__field.labels.ins}", - "url": "/d/mysql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] + "color": "red", + "value": 0.01 }, { - "matcher": { - "id": "byFrameRefID", - "options": "S" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "PGSQL PITR : ${__field.labels.cls}", - "url": "/d/pgsql-pitr?var-cls=${__field.labels.cls}&${__url_time_range}" - } - ] - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#252f34", - "value": null - }, - { - "color": "#42606b", - "value": 1 - } - ] - } - } - ] + "color": "text", + "value": 1 } + ] + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "from": 7, + "result": { + "color": "text", + "index": 0, + "text": "āˆž" + }, + "to": 9999999 + }, + "type": "range" + } ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "HAProxy" }, - "gridPos": { - "h": 4, - "w": 24, - "x": 0, - "y": 8 - }, - "id": 264, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 12 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "pg_up{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "postgres {{ ins }}", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "pgbouncer_up{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "pgbouncer {{ ins }}", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "patroni_up{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "patroni {{ ins }}", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "pg_exporter_agent_up{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "pg_exporter {{ ins }}", - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "pgbouncer_exporter_agent_up{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "pgb_exporter {{ ins }}", - "refId": "E" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node_up{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "node {{ ins }}", - "refId": "F" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "haproxy_up{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "haproxy {{ ins }}", - "refId": "G" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "docker_up{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "docker {{ ins }}", - "refId": "H" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "promtail_up{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "promtail {{ ins }}", - "refId": "I" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "infra_up{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "J" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "etcd_up{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "K" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "redis_up{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "L" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "minio_up{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "M" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "mongo_up{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "N" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "mysql_up{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "mysql {{ ins }}", - "refId": "Y" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "mysql_exporter_up{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "mysql_exporter", - "refId": "P" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "pgbackrest_exporter_agent_up{cls=\"$cls\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "pgbackrest {{ ins }}", - "refId": "S" + "properties": [ + { + "id": "custom.width", + "value": 140 + }, + { + "id": "links", + "value": [ + { + "targetBlank": true, + "title": "HAProxy Admin Page : ${__data.fields.Instance}", + "url": "http://h.pigsty/${__data.fields.Instance}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Conn" + }, + "properties": [ + { + "id": "custom.width", + "value": 60 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Alive" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#cc4637d9", + "index": 0, + "text": "Down" + }, + "1": { + "color": "#346f36cc", + "index": 1, + "text": "UP" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" } - ], - "title": "", - "type": "stat" + }, + { + "id": "custom.width", + "value": 60 + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 14, + "x": 10, + "y": 1 + }, + "id": 267, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "11.5.2", + "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node_up{cls=\"$cls\"}", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "L" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "group without(ins,cls,instance) (node_uname_info{cls=\"$cls\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (node:ins:cpu_usage{cls=\"$cls\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (node:ins:mem_usage{cls=\"$cls\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (ip,instance) (node:ins:space_usage_max{cls=\"$cls\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (node:ins:cpu_count{cls=\"$cls\"}) ", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (node_memory_MemTotal_bytes{cls=\"$cls\"}) / 1073741824", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(node:fs:size_bytes{cls=\"$cls\"}) by (ip) / 1073741824", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count by (ip) (up{cls=\"$cls\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "H" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (probe_duration_seconds{cls=\"$cls\", job=\"ping\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "I" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (ip) (haproxy_backend_current_sessions{cls=\"$cls\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "J" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "min by (ip) (node_up{cls=\"$cls\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "K" + } + ], + "title": "", + "transformations": [ + { + "id": "seriesToColumns", + "options": { + "byField": "ip" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Time 1": true, + "Time 10": true, + "Time 11": true, + "Time 2": true, + "Time 3": true, + "Time 4": true, + "Time 5": true, + "Time 6": true, + "Time 7": true, + "Time 8": true, + "Time 9": true, + "Value #A": true, + "Value #B": false, + "Value #J": false, + "Value #L": true, + "__name__": true, + "__name__ 1": true, + "__name__ 2": true, + "__name__ 3": true, + "cls": true, + "cls 1": true, + "cls 2": false, + "cls 3": true, + "domainname": true, + "instance": false, + "instance 1": false, + "instance 2": true, + "instance 3": true, + "ip 2": true, + "ip 3": true, + "job": true, + "job 1": true, + "job 2": true, + "job 3": true, + "machine": true, + "maxmemory_policy": true, + "nodename": true, + "os": true, + "process_id": true, + "redis_build_id": true, + "release": false, + "run_id": true, + "sysname": true, + "tcp_port": true, + "version": true }, - "description": "Overall pressure for this PostgreSQL Node and Instance. \nmax(node:ins:cpu_usage, pg:ins:load, pgbouncer:ins:load)", - "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": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineStyle": { - "fill": "solid" - }, - "lineWidth": 1, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "decimals": 1, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "purple", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [ + "indexByName": { + "Time 1": 17, + "Time 10": 26, + "Time 11": 27, + "Time 12": 31, + "Time 2": 18, + "Time 3": 19, + "Time 4": 20, + "Time 5": 21, + "Time 6": 22, + "Time 7": 23, + "Time 8": 24, + "Time 9": 25, + "Value #A": 7, + "Value #B": 9, + "Value #C": 11, + "Value #D": 13, + "Value #E": 8, + "Value #F": 10, + "Value #G": 12, + "Value #H": 6, + "Value #I": 14, + "Value #J": 15, + "Value #K": 0, + "Value #L": 29, + "__name__": 28, + "cls": 2, + "domainname": 33, + "ins": 3, + "instance 1": 4, + "instance 2": 30, + "ip": 1, + "job 1": 32, + "job 2": 34, + "machine": 35, + "nodename": 5, + "release": 16, + "sysname": 36, + "version": 37 + }, + "renameByName": { + "Time 4": "", + "Value #A": "", + "Value #B": "CPU%", + "Value #C": "Mem%", + "Value #D": "Space%", + "Value #E": "Core", + "Value #F": "Mem", + "Value #G": "Space", + "Value #H": "Targets", + "Value #I": "Ping", + "Value #J": "Conn", + "Value #K": "Alive", + "cls": "Cluster", + "cls 1": "Cluster", + "cls 2": "Cluster", + "ins": "Instance", + "ins 2": "Instance", + "instance": "HAProxy", + "instance 1": "HAProxy", + "instance 3": "", + "ip": "IP", + "ip 1": "IP", + "job 1": "", + "nodename": "Hostname", + "redis_mode": "Mode", + "redis_version": "Version", + "release": "OS Release", + "role": "Role" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 2.5, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Mem|Disk|Data/" + }, + "properties": [ + { + "id": "unit", + "value": "bytes" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Mem" + }, + "properties": [ + { + "id": "decimals", + "value": 1 + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 0, + "y": 4 + }, + "id": 239, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 16, + "valueSize": 14 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "count(count(node_load1{cls=\"$cls\"}) by (ip))", + "instant": true, + "interval": "", + "legendFormat": "Node", + "queryType": "measurements", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:cls:cpu_count{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Core", + "queryType": "measurements", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "sum(node_memory_MemTotal_bytes{cls=\"$cls\"})", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Mem", + "queryType": "measurements", + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "sum(node:cls:size_bytes{cls=\"$cls\"})", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Disk", + "queryType": "measurements", + "refId": "D" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [], + "mappings": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "āˆ…" + } + }, + "type": "special" + }, + { + "options": { + "from": 7, + "result": { + "color": "text", + "index": 1, + "text": "āˆž" + }, + "to": 9999999 + }, + "type": "range" + } + ], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.0002 + }, + { + "color": "#f5a673", + "value": 0.001 + }, + { + "color": "red", + "value": 0.01 + }, + { + "color": "text", + "value": 7 + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "A" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance : ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node VIP : ${__field.labels.vip}", + "url": "/d/node-vip?var-vip=${__field.labels.vip}&${__url_time_range}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 7, + "x": 3, + "y": 4 + }, + "id": 265, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg by (job,vip) (probe_duration_seconds{cls=\"$cls\", job=~\".*vip\"})", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ vip }} @ {{ job }}", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "probe_duration_seconds{cls=\"$cls\", job=\"ping\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ ip }} : {{ ins }}", + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Blue = PostgreSQL\n\nGreen = Pgbouncer\n\nYellow : Agent (Patroni / PG Exporters)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [], + "mappings": [ + { + "options": { + "0": { + "color": "text", + "index": 1, + "text": "Dead" + }, + "1": { + "index": 2, + "text": "Up" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "index": 0 + } + }, + "type": "special" + } + ], + "max": 1.1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#aaaaaa", + "value": 1 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "A" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "matcher": { - "id": "byName", - "options": "cluster" - }, - "properties": [ - { - "id": "custom.drawStyle", - "value": "line" - }, - { - "id": "custom.fillOpacity", - "value": 30 - }, - { - "id": "custom.lineWidth", - "value": 0 - }, - { - "id": "color", - "value": { - "fixedColor": "rgba(128, 128, 128, 0.2)", - "mode": "fixed" - } - }, - { - "id": "links", - "value": [ - { - "title": "Node Cluster : ${__field.labels.cls}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=219&${__url_time_range}" - } - ] - } - ] + "color": "text", + "value": null }, { - "matcher": { - "id": "byFrameRefID", - "options": "B" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&var-cls=${cls}&${__url_time_range}" - } - ] - } - ] + "color": "#3e668f", + "value": 1 } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "PGSQL Instance : ${__field.labels.ins}", + "url": "/d/pgsql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" + } ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" }, - "gridPos": { - "h": 5, - "w": 12, - "x": 0, - "y": 12 - }, - "id": 241, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null + }, + { + "color": "#3d668fd6", + "value": 1 + } + ] } + }, + { + "id": "links", + "value": [ + { + "title": "PGSQL Pgbouncer : ${__field.labels.ins}", + "url": "/d/pgsql-pgbouncer?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "C" }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:cls:cpu_usage_1m{cls=\"$cls\"}", - "hide": false, - "interval": "", - "legendFormat": "cluster", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "exemplar": false, - "expr": "node:ins:cpu_usage_1m{cls=\"$cls\", ins!=\"$primary\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "B" + { + "color": "#5b9cd5", + "value": 1 + } + ] } - ], - "title": "", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + }, + { + "id": "links", + "value": [ + { + "title": "PGSQL Patroni : ${__field.labels.ins}", + "url": "/d/pgsql-patroni?var-cls=${__field.labels.cls}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "D" }, - "description": "Alerting event graph. Each stripe represent an alerting Event. Gray transparent stipe are pending alerts.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "hidden", - "axisSoftMax": 1.2, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 98, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepBefore", - "lineWidth": 0, - "pointSize": 1, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "links": [ - { - "targetBlank": true, - "title": "AlertInfo ${__field.labels.alertname} on Instance ${__field.labels.ins}", - "url": "http://a.pigsty/#/alerts?filter=%7Bins%3D%22${__field.labels.ins}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" - }, - { - "targetBlank": true, - "title": "Silence ${__field.labels.alertname} on Instance ${__field.labels.ins}", - "url": "http://a.pigsty/#/silences/new?filter=%7Bins%3D%22${__field.labels.ins}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" - }, - { - "title": "Node Cluster for ${__field.labels.cls} : Alerts", - "url": "/d/node-cluster?var-cls=${__field.labels.cls}&${__url_time_range}" - }, - { - "title": "Node Instance for ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [ + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "matcher": { - "id": "byFrameRefID", - "options": "A" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 66 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "1": { - "index": 0, - "text": "Firing\ud83d\udd25" - } - }, - "type": "value" - } - ] - } - ] + "color": "text", + "value": null }, { - "matcher": { - "id": "byFrameRefID", - "options": "B" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 25 - }, - { - "id": "color", - "value": { - "fixedColor": "rgba(128, 128, 128, 0.5)", - "mode": "fixed" - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "1": { - "color": "gray", - "index": 0, - "text": "Pend\u23f0" - } - }, - "type": "value" - } - ] - } - ] + "color": "#b783af", + "value": 1 + } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "PGSQL Exporter : ${__field.labels.ins}", + "url": "/d/pgsql-exporter?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "E" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, { - "matcher": { - "id": "byType", - "options": "time" - }, - "properties": [ - { - "id": "custom.axisPlacement", - "value": "auto" - } - ] + "color": "#7771a4", + "value": 1 } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "PGSQL Exporter : ${__field.labels.ins}", + "url": "/d/pgsql-exporter?var-ins=${__field.labels.ins}&${__url_time_range}" + } ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "F" }, - "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 12 - }, - "id": 227, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance : ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null + }, + { + "color": "#e6b03ee6", + "value": 1 + } + ] } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "G" }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "ALERTS{cls=\"$cls\", alertstate=\"firing\"}", - "interval": "", - "legendFormat": "[{{ severity }}\ud83d\udd25] {{alertname}} @ {{ instance }}", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "ALERTS{cls=\"$cls\", alertstate=\"pending\"} ", - "hide": false, - "interval": "", - "legendFormat": "[{{ severity }}\u23f0] {{alertname}} @ {{ instance }}", - "range": true, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node HAProxy : ${__field.labels.ins}", + "url": "/d/node-haproxy?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "exemplar": false, - "expr": "0", - "hide": true, - "interval": "", - "legendFormat": "Alert", - "refId": "C" + { + "color": "#f5a673", + "value": 1 + } + ] } - ], - "title": "", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "H" }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "links": [ - { - "title": "CPU Usage Detail", - "url": "/d/node-cluster?var-cls=${cls}&viewPanel=172&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "\u00d8", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.5 - }, - { - "color": "#d44a3a", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "rgba(0, 0, 0, 0.7)", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 0, - "y": 17 - }, - "id": 75, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "exemplar": false, - "expr": "node:cls:cpu_usage{cls=\"$cls\"}", - "instant": false, - "interval": "", - "legendFormat": "CPU", - "refId": "A" + { + "color": "#1b6eb6d1", + "value": 1 + } + ] } - ], - "title": "", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "I" }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "links": [ - { - "title": "Node Load Detail", - "url": "/d/node-cluster?var-cls=${cls}&viewPanel=186&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "\u00d8", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.5 - }, - { - "color": "#d44a3a", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "rgba(0, 0, 0, 0.7)", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 2, - "y": 17 - }, - "id": 145, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Logs Instance : ${__field.labels.ins}", + "url": "/d/logs-instance?var-ins=${__field.labels.ins}&var-src=syslog&${__url_time_range}" + } + ] + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "exemplar": false, - "expr": "node:cls:stdload1{cls=\"$cls\"}", - "instant": false, - "interval": "", - "legendFormat": "load1", - "refId": "A" + { + "color": "#cc4637d9", + "value": 1 + } + ] } - ], - "title": "", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "J" }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Memory Detail", - "url": "/d/node-cluster?var-cls=${cls}&viewPanel=254&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 4, - "y": 17 - }, - "id": 148, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "editorMode": "code", - "exemplar": false, - "expr": "max(node:ins:mem_usage{cls=\"$cls\"})", - "interval": "", - "legendFormat": "Memory", - "range": true, - "refId": "A" + { + "color": "#346f36cc", + "value": 1 + } + ] } - ], - "title": "", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + }, + { + "id": "links", + "value": [ + { + "title": "Infra Overview", + "url": "/d/infra-overview?${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "K" }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Disk Usage Detail", - "url": "/d/node-cluster?var-cls=${cls}&viewPanel=199&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - }, - { - "color": "#f5a673", - "value": 0.8 - }, - { - "color": "red", - "value": 0.9 - }, - { - "color": "#b783af", - "value": 0.95 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 6, - "y": 17 - }, - "id": 147, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "exemplar": false, - "expr": "max(node:fs:space_usage{cls=\"$cls\"})", - "interval": "", - "legendFormat": "Space", - "refId": "A" + { + "color": "#5b9cd5", + "value": 1 + } + ] } - ], - "title": "", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + }, + { + "id": "links", + "value": [ + { + "title": "ETCD Overview", + "url": "/d/etcd-overview?${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "L" }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "links": [ - { - "title": "File Descriptor Usage : ${cls}", - "url": "/d/node-cluster?var-cls=${cls}&viewPanel=58&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - }, - { - "color": "#f5a673", - "value": 0.8 - }, - { - "color": "red", - "value": 0.9 - }, - { - "color": "#b783af", - "value": 0.95 - }, - { - "color": "text", - "value": 1 - } - ] + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "unit": "sci" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 8, - "y": 17 - }, - "id": 150, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#cc4637d9", + "value": 1 + } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "Redis Instance ${__field.labels.ins} @ ${__field.labels.instance}", + "url": "/d/redis-instance?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "M" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "exemplar": false, - "expr": "max(node:ins:fd_usage{cls=\"$cls\"})", - "interval": "", - "legendFormat": "FD", - "refId": "A" + { + "color": "#d0475799", + "value": 1 + } + ] } - ], - "title": "", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + }, + { + "id": "links", + "value": [ + { + "title": "Minio Instance: ${__field.labels.ins}", + "url": "/d/minio-overview?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "N" }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "links": [ - { - "title": "iNode Usage Detail", - "url": "/d/node-cluster?var-ins=${ins}&var-id=${ins}&viewPanel=174&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - }, - { - "color": "#f5a673", - "value": 0.8 - }, - { - "color": "red", - "value": 0.9 - }, - { - "color": "#b783af", - "value": 0.95 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 10, - "y": 17 - }, - "id": 149, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "max(node:fs:inode_usage{cls=\"$cls\"})", - "interval": "", - "legendFormat": "iNode", - "refId": "A" + { + "color": "#806c52", + "value": 1 + } + ] } - ], - "title": "", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + }, + { + "id": "links", + "value": [ + { + "title": "Mongo Instance : ${__field.labels.ins}", + "url": "/d/mongo-overview?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "Y" }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "links": [ - { - "title": "IOPS Detail : $cls", - "url": "/d/node-cluster?var-cls=${cls}&viewPanel=46&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 10 - }, - { - "color": "#fcdb72", - "value": 50000 - }, - { - "color": "#f5a673", - "value": 100000 - } - ] + { + "color": "#6a8d9d", + "value": 1 + } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "MySQL Instance : ${__field.labels.ins}", + "url": "/d/mysql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "P" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 12, - "y": 17 - }, - "id": 155, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#5a8da5", + "value": 1 + } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "MySQL Instance : ${__field.labels.ins}", + "url": "/d/mysql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "S" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "PGSQL PITR : ${__field.labels.cls}", + "url": "/d/pgsql-pitr?var-cls=${__field.labels.cls}&${__url_time_range}" + } + ] + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#252f34", + "value": null }, - "exemplar": false, - "expr": "sum(node:cls:disk_iops_1m{cls=\"$cls\"})", - "interval": "", - "legendFormat": "IOPS", - "refId": "A" + { + "color": "#42606b", + "value": 1 + } + ] } - ], - "title": "", - "type": "stat" + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 24, + "x": 0, + "y": 8 + }, + "id": 264, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 12 }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pg_up{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "postgres {{ ins }}", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pgbouncer_up{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "pgbouncer {{ ins }}", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "patroni_up{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "patroni {{ ins }}", + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pg_exporter_agent_up{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "pg_exporter {{ ins }}", + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pgbouncer_exporter_agent_up{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "pgb_exporter {{ ins }}", + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node_up{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "node {{ ins }}", + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "haproxy_up{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "haproxy {{ ins }}", + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "docker_up{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "docker {{ ins }}", + "refId": "H" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "promtail_up{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "promtail {{ ins }}", + "refId": "I" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "infra_up{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "J" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "etcd_up{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "K" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "redis_up{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "L" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "minio_up{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "M" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "mongo_up{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "N" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "mysql_up{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "mysql {{ ins }}", + "refId": "Y" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "mysql_exporter_up{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "mysql_exporter", + "refId": "P" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pgbackrest_exporter_agent_up{cls=\"$cls\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "pgbackrest {{ ins }}", + "refId": "S" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Overall pressure for this PostgreSQL Node and Instance. \nmax(node:ins:cpu_usage, pg:ins:load, pgbouncer:ins:load)", + "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": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Disk IO Bandwidth Detail : ${cls}", - "url": "/d/node-cluster?var-cls=${cls}&viewPanel=45&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 10000000 - }, - { - "color": "#fcdb72", - "value": 100000000 - }, - { - "color": "#f5a673", - "value": 500000000 - }, - { - "color": "red", - "value": 1000000000 - }, - { - "color": "#b783af", - "value": 2000000000 - }, - { - "color": "text", - "value": 4000000000 - } - ] - }, - "unit": "Bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 14, - "y": 17 - }, - "id": 156, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 14 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:cls:disk_io_bytes_rate1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "Disk IO", - "refId": "A" + "insertNulls": false, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "decimals": 1, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 0.7 + }, + { + "color": "purple", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "cluster" + }, + "properties": [ + { + "id": "custom.drawStyle", + "value": "line" + }, + { + "id": "custom.fillOpacity", + "value": 30 + }, + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "color", + "value": { + "fixedColor": "rgba(128, 128, 128, 0.2)", + "mode": "fixed" } - ], - "title": "", - "type": "stat" + }, + { + "id": "links", + "value": [ + { + "title": "Node Cluster : ${__field.labels.cls}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=219&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&var-cls=${cls}&${__url_time_range}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 0, + "y": 12 + }, + "id": 241, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:cls:cpu_usage_1m{cls=\"$cls\"}", + "hide": false, + "interval": "", + "legendFormat": "cluster", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:cpu_usage_1m{cls=\"$cls\", ins!=\"$primary\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "B" + } + ], + "title": "", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Alerting event graph. Each stripe represent an alerting Event. Gray transparent stipe are pending alerts.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "hidden", + "axisSoftMax": 1.2, + "axisSoftMin": 0, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 98, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Network interface bandwidth detail", - "url": "/d/node-cluster?var-cls=${cls}&viewPanel=178&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 10000000 - }, - { - "color": "#fcdb72", - "value": 100000000 - }, - { - "color": "#f5a673", - "value": 500000000 - }, - { - "color": "red", - "value": 1000000000 - }, - { - "color": "#b783af", - "value": 2000000000 - }, - { - "color": "text", - "value": 4000000000 - } - ] - }, - "unit": "Bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 16, - "y": 17 - }, - "id": 158, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 14 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineWidth": 0, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [ + { + "targetBlank": true, + "title": "AlertInfo ${__field.labels.alertname} on Instance ${__field.labels.ins}", + "url": "http://a.pigsty/#/alerts?filter=%7Bins%3D%22${__field.labels.ins}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" + }, + { + "targetBlank": true, + "title": "Silence ${__field.labels.alertname} on Instance ${__field.labels.ins}", + "url": "http://a.pigsty/#/silences/new?filter=%7Bins%3D%22${__field.labels.ins}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" + }, + { + "title": "Node Cluster for ${__field.labels.cls} : Alerts", + "url": "/d/node-cluster?var-cls=${__field.labels.cls}&${__url_time_range}" + }, + { + "title": "Node Instance for ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "A" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 66 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "1": { + "index": 0, + "text": "FiringšŸ”„" + } }, - "exemplar": false, - "expr": "node:cls:network_io_bytes_rate1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "Net Traff", - "refId": "A" + "type": "value" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 25 + }, + { + "id": "color", + "value": { + "fixedColor": "rgba(128, 128, 128, 0.5)", + "mode": "fixed" } - ], - "title": "", - "type": "stat" + }, + { + "id": "mappings", + "value": [ + { + "options": { + "1": { + "color": "gray", + "index": 0, + "text": "Pendā°" + } + }, + "type": "value" + } + ] + } + ] + }, + { + "matcher": { + "id": "byType", + "options": "time" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "auto" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 12, + "y": 12 + }, + "id": 227, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "TCP Error Detail", - "url": "/d/node-cluster?var-cls=${cls}&viewPanel=55&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 1 - }, - { - "color": "#f5a673", - "value": 2 - }, - { - "color": "red", - "value": 4 - }, - { - "color": "#b783af", - "value": 8 - }, - { - "color": "text", - "value": 16 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 18, - "y": 17 - }, - "id": 154, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "sum(node:ins:tcp_error_rate1m{cls=\"$cls\"})", - "interval": "", - "legendFormat": "TCP Errs", - "refId": "A" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "ALERTS{cls=\"$cls\", alertstate=\"firing\"}", + "interval": "", + "legendFormat": "[{{ severity }}šŸ”„] {{alertname}} @ {{ instance }}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "ALERTS{cls=\"$cls\", alertstate=\"pending\"} ", + "hide": false, + "interval": "", + "legendFormat": "[{{ severity }}ā°] {{alertname}} @ {{ instance }}", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "0", + "hide": true, + "interval": "", + "legendFormat": "Alert", + "refId": "C" + } + ], + "title": "", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "links": [ + { + "title": "CPU Usage Detail", + "url": "/d/node-cluster?var-cls=${cls}&viewPanel=172&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "Ƙ", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.3 + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0.5 + }, + { + "color": "#d44a3a", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 + }, + { + "color": "rgba(0, 0, 0, 0.7)", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 0, + "y": 17 + }, + "id": 75, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:cls:cpu_usage{cls=\"$cls\"}", + "instant": false, + "interval": "", + "legendFormat": "CPU", + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "links": [ + { + "title": "Node Load Detail", + "url": "/d/node-cluster?var-cls=${cls}&viewPanel=186&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "Ƙ", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.3 + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0.5 + }, + { + "color": "#d44a3a", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 + }, + { + "color": "rgba(0, 0, 0, 0.7)", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 2, + "y": 17 + }, + "id": 145, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:cls:stdload1{cls=\"$cls\"}", + "instant": false, + "interval": "", + "legendFormat": "load1", + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "Memory Detail", + "url": "/d/node-cluster?var-cls=${cls}&viewPanel=254&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.3 + }, + { + "color": "#f5a673", + "value": 0.5 + }, + { + "color": "red", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 4, + "y": 17 + }, + "id": 148, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(node:ins:mem_usage{cls=\"$cls\"})", + "interval": "", + "legendFormat": "Memory", + "range": true, + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "Disk Usage Detail", + "url": "/d/node-cluster?var-cls=${cls}&viewPanel=199&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + }, + { + "color": "#f5a673", + "value": 0.8 + }, + { + "color": "red", + "value": 0.9 + }, + { + "color": "#b783af", + "value": 0.95 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 6, + "y": 17 + }, + "id": 147, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "max(node:fs:space_usage{cls=\"$cls\"})", + "interval": "", + "legendFormat": "Space", + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "links": [ + { + "title": "File Descriptor Usage : ${cls}", + "url": "/d/node-cluster?var-cls=${cls}&viewPanel=58&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + }, + { + "color": "#f5a673", + "value": 0.8 + }, + { + "color": "red", + "value": 0.9 + }, + { + "color": "#b783af", + "value": 0.95 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "sci" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 8, + "y": 17 + }, + "id": 150, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "max(node:ins:fd_usage{cls=\"$cls\"})", + "interval": "", + "legendFormat": "FD", + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "iNode Usage Detail", + "url": "/d/node-cluster?var-ins=${ins}&var-id=${ins}&viewPanel=174&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + }, + { + "color": "#f5a673", + "value": 0.8 + }, + { + "color": "red", + "value": 0.9 + }, + { + "color": "#b783af", + "value": 0.95 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 10, + "y": 17 + }, + "id": 149, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "max(node:fs:inode_usage{cls=\"$cls\"})", + "interval": "", + "legendFormat": "iNode", + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "IOPS Detail : $cls", + "url": "/d/node-cluster?var-cls=${cls}&viewPanel=46&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 10 + }, + { + "color": "#fcdb72", + "value": 50000 + }, + { + "color": "#f5a673", + "value": 100000 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 12, + "y": 17 + }, + "id": 155, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "sum(node:cls:disk_iops_1m{cls=\"$cls\"})", + "interval": "", + "legendFormat": "IOPS", + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "Disk IO Bandwidth Detail : ${cls}", + "url": "/d/node-cluster?var-cls=${cls}&viewPanel=45&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 10000000 + }, + { + "color": "#fcdb72", + "value": 100000000 + }, + { + "color": "#f5a673", + "value": 500000000 + }, + { + "color": "red", + "value": 1000000000 + }, + { + "color": "#b783af", + "value": 2000000000 + }, + { + "color": "text", + "value": 4000000000 + } + ] + }, + "unit": "Bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 14, + "y": 17 + }, + "id": 156, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 14 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:cls:disk_io_bytes_rate1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "Disk IO", + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "Network interface bandwidth detail", + "url": "/d/node-cluster?var-cls=${cls}&viewPanel=178&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 10000000 + }, + { + "color": "#fcdb72", + "value": 100000000 + }, + { + "color": "#f5a673", + "value": 500000000 + }, + { + "color": "red", + "value": 1000000000 + }, + { + "color": "#b783af", + "value": 2000000000 + }, + { + "color": "text", + "value": 4000000000 + } + ] + }, + "unit": "Bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 16, + "y": 17 + }, + "id": 158, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 14 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:cls:network_io_bytes_rate1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "Net Traff", + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "TCP Error Detail", + "url": "/d/node-cluster?var-cls=${cls}&viewPanel=55&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 1 + }, + { + "color": "#f5a673", + "value": 2 + }, + { + "color": "red", + "value": 4 + }, + { + "color": "#b783af", + "value": 8 + }, + { + "color": "text", + "value": 16 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 18, + "y": 17 + }, + "id": 154, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "sum(node:ins:tcp_error_rate1m{cls=\"$cls\"})", + "interval": "", + "legendFormat": "TCP Errs", + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "links": [ + { + "title": "Node Load Detail", + "url": "/d/node-cluster?var-cls=${cls}&viewPanel=52&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "noValue": "Ƙ", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 1e-06 + }, + { + "color": "super-light-green", + "value": 1e-05 + }, + { + "color": "#EAB839", + "value": 0.0001 + }, + { + "color": "#f5a673", + "value": 0.001 + }, + { + "color": "red", + "value": 0.01 + }, + { + "color": "#b783af", + "value": 0.1 + } + ] + }, + "unit": "sci" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 20, + "y": 17 + }, + "id": 175, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "sum(node:ins:tcp_retrans_ratio1m{cls=\"$cls\"})", + "instant": false, + "interval": "", + "legendFormat": "Retrans", + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "Time Sync Details : ${cls}", + "url": "/d/node-cluster?var-cls=${cls}&viewPanel=212&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "0": { + "color": "#cc4637d9", + "index": 1, + "text": "Failed" + }, + "1": { + "color": "#346f36cc", + "index": 0, + "text": "Synced" } - ], - "title": "", - "type": "stat" + }, + "type": "value" + } + ], + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#cc4637d9", + "value": null + }, + { + "color": "#346f36cc", + "value": 1 + }, + { + "color": "#cc4637d9", + "value": 1.1 + } + ] + }, + "unit": "s" }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 22, + "y": 17 + }, + "id": 276, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 14 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(node_timex_sync_status{cls=\"$cls\"})", + "interval": "", + "legendFormat": "Time Sync", + "range": true, + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 21 + }, + "id": 163, + "panels": [ { - "datasource": { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "15m" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 20 + }, + { + "id": "custom.lineWidth", + "value": 1 + }, + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "5m" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "color", + "value": { + "fixedColor": "#346f36cc", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "1m" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#fcdb72", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Realtime" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 147 + }, + "id": 172, + "options": { + "legend": { + "calcs": [ + "mean", + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { "type": "prometheus", "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:cls:cpu_usage{cls=\"$cls\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "Realtime", + "refId": "A" }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "links": [ - { - "title": "Node Load Detail", - "url": "/d/node-cluster?var-cls=${cls}&viewPanel=52&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "noValue": "\u00d8", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 1e-06 - }, - { - "color": "super-light-green", - "value": 1e-05 - }, - { - "color": "#EAB839", - "value": 0.0001 - }, - { - "color": "#f5a673", - "value": 0.001 - }, - { - "color": "red", - "value": 0.01 - }, - { - "color": "#b783af", - "value": 0.1 - } - ] - }, - "unit": "sci" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 20, - "y": 17 - }, - "id": 175, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "sum(node:ins:tcp_retrans_ratio1m{cls=\"$cls\"})", - "instant": false, - "interval": "", - "legendFormat": "Retrans", - "refId": "A" - } - ], - "title": "", - "type": "stat" - }, - { - "datasource": { + { + "datasource": { "type": "prometheus", "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:cls:cpu_usage_1m{cls=\"$cls\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "1m", + "refId": "B" }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Time Sync Details : ${cls}", - "url": "/d/node-cluster?var-cls=${cls}&viewPanel=212&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "0": { - "color": "#cc4637d9", - "index": 1, - "text": "Failed" - }, - "1": { - "color": "#346f36cc", - "index": 0, - "text": "Synced" - } - }, - "type": "value" - } - ], - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#cc4637d9", - "value": null - }, - { - "color": "#346f36cc", - "value": 1 - }, - { - "color": "#cc4637d9", - "value": 1.1 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 22, - "y": 17 - }, - "id": 276, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 14 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.5.2", - "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:cls:cpu_usage_5m{cls=\"$cls\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "5m", + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:cls:cpu_usage_15m{cls=\"$cls\"}", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "15m", + "refId": "D" + } + ], + "title": "Cluster CPU Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Sum of all state will approximately to the number of cpu core", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "hidden", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 0, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "idle" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "rgba(180, 180, 180, 0.5)", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "iowait" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#b783af", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "irq" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "nice" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "super-light-yellow", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "softirq" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "super-light-red", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "steal" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "semi-dark-yellow", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "system" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "user" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "light-green", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "CPU Count" + }, + "properties": [ + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.lineWidth", + "value": 1 + }, + { + "id": "unit", + "value": "none" + }, + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "custom.axisPlacement", + "value": "hidden" + } + ] + }, + { + "matcher": { + "id": "byType", + "options": "time" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "auto" + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 147 + }, + "id": 36, + "options": { + "legend": { + "calcs": [ + "mean", + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "sum by (mode) (rate(node_cpu_seconds_total{cls=\"$cls\"}[1m]))", + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{ mode }}", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "sum(node:cls:cpu_count{cls=\"$cls\"})", + "hide": false, + "interval": "", + "legendFormat": "CPU Count", + "refId": "B" + } + ], + "title": "Cluster CPU Time by State (per Second)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(node_timex_sync_status{cls=\"$cls\"})", - "interval": "", - "legendFormat": "Time Sync", - "range": true, - "refId": "A" - } - ], - "title": "", - "type": "stat" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 21 - }, - "id": 163, - "panels": [ + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=35&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 16, + "x": 0, + "y": 153 + }, + "id": 35, + "options": { + "legend": { + "calcs": [ + "mean", + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:cpu_usage_1m{cls=\"$cls\"}", + "instant": false, + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "Instance CPU Usage (1m)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "percentunit" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "15m" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 20 - }, - { - "id": "custom.lineWidth", - "value": 1 - }, - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "5m" - }, - "properties": [ - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "color", - "value": { - "fixedColor": "#346f36cc", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "1m" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#fcdb72", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Realtime" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 115 - }, - "id": 172, - "options": { - "legend": { - "calcs": [ - "mean", - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:cls:cpu_usage{cls=\"$cls\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Realtime", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:cls:cpu_usage_1m{cls=\"$cls\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "1m", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:cls:cpu_usage_5m{cls=\"$cls\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "5m", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:cls:cpu_usage_15m{cls=\"$cls\"}", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "15m", - "refId": "D" - } - ], - "title": "Cluster CPU Usage", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=180&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "Ƙ", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.3 + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0.5 + }, + { + "color": "#d44a3a", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 + }, + { + "color": "rgba(0, 0, 0, 0.7)", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 16, + "y": 153 + }, + "id": 180, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "value_and_name" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:cpu_usage{cls=\"$cls\"}", + "instant": false, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "", + "type": "stat" + } + ], + "title": "Processor", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 22 + }, + "id": 191, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 16, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "load15" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 20 + }, + { + "id": "custom.lineWidth", + "value": 1 + }, + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "load5" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "color", + "value": { + "fixedColor": "#346f36cc", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "load1" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#fcdb72", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 179 + }, + "id": 186, + "options": { + "legend": { + "calcs": [ + "mean", + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:cls:stdload1{cls=\"$cls\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "load1", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:cls:stdload5{cls=\"$cls\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "load5", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:cls:stdload15{cls=\"$cls\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "load15", + "refId": "C" + } + ], + "title": "Cluster Normalized Load (1m, 5m, 15m)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Sum of all state will approximately to the number of cpu core", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "hidden", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 40, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 0, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "s" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "idle" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "rgba(180, 180, 180, 0.5)", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "iowait" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#b783af", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "irq" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "nice" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "super-light-yellow", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "softirq" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "super-light-red", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "steal" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "semi-dark-yellow", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "system" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "user" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "light-green", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "CPU Count" - }, - "properties": [ - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" - } - }, - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "custom.lineWidth", - "value": 1 - }, - { - "id": "unit", - "value": "none" - }, - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - }, - { - "id": "decimals", - "value": 0 - }, - { - "id": "custom.axisPlacement", - "value": "hidden" - } - ] - }, - { - "matcher": { - "id": "byType", - "options": "time" - }, - "properties": [ - { - "id": "custom.axisPlacement", - "value": "auto" - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 115 - }, - "id": 36, - "options": { - "legend": { - "calcs": [ - "mean", - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "sum by (mode) (rate(node_cpu_seconds_total{cls=\"$cls\"}[1m]))", - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{ mode }}", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "sum(node:cls:cpu_count{cls=\"$cls\"})", - "hide": false, - "interval": "", - "legendFormat": "CPU Count", - "refId": "B" - } - ], - "title": "Cluster CPU Time by State (per Second)", - "type": "timeseries" + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=186&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 179 + }, + "id": 173, + "options": { + "legend": { + "calcs": [ + "mean", + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:stdload1{cls=\"$cls\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "Instance Normalized Load (1m)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=30&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 186 + }, + "id": 30, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node_procs_blocked{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "B" + } + ], + "title": "Blocked Processes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Uninterruptible sleep (usually IO)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=119&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 186 + }, + "id": 119, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node_processes_state{cls=\"$cls\", state=\"D\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "Process in D State", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=187&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 0, + "y": 192 + }, + "id": 187, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node_processes_threads{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "Thread", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Context switch rate 1m", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#3e668f", + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "hue", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=32&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 12, + "y": 192 + }, + "id": 32, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Last", + "sortDesc": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:ctx_switch_rate1m{cls=\"$cls\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "Context Switch", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#fcdb72", + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=79&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 0, + "y": 197 + }, + "id": 79, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:forks_rate1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "Fork", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Interrupt Rate 1m", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#cc4637d9", + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=204&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 12, + "y": 197 + }, + "id": 204, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Last", + "sortDesc": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:interrupt_rate1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "Interrupt", + "type": "timeseries" + } + ], + "title": "Schedule", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 23 + }, + "id": 165, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Memory usage ratio for each nodes:\n(total - avail) / total", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ + { + "title": "Node Instance: ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "-1": { + "color": "gray", + "index": 1, + "text": "N/A" + } + }, + "type": "value" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=35&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 16, - "x": 0, - "y": 121 - }, - "id": 35, - "options": { - "legend": { - "calcs": [ - "mean", - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:cpu_usage_1m{cls=\"$cls\"}", - "instant": false, - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "Instance CPU Usage (1m)", - "type": "timeseries" - }, + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "No Data" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "green", + "value": 0.1 + }, + { + "color": "yellow", + "value": 0.3 + }, + { + "color": "orange", + "value": 0.5 + }, + { + "color": "red", + "value": 0.7 + }, + { + "color": "purple", + "value": 0.9 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 203 + }, + "id": 254, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:mem_usage{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "A" + } + ], + "title": "Memory Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "decimals": 0, + "links": [ + { + "title": "Node Instance Memory Committed : ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=188&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "orange", + "value": 0.5 + }, + { + "color": "red", + "value": 0.7 + }, + { + "color": "purple", + "value": 0.9 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Commit Ratio" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 203 + }, + "id": 188, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node_memory_Committed_AS_bytes{cls=\"$cls\"} / node_memory_CommitLimit_bytes{cls=\"$cls\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "Memory Committed Ratio", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=188&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 209 + }, + "id": 243, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:swap_usage{cls=\"$cls\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "Swap Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepBefore", + "lineWidth": 0, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Total" + }, + "properties": [ + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "HugePage" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#b783af", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Free" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#346f36cc", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Cache" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#fcdb72", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Buffer" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Kernel" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 80 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Anon" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Application RSS" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 80 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 209 + }, + "id": 252, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "sum(node_memory_Hugepagesize_bytes{cls=\"$cls\"} * node_memory_HugePages_Total{cls=\"$cls\"} )", + "hide": false, + "interval": "", + "legendFormat": "HugePage", + "range": true, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "sum(node:ins:mem_kernel{cls=\"$cls\"})", + "interval": "", + "legendFormat": "Kernel", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "sum(node:ins:mem_rss{cls=\"$cls\"})", + "interval": "", + "legendFormat": "Application RSS", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "sum(node_memory_Cached_bytes{cls=\"$cls\"} - node_memory_Mapped_bytes{cls=\"$cls\"})", + "interval": "", + "legendFormat": "Cache", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "sum(node_memory_Buffers_bytes{cls=\"$cls\"})", + "interval": "", + "legendFormat": "Buffer", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "sum(node_memory_MemFree_bytes{cls=\"$cls\"})", + "interval": "", + "legendFormat": "Free", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "sum(node_memory_MemTotal_bytes{cls=\"$cls\"})", + "hide": false, + "interval": "", + "legendFormat": "Total", + "range": true, + "refId": "H" + } + ], + "title": "Cluster Memory Structure", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Rate of pages in/out/swapin/swapout", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=31&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 215 + }, + "id": 31, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:pagein_rate1m{cls=\"$cls\"}", + "instant": false, + "interval": "", + "legendFormat": "ā–²{{ ins }}", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "- node:ins:pageout_rate1m{cls=\"$cls\"}", + "instant": false, + "interval": "", + "legendFormat": "ā–¼{{ ins }}", + "refId": "B" + } + ], + "title": "Page In/Out Rate", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Rate of pages in/out/swapin/swapout", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=205&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 215 + }, + "id": 205, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:swapin_rate1m{cls=\"$cls\"}", + "instant": false, + "interval": "", + "legendFormat": "ā–²{{ ins }}", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "- node:ins:swapout_rate1m{cls=\"$cls\"}", + "instant": false, + "interval": "", + "legendFormat": "ā–¼{{ ins }}", + "refId": "B" + } + ], + "title": "Swap In/Out Rate", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=91&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 221 + }, + "id": 244, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node_memory_Dirty_bytes{cls=\"$cls\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "Dirty Bytes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=91&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 221 + }, + "id": 91, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node_memory_Writeback_bytes{cls=\"$cls\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "Write Back", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#b783af", + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": -1, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=206&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 227 + }, + "id": 206, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "exemplar": false, + "expr": "node:ins:pgmajfault_rate1m{cls=\"$cls\"}", + "hide": false, + "interval": "", + "legendFormat": "PageFault", + "refId": "A" + } + ], + "title": "Major Page Fault (Rate1m)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#cc4637d9", + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": -1, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=88&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 227 + }, + "id": 88, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:pagefault_rate1m{cls=\"$cls\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "Page Fault (Rate1m)", + "type": "timeseries" + } + ], + "title": "Memory", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 24 + }, + "id": 167, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for read IOPS, ā–¼ for write IOPS ", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=46&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 29 + }, + "id": 46, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:disk_reads_rate1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "ā–²{{ ins }}", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "- node:ins:disk_writes_rate1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "ā–¼{{ ins }}", + "refId": "B" + } + ], + "title": "Read/Write IOPS", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for read bandwidth, ā–¼ for write bandwidth", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=45&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "Bps" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "/dfa/" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 40 + }, + { + "id": "custom.fillOpacity", + "value": 10 + }, + { + "id": "custom.lineWidth", + "value": 2 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 29 + }, + "id": 45, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:disk_read_bytes_rate1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "ā–²{{ ins }}", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "- node:ins:disk_write_bytes_rate1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "ā–¼{{ ins }}", + "refId": "B" + } + ], + "title": "Read/Write Bandwidth", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Merged ratio of read / write requests\nā–² for read ā–¼ for write", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 2, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=180&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "\u00d8", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.5 - }, - { - "color": "#d44a3a", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "rgba(0, 0, 0, 0.7)", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 8, - "x": 16, - "y": 121 - }, - "id": 180, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "value_and_name" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:cpu_usage{cls=\"$cls\"}", - "instant": false, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "", - "type": "stat" + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=201&${__url_time_range}" } - ], - "title": "Processor", - "type": "row" + ], + "mappings": [], + "max": 1, + "min": -1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "/dfa/" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 50 + }, + { + "id": "custom.lineWidth", + "value": 2 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 67 + }, + "id": 201, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:dev:disk_mreads_ratio1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "ā–²{{ ins }}:{{ device }}", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "- node:dev:disk_mwrites_ratio1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "ā–¼{{ ins }}:{{ device }}", + "refId": "B" + } + ], + "title": "Reads/Writes Merged Ratio", + "type": "timeseries" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 22 + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for read, ā–¼ for write, Showing I/O pattern", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 2, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=47&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "/dfa/" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.pointSize", + "value": 4 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 67 + }, + "id": 47, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:dev:disk_read_batch_1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "ā–²{{ ins }}:{{ device }}", + "refId": "A" }, - "id": 191, - "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "- node:dev:disk_write_batch_1m{cls=\"$cls\"}", + "hide": false, + "interval": "", + "legendFormat": "ā–¼{{ ins }}:{{ device }}", + "refId": "B" + } + ], + "title": "Read/Write Request Size (areq-sz)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for read rt, ā–¼ for write rt", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "points", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 2, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 16, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "percentunit" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "load15" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 20 - }, - { - "id": "custom.lineWidth", - "value": 1 - }, - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "load5" - }, - "properties": [ - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "color", - "value": { - "fixedColor": "#346f36cc", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "load1" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#fcdb72", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 147 - }, - "id": 186, - "options": { - "legend": { - "calcs": [ - "mean", - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:cls:stdload1{cls=\"$cls\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "load1", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:cls:stdload5{cls=\"$cls\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "load5", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:cls:stdload15{cls=\"$cls\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "load15", - "refId": "C" - } - ], - "title": "Cluster Normalized Load (1m, 5m, 15m)", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=29&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "/dfa/" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.pointSize", + "value": 4 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 73 + }, + "id": 29, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:dev:disk_read_rt_1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "ā–²{{ ins }}:{{ device }}", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "- node:dev:disk_write_rt_1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "ā–¼{{ ins }}:{{ device }}", + "refId": "B" + } + ], + "title": "Read/Write Await Time", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for read rt, ā–¼ for write rt", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "points", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 2, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=186&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 147 - }, - "id": 173, - "options": { - "legend": { - "calcs": [ - "mean", - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:stdload1{cls=\"$cls\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "Instance Normalized Load (1m)", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=202&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "/dfa/" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.pointSize", + "value": 4 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 73 + }, + "id": 202, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:dev:disk_io_rt_1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}:{{ device }}", + "refId": "A" + } + ], + "title": "Average Service Time (svctm)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Number of items which were in the queue at the sampling time point", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "bars", - "fillOpacity": 100, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=30&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 154 - }, - "id": 30, - "options": { - "legend": { - "calcs": [ - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node_procs_blocked{cls=\"$cls\"}", - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "B" - } - ], - "title": "Blocked Processes", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=38&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 79 + }, + "id": 38, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node_disk_io_now{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}:{{ device }}", + "refId": "A" + } + ], + "title": "Instant Queue Size", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "average number of operations waiting to be serviced.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 3, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Uninterruptible sleep (usually IO)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "bars", - "fillOpacity": 100, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=119&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 154 - }, - "id": 119, - "options": { - "legend": { - "calcs": [ - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node_processes_state{cls=\"$cls\", state=\"D\"}", - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "Process in D State", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=84&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 79 + }, + "id": 84, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:dev:disk_avg_queue_size{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}:{{ device }}", + "refId": "A" + } + ], + "title": "Average Queue Size", + "type": "timeseries" + } + ], + "title": "Disk", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 25 + }, + "id": 193, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "stepBefore", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=187&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 0, - "y": 160 - }, - "id": 187, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node_processes_threads{cls=\"$cls\"}", - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "Thread", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=199&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.8 + }, + { + "color": "#f5a673", + "value": 0.85 + }, + { + "color": "#E24D42", + "value": 0.9 + }, + { + "color": "#b783af", + "value": 0.95 + }, + { + "color": "text", + "value": 0.99 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 14, + "w": 6, + "x": 0, + "y": 30 + }, + "id": 189, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:fs:space_usage{cls=\"$cls\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }}:{{ mountpoint }}", + "refId": "A" + } + ], + "title": "Space Usage", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Prediction of avail filesystem space a day later!", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Context switch rate 1m", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#3e668f", - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "hue", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "stepBefore", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=32&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 160 - }, - "id": 32, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "sortBy": "Last", - "sortDesc": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:ctx_switch_rate1m{cls=\"$cls\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "Context Switch", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=110&${__url_time_range}" + } + ], + "mappings": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#fcdb72", - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "stepBefore", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=79&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 0, - "y": 165 - }, - "id": 79, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:forks_rate1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "Fork", - "type": "timeseries" - }, + "options": { + "from": -999999999999, + "result": { + "color": "#363636", + "index": 0, + "text": "FULL" + }, + "to": 0 + }, + "type": "range" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "text" + }, + { + "color": "#b783af", + "value": 0 + }, + { + "color": "red", + "value": 4000000000 + }, + { + "color": "#f5a673", + "value": 16000000000 + }, + { + "color": "#EAB839", + "value": 32000000000 + }, + { + "color": "#346f36cc", + "value": 64000000000 + }, + { + "color": "#3e668f", + "value": 1000000000000 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 14, + "w": 6, + "x": 6, + "y": 30 + }, + "id": 200, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:fs:space_predict_1d{cls=\"$cls\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }}:{{ mountpoint }}", + "refId": "A" + } + ], + "title": "Avail Space 1D Prediction", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 2, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Interrupt Rate 1m", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#cc4637d9", - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "stepBefore", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=204&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 165 - }, - "id": 204, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "sortBy": "Last", - "sortDesc": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:interrupt_rate1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "Interrupt", - "type": "timeseries" + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=174&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.3 + }, + { + "color": "#f5a673", + "value": 0.5 + }, + { + "color": "#E24D42", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 14, + "w": 6, + "x": 12, + "y": 30 + }, + "id": 174, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:fs:inode_usage{cls=\"$cls\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }}:{{ mountpoint }}", + "refId": "A" + } + ], + "title": "iNode Usage", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=198&${__url_time_range}" } - ], - "title": "Schedule", - "type": "row" + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + }, + { + "color": "red", + "value": 1 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 14, + "w": 6, + "x": 18, + "y": 30 + }, + "id": 198, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node_filesystem_device_error{cls=\"$cls\", fstype!~\"(n|root|tmp)fs.*\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }}:{{ mountpoint }}", + "refId": "A" + } + ], + "title": "Device Error", + "type": "stat" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 23 + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 5, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=182&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "text" + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 76 + }, + "id": 182, + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": true }, - "id": 165, - "panels": [ + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:fs:space_deriv1h{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}:{{ mountpoint }}", + "refId": "A" + } + ], + "title": "Space Derive 1h", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 1, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Memory usage ratio for each nodes:\n(total - avail) / total", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ip}", - "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "-1": { - "color": "gray", - "index": 1, - "text": "N/A" - } - }, - "type": "value" - }, - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 0, - "text": "No Data" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "green", - "value": 0.1 - }, - { - "color": "yellow", - "value": 0.3 - }, - { - "color": "orange", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "purple", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 171 - }, - "id": 254, - "options": { - "legend": { - "calcs": [ - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "sortBy": "Max", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node:ins:mem_usage{cls=\"$cls\"}", - "interval": "", - "legendFormat": "{{ ins }}", - "range": true, - "refId": "A" - } - ], - "title": "Memory Usage", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=199&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "green", + "value": 0.1 + }, + { + "color": "yellow", + "value": 0.8 + }, + { + "color": "orange", + "value": 0.85 + }, + { + "color": "#E24D42", + "value": 0.9 + }, + { + "color": "purple", + "value": 0.95 + }, + { + "color": "text", + "value": 0.99 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 76 + }, + "id": 199, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:fs:space_usage{cls=\"$cls\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }}:{{ mountpoint }}", + "refId": "A" + } + ], + "title": "Space Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "decimals": 0, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "hue", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "decimals": 0, - "links": [ - { - "title": "Node Instance Memory Committed : ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=188&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "orange", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "purple", - "value": 0.9 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Commit Ratio" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 171 - }, - "id": 188, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node_memory_Committed_AS_bytes{cls=\"$cls\"} / node_memory_CommitLimit_bytes{cls=\"$cls\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "Memory Committed Ratio", - "type": "timeseries" - }, + "title": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=188", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=51&${__url_time_range}" + } + ], + "mappings": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineStyle": { - "fill": "solid" - }, - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 2, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=188&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 177 - }, - "id": 243, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:swap_usage{cls=\"$cls\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "Swap Usage", - "type": "timeseries" + "options": { + "-1": { + "index": 1, + "text": "+Inf" + } + }, + "type": "value" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 40, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "stepBefore", - "lineWidth": 0, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "decbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Total" - }, - "properties": [ - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" - } - }, - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "HugePage" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#b783af", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Free" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#346f36cc", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Cache" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#fcdb72", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Buffer" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Kernel" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 80 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Anon" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Application RSS" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 80 - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 177 - }, - "id": 252, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "sum(node_memory_Hugepagesize_bytes{cls=\"$cls\"} * node_memory_HugePages_Total{cls=\"$cls\"} )", - "hide": false, - "interval": "", - "legendFormat": "HugePage", - "range": true, - "refId": "G" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "sum(node:ins:mem_kernel{cls=\"$cls\"})", - "interval": "", - "legendFormat": "Kernel", - "range": true, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "sum(node:ins:mem_rss{cls=\"$cls\"})", - "interval": "", - "legendFormat": "Application RSS", - "range": true, - "refId": "E" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "sum(node_memory_Cached_bytes{cls=\"$cls\"} - node_memory_Mapped_bytes{cls=\"$cls\"})", - "interval": "", - "legendFormat": "Cache", - "range": true, - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "sum(node_memory_Buffers_bytes{cls=\"$cls\"})", - "interval": "", - "legendFormat": "Buffer", - "range": true, - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "sum(node_memory_MemFree_bytes{cls=\"$cls\"})", - "interval": "", - "legendFormat": "Free", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "sum(node_memory_MemTotal_bytes{cls=\"$cls\"})", - "hide": false, - "interval": "", - "legendFormat": "Total", - "range": true, - "refId": "H" - } - ], - "title": "Cluster Memory Structure", - "type": "timeseries" - }, + "options": { + "match": "null+nan", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 3200000, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "text" + }, + { + "color": "#b783af", + "value": 3600 + }, + { + "color": "#f5a673", + "value": 86400 + }, + { + "color": "#fcdb72", + "value": 604800 + }, + { + "color": "#346f36cc", + "value": 126230400 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 82 + }, + "id": 51, + "options": { + "legend": { + "calcs": [ + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:fs:space_exhaust{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}:{{ mountpoint }}", + "refId": "A" + } + ], + "title": "Space Exhaust Estimate", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 2, + "gradientMode": "hue", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Rate of pages in/out/swapin/swapout", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=31&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 183 - }, - "id": 31, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:pagein_rate1m{cls=\"$cls\"}", - "instant": false, - "interval": "", - "legendFormat": "\u25b2{{ ins }}", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "- node:ins:pageout_rate1m{cls=\"$cls\"}", - "instant": false, - "interval": "", - "legendFormat": "\u25bc{{ ins }}", - "refId": "B" - } - ], - "title": "Page In/Out Rate", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=58&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 82 + }, + "id": 58, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:fd_usage{cls=\"$cls\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "B" + } + ], + "title": "FD Usage", + "type": "timeseries" + } + ], + "title": "Filesystem", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 26 + }, + "id": 169, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for transmit (out) and ā–¼ for receive (in)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 2, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Rate of pages in/out/swapin/swapout", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=205&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 183 - }, - "id": 205, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:swapin_rate1m{cls=\"$cls\"}", - "instant": false, - "interval": "", - "legendFormat": "\u25b2{{ ins }}", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "- node:ins:swapout_rate1m{cls=\"$cls\"}", - "instant": false, - "interval": "", - "legendFormat": "\u25bc{{ ins }}", - "refId": "B" - } - ], - "title": "Swap In/Out Rate", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=183&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "pps" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 63 + }, + "id": 183, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:network_tx_pps1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "ā–²{{ ins }}", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "- node:ins:network_rx_pps1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "ā–¼{{ ins }}", + "refId": "B" + } + ], + "title": "Transmit/Receive Packets", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for transmit (out) and ā–¼ for receive (in)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 2, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=91&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 189 - }, - "id": 244, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node_memory_Dirty_bytes{cls=\"$cls\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "Dirty Bytes", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=185&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "Bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 63 + }, + "id": 185, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:network_tx_bytes_rate1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "ā–²{{ ins }}", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "- node:ins:network_rx_bytes_rate1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "ā–¼{{ ins }}", + "refId": "B" + } + ], + "title": "Transmit/Receive Bandwidth", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for transmit (out) and ā–¼ for receive (in)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=91&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 189 - }, - "id": 91, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node_memory_Writeback_bytes{cls=\"$cls\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "Write Back", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=53&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "pps" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 72 + }, + "id": 53, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:dev:network_tx_pps1m{cls=\"$cls\", device!=\"lo\"}", + "interval": "", + "legendFormat": "ā–²{{ ins }}:{{ device }}", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "- node:ins:network_rx_pps1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "ā–¼{{ ins }}:{{ device }}", + "refId": "B" + } + ], + "title": "Transmit/Receive Packets (Interface)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for transmit (out) and ā–¼ for receive (in)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#b783af", - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": -1, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "stepBefore", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=206&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 195 - }, - "id": 206, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "exemplar": false, - "expr": "node:ins:pgmajfault_rate1m{cls=\"$cls\"}", - "hide": false, - "interval": "", - "legendFormat": "PageFault", - "refId": "A" - } - ], - "title": "Major Page Fault (Rate1m)", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=188&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "Bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 72 + }, + "id": 178, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:dev:network_tx_bytes_rate1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "ā–²{{ ins }}:{{ device }}", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "- node:dev:network_rx_bytes_rate1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "ā–¼{{ ins }}:{{ device }}", + "refId": "B" + } + ], + "title": "Transmit/Receive Bandwidth (Interface)", + "type": "timeseries" + } + ], + "title": "Network", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 27 + }, + "id": 197, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 3, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#cc4637d9", - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": -1, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=88&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 195 - }, - "id": 88, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:pagefault_rate1m{cls=\"$cls\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "Page Fault (Rate1m)", - "type": "timeseries" + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=49&${__url_time_range}" } - ], - "title": "Memory", - "type": "row" + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "pps" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "ā–²out" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 76 + }, + "id": 49, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:tcp_insegs_rate1m{cls=\"$cls\"}", + "interval": "", + "intervalFactor": 2, + "legendFormat": "ā–¼{{ ins }}", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "- node:ins:tcp_outsegs_rate1m{cls=\"$cls\"}", + "interval": "", + "intervalFactor": 2, + "legendFormat": "ā–²{{ ins }}", + "refId": "B" + } + ], + "title": "TCP Segments", + "type": "timeseries" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 24 - }, - "id": 167, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for read IOPS, \u25bc for write IOPS ", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=46&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 29 - }, - "id": 46, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:disk_reads_rate1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "\u25b2{{ ins }}", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "- node:ins:disk_writes_rate1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "\u25bc{{ ins }}", - "refId": "B" - } - ], - "title": "Read/Write IOPS", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for read bandwidth, \u25bc for write bandwidth", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=45&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "Bps" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "/dfa/" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 40 - }, - { - "id": "custom.fillOpacity", - "value": 10 - }, - { - "id": "custom.lineWidth", - "value": 2 - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 29 - }, - "id": 45, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:disk_read_bytes_rate1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "\u25b2{{ ins }}", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "- node:ins:disk_write_bytes_rate1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "\u25bc{{ ins }}", - "refId": "B" - } - ], - "title": "Read/Write Bandwidth", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Merged ratio of read / write requests\n\u25b2 for read \u25bc for write", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 2, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=201&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": -1, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "percentunit" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "/dfa/" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 50 - }, - { - "id": "custom.lineWidth", - "value": 2 - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 35 - }, - "id": 201, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:dev:disk_mreads_ratio1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "\u25b2{{ ins }}:{{ device }}", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "- node:dev:disk_mwrites_ratio1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "\u25bc{{ ins }}:{{ device }}", - "refId": "B" - } - ], - "title": "Reads/Writes Merged Ratio", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for read, \u25bc for write, Showing I/O pattern", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 2, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=47&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "decbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "/dfa/" - }, - "properties": [ - { - "id": "custom.lineWidth", - "value": 0 - }, - { - "id": "custom.pointSize", - "value": 4 - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 35 - }, - "id": 47, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:dev:disk_read_batch_1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "\u25b2{{ ins }}:{{ device }}", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "- node:dev:disk_write_batch_1m{cls=\"$cls\"}", - "hide": false, - "interval": "", - "legendFormat": "\u25bc{{ ins }}:{{ device }}", - "refId": "B" - } - ], - "title": "Read/Write Request Size (areq-sz)", - "type": "timeseries" - }, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 2, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for read rt, \u25bc for write rt", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "points", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 2, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=29&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "s" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "/dfa/" - }, - "properties": [ - { - "id": "custom.lineWidth", - "value": 0 - }, - { - "id": "custom.pointSize", - "value": 4 - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 41 - }, - "id": 29, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:dev:disk_read_rt_1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "\u25b2{{ ins }}:{{ device }}", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "- node:dev:disk_write_rt_1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "\u25bc{{ ins }}:{{ device }}", - "refId": "B" - } - ], - "title": "Read/Write Await Time", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=93&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "pps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 76 + }, + "id": 93, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "- rate(node_netstat_Udp_OutDatagrams{cls=\"$cls\"}[1m])", + "interval": "", + "intervalFactor": 2, + "legendFormat": "ā–²{{ ins }}", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "rate(node_netstat_Udp_InDatagrams{cls=\"$cls\"}[1m])", + "interval": "", + "intervalFactor": 2, + "legendFormat": "ā–¼{{ ins }}", + "refId": "A" + } + ], + "title": "UDP Datagrams", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 5, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for read rt, \u25bc for write rt", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "points", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 2, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=202&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "s" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "/dfa/" - }, - "properties": [ - { - "id": "custom.lineWidth", - "value": 0 - }, - { - "id": "custom.pointSize", - "value": 4 - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 41 - }, - "id": 202, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:dev:disk_io_rt_1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "{{ ins }}:{{ device }}", - "refId": "A" - } - ], - "title": "Average Service Time (svctm)", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=93&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 84 + }, + "id": 54, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node_netstat_Tcp_CurrEstab{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "TCP Connections", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 5, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Number of items which were in the queue at the sampling time point", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "bars", - "fillOpacity": 100, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=38&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 47 - }, - "id": 38, - "options": { - "legend": { - "calcs": [ - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node_disk_io_now{cls=\"$cls\"}", - "interval": "", - "legendFormat": "{{ ins }}:{{ device }}", - "refId": "A" - } - ], - "title": "Instant Queue Size", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=92&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 84 + }, + "id": 92, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node_sockstat_TCP_inuse{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "B" + } + ], + "title": "TCP Socket InUse", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 5, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "average number of operations waiting to be serviced.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 3, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=84&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 47 - }, - "id": 84, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:dev:disk_avg_queue_size{cls=\"$cls\"}", - "interval": "", - "legendFormat": "{{ ins }}:{{ device }}", - "refId": "A" - } - ], - "title": "Average Queue Size", - "type": "timeseries" + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=92&${__url_time_range}" } - ], - "title": "Disk", - "type": "row" + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 91 + }, + "id": 246, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node_sockstat_TCP_tw{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "", + "interval": "", + "legendFormat": "Time Wait", + "refId": "C" + } + ], + "title": "TCP Socket TimeWait", + "type": "timeseries" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 25 + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "TCP retransmission segments and rate", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "percentunit" }, - "id": 193, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=199&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.8 - }, - { - "color": "#f5a673", - "value": 0.85 - }, - { - "color": "#E24D42", - "value": 0.9 - }, - { - "color": "#b783af", - "value": 0.95 - }, - { - "color": "text", - "value": 0.99 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 14, - "w": 6, - "x": 0, - "y": 30 - }, - "id": 189, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:fs:space_usage{cls=\"$cls\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }}:{{ mountpoint }}", - "refId": "A" - } - ], - "title": "Space Usage", - "type": "stat" - }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 91 + }, + "id": 52, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:ins:tcp_retrans_ratio1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "B" + } + ], + "title": "TCP Retransmission Rate", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 5, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Prediction of avail filesystem space a day later!", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=110&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "from": -999999999999, - "result": { - "color": "#363636", - "index": 0, - "text": "FULL" - }, - "to": 0 - }, - "type": "range" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text" - }, - { - "color": "#b783af", - "value": 0 - }, - { - "color": "red", - "value": 4000000000 - }, - { - "color": "#f5a673", - "value": 16000000000 - }, - { - "color": "#EAB839", - "value": 32000000000 - }, - { - "color": "#346f36cc", - "value": 64000000000 - }, - { - "color": "#3e668f", - "value": 1000000000000 - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 14, - "w": 6, - "x": 6, - "y": 30 - }, - "id": 200, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:fs:space_predict_1d{cls=\"$cls\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }}:{{ mountpoint }}", - "refId": "A" - } - ], - "title": "Avail Space 1D Prediction", - "type": "stat" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=56&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 98 + }, + "id": 56, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "rate(node_netstat_Tcp_ActiveOpens{cls=\"$cls\"}[1m])", + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "TCP Active Open (Rate1m)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 3, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 2, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=174&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "#E24D42", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 14, - "w": 6, - "x": 12, - "y": 30 - }, - "id": 174, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:fs:inode_usage{cls=\"$cls\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }}:{{ mountpoint }}", - "refId": "A" - } - ], - "title": "iNode Usage", - "type": "stat" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=55&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 98 + }, + "id": 247, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "rate(node_netstat_Tcp_PassiveOpens{cls=\"$cls\"}[1m])", + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "TCP Passive Open (Rate1m)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=198&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - }, - { - "color": "red", - "value": 1 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 14, - "w": 6, - "x": 18, - "y": 30 - }, - "id": 198, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node_filesystem_device_error{cls=\"$cls\", fstype!~\"(n|root|tmp)fs.*\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }}:{{ mountpoint }}", - "refId": "A" - } - ], - "title": "Device Error", - "type": "stat" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=55&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 24, + "x": 0, + "y": 105 + }, + "id": 55, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "irate(node_netstat_TcpExt_ListenOverflows{cls=\"$cls\"}[1m])", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }} Listen Overflows", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "irate(node_netstat_TcpExt_ListenDrops{cls=\"$cls\"}[1m])", + "interval": "", + "legendFormat": "{{ ins }} Listen Drop", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "irate(node_netstat_Tcp_InErrs{cls=\"$cls\"}[1m])", + "interval": "", + "legendFormat": "{{ ins }} In Error", + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "irate(node_netstat_Tcp_RetransSegs{cls=\"$cls\"}[1m])", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }} Retrans", + "refId": "D" + } + ], + "title": "TCP Errors", + "type": "timeseries" + } + ], + "title": "Protocol", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 28 + }, + "id": 275, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [], + "mappings": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 5, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=182&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text" - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 44 - }, - "id": 182, - "options": { - "legend": { - "calcs": [], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:fs:space_deriv1h{cls=\"$cls\"}", - "interval": "", - "legendFormat": "{{ ins }}:{{ mountpoint }}", - "refId": "A" - } - ], - "title": "Space Derive 1h", - "type": "timeseries" + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "āˆ…" + } + }, + "type": "special" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 1, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=199&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "green", - "value": 0.1 - }, - { - "color": "yellow", - "value": 0.8 - }, - { - "color": "orange", - "value": 0.85 - }, - { - "color": "#E24D42", - "value": 0.9 - }, - { - "color": "purple", - "value": 0.95 - }, - { - "color": "text", - "value": 0.99 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 44 - }, - "id": 199, - "options": { - "legend": { - "calcs": [ - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:fs:space_usage{cls=\"$cls\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }}:{{ mountpoint }}", - "refId": "A" - } - ], - "title": "Space Usage", - "type": "timeseries" + "options": { + "from": 7, + "result": { + "color": "text", + "index": 1, + "text": "āˆž" + }, + "to": 9999999 + }, + "type": "range" + } + ], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "#346f36cc", + "value": 0.0002 + }, + { + "color": "#f5a673", + "value": 0.001 + }, + { + "color": "red", + "value": 0.01 + }, + { + "color": "text", + "value": 7 + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "A" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance : ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node VIP : ${__field.labels.vip}", + "url": "/d/node-vip?var-vip=${__field.labels.vip}&${__url_time_range}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 8, + "x": 0, + "y": 68 + }, + "id": 271, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg by (job,vip) (probe_duration_seconds{cls=\"$cls\", job=~\".*vip\"})", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ vip }} @ {{ job }}", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "probe_duration_seconds{cls=\"$cls\", job=\"ping\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ ip }} : {{ ins }}", + "refId": "A" + } + ], + "title": "Ping Overview", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#7f7f7f" + }, + { + "color": "#f5a673", + "value": 1 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Alive" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#cc4637d9", + "index": 0, + "text": "Down" + }, + "1": { + "color": "#346f36cc", + "index": 1, + "text": "UP" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "custom.width", + "value": 60 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "State" + }, + "properties": [ + { + "id": "custom.width", + "value": 90 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "BACKUP": { + "color": "#346f36cc", + "index": 0, + "text": "BACKUP" + }, + "MASTER": { + "color": "#f5a673", + "index": 1, + "text": "MASTER" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "IP" + }, + "properties": [ + { + "id": "custom.width", + "value": 110 + }, + { + "id": "links", + "value": [ + { + "title": "Node Instance : ${__data.fields.IP}", + "url": "/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Instance" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance : ${__data.fields.Instance}", + "url": "/d/node-instance?var-id=${__data.fields.Instance}&${__url_time_range}" + } + ] + }, + { + "id": "custom.minWidth", + "value": 120 + } + ] + }, + { + "matcher": { + "id": "byType", + "options": "number" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "decimals": 0, - "links": [ - { - "title": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=188", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=51&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "-1": { - "index": 1, - "text": "+Inf" - } - }, - "type": "value" - }, - { - "options": { - "match": "null+nan", - "result": { - "index": 0, - "text": "N/A" - } - }, - "type": "special" - } - ], - "max": 3200000, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text" - }, - { - "color": "#b783af", - "value": 3600 - }, - { - "color": "#f5a673", - "value": 86400 - }, - { - "color": "#fcdb72", - "value": 604800 - }, - { - "color": "#346f36cc", - "value": 126230400 - } - ] - }, - "unit": "s" + "properties": [ + { + "id": "unit", + "value": "s" + }, + { + "id": "custom.width", + "value": 100 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 50 - }, - "id": 51, - "options": { - "legend": { - "calcs": [ - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true + { + "color": "#346f36cc", + "value": 0.0002 }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:fs:space_exhaust{cls=\"$cls\"}", - "interval": "", - "legendFormat": "{{ ins }}:{{ mountpoint }}", - "refId": "A" - } - ], - "title": "Space Exhaust Estimate", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 2, - "gradientMode": "hue", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=58&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "percentunit" + "color": "#f5a673", + "value": 0.001 }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 50 - }, - "id": 58, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true + { + "color": "#cc4637d9", + "value": 0.01 }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:fd_usage{cls=\"$cls\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "B" + "color": "text", + "value": 7 } - ], - "title": "FD Usage", - "type": "timeseries" + ] + } + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "from": 7, + "result": { + "color": "text", + "index": 0, + "text": "āˆž" + }, + "to": 9999999 + }, + "type": "range" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Alive" + }, + "properties": [ + { + "id": "custom.width", + "value": 60 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#cc4637d9", + "index": 0, + "text": "Down" + }, + "1": { + "color": "#346f36cc", + "index": 1, + "text": "UP" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 16, + "x": 8, + "y": 68 + }, + "id": 270, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "probe_success{ip=~\"$members\", job=\"ping\"}", + "format": "table", + "instant": true, + "range": false, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (probe_duration_seconds{ip=~\"$members\", job=\"ping\"})", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (probe_dns_lookup_time_seconds{ip=~\"$members\", job=\"ping\"})", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (probe_icmp_duration_seconds{ip=~\"$members\", job=\"ping\", phase=\"setup\"})", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (probe_icmp_duration_seconds{ip=~\"$members\", job=\"ping\", phase=\"rtt\"})", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (probe_icmp_duration_seconds{ip=~\"$members\", job=\"ping\", phase=\"resolve\"})", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "F" + } + ], + "title": "Ping Status", + "transformations": [ + { + "id": "joinByField", + "options": { + "byField": "ip", + "mode": "outer" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Time 1": true, + "Time 10": true, + "Time 11": true, + "Time 12": true, + "Time 13": true, + "Time 14": true, + "Time 15": true, + "Time 2": true, + "Time 3": true, + "Time 4": true, + "Time 5": true, + "Time 6": true, + "Time 7": true, + "Time 8": true, + "Time 9": true, + "__name__": true, + "cls": true, + "instance": true, + "job": true, + "name": true, + "vip": true, + "vrid": true + }, + "indexByName": { + "Time 1": 12, + "Time 2": 13, + "Time 3": 14, + "Time 4": 15, + "Time 5": 16, + "Time 6": 17, + "Value #A": 0, + "Value #B": 5, + "Value #C": 6, + "Value #D": 7, + "Value #E": 8, + "Value #F": 9, + "__name__": 10, + "cls": 4, + "ins": 2, + "instance": 11, + "ip": 1, + "job": 3 + }, + "renameByName": { + "Time 10": "", + "Time 12": "", + "Value": "Alive", + "Value #A": "Alive", + "Value #B": "Duration", + "Value #C": "DNS Lookup", + "Value #D": "ICMP Setup", + "Value #E": "ICMP RTT", + "Value #F": "ICMP Resolve", + "Value #G": "Prior0 Sent", + "Value #H": "E-TTL", + "Value #I": "E-InvalidType", + "Value #J": "E-AddrList", + "Value #K": "E-AuthInvalid", + "Value #L": "E-AuthMismatch", + "Value #M": "E-AuthFailure", + "Value #N": "E-PacketLength", + "Value #O": "E-AdvertInterval", + "cls": "Cluster", + "ins": "Instance", + "instance": "", + "ip": "IP", + "ip 1": "", + "job": "Type", + "name": "Name", + "state": "State", + "vip": "VIP", + "vrid": "VRID" } - ], - "title": "Filesystem", - "type": "row" + } + } + ], + "type": "table" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 26 + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "points", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 2, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ + { + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=29&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue" + }, + { + "color": "green", + "value": 0.001 + }, + { + "color": "yellow", + "value": 0.01 + }, + { + "color": "orange", + "value": 0.1 + }, + { + "color": "red", + "value": 1 + }, + { + "color": "purple", + "value": 7 + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "/dfa/" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.pointSize", + "value": 4 + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 74 + }, + "id": 272, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true }, - "id": 169, - "panels": [ + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "probe_duration_seconds{ip=~\"$members\", job=\"ping\"}", + "interval": "", + "legendFormat": "{{ ins }}@{{ ip }}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg by (job,vip) (probe_duration_seconds{ip=~\"$members\", job=~\".*-vip\"})", + "hide": false, + "interval": "", + "legendFormat": "{{ job }} @ {{ vip }}", + "range": true, + "refId": "B" + } + ], + "title": "Ping RT", + "type": "timeseries" + } + ], + "title": "Ping", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 29 + }, + "id": 269, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "mappings": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for transmit (out) and \u25bc for receive (in)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 2, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=183&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "pps" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 31 - }, - "id": 183, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:network_tx_pps1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "\u25b2{{ ins }}", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "- node:ins:network_rx_pps1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "\u25bc{{ ins }}", - "refId": "B" - } - ], - "title": "Transmit/Receive Packets", - "type": "timeseries" + "options": { + "BACKUP": { + "color": "#3e668f", + "index": 1, + "text": "BACKUP" + }, + "MASTER": { + "color": "#f5a673", + "index": 2, + "text": "MASTER" + } + }, + "type": "value" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for transmit (out) and \u25bc for receive (in)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 2, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=185&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "Bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 31 - }, - "id": 185, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:network_tx_bytes_rate1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "\u25b2{{ ins }}", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "- node:ins:network_rx_bytes_rate1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "\u25bc{{ ins }}", - "refId": "B" - } - ], - "title": "Transmit/Receive Bandwidth", - "type": "timeseries" + "options": { + "match": "null", + "result": { + "color": "#808080", + "index": 0, + "text": "UNKNOWN" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "#f5a673", + "value": 1 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 24, + "x": 0, + "y": 29 + }, + "id": 274, + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "text": { + "valueSize": 16 + }, + "textMode": "name" + }, + "pluginVersion": "10.1.5", + "repeat": "instance", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "keepalived_vrrp_become_master{vip=\"$vip\"}", + "format": "time_series", + "hide": false, + "instant": true, + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{ state }} : {{ ip }}", + "refId": "A", + "step": 4 + } + ], + "title": "Keepalived Role", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#7f7f7f" + }, + { + "color": "#f5a673", + "value": 1 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Alive" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#cc4637d9", + "index": 0, + "text": "Down" + }, + "1": { + "color": "#346f36cc", + "index": 1, + "text": "UP" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "custom.width", + "value": 60 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "State" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "BACKUP": { + "color": "#346f36cc", + "index": 0, + "text": "BACKUP" + }, + "MASTER": { + "color": "#f5a673", + "index": 1, + "text": "MASTER" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "#808080", + "index": 2, + "text": "UNKNOWN" + } + }, + "type": "special" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "IP" + }, + "properties": [ + { + "id": "custom.width", + "value": 110 + }, + { + "id": "links", + "value": [ + { + "title": "Node Instance : ${__data.fields.IP}", + "url": "/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Instance" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance : ${__data.fields.Instance}", + "url": "/d/node-instance?var-id=${__data.fields.Instance}&${__url_time_range}" + } + ] + }, + { + "id": "custom.minWidth", + "value": 120 + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/.*Master.*/" + }, + "properties": [ + { + "id": "custom.width", + "value": 90 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/Advert.*/" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for transmit (out) and \u25bc for receive (in)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=53&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "pps" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 40 - }, - "id": 53, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:dev:network_tx_pps1m{cls=\"$cls\", device!=\"lo\"}", - "interval": "", - "legendFormat": "\u25b2{{ ins }}:{{ device }}", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "- node:ins:network_rx_pps1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "\u25bc{{ ins }}:{{ device }}", - "refId": "B" - } - ], - "title": "Transmit/Receive Packets (Interface)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for transmit (out) and \u25bc for receive (in)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=188&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "Bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 40 - }, - "id": 178, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true + "color": "#3e668f" }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:dev:network_tx_bytes_rate1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "\u25b2{{ ins }}:{{ device }}", - "refId": "A" + "color": "#346f36cc", + "value": 1 }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "- node:dev:network_rx_bytes_rate1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "\u25bc{{ ins }}:{{ device }}", - "refId": "B" + "color": "#f5a673", + "value": 1.01 } - ], - "title": "Transmit/Receive Bandwidth (Interface)", - "type": "timeseries" + ] + } + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "custom.width", + "value": 100 + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/Prior0.*/" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/E-.*/" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + }, + { + "color": "#cc4637d9", + "value": 1 + } + ] + } + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 18, + "x": 6, + "y": 29 + }, + "id": 273, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "10.1.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "keepalived_exporter_up{vip=\"$vip\"} * on(ins) group_left()\nkeepalived_up{vip=\"$vip\"} or on (ins) keepalived_exporter_up{vip=\"$vip\"}", + "format": "table", + "instant": true, + "range": false, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins,state,vrid,name) (keepalived_vrrp_become_master{vip=\"$vip\"})", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (keepalived_vrrp_release_master{vip=\"$vip\"})", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (rate(keepalived_vrrp_advert_rcvd{vip=\"$vip\"}[1m]))", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (rate(keepalived_vrrp_advert_sent{vip=\"$vip\"}[1m]))", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (keepalived_vrrp_pri_zero_rcvd{vip=\"$vip\"})", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (keepalived_vrrp_pri_zero_sent{vip=\"$vip\"})", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (keepalived_vrrp_ip_ttl_err{vip=\"$vip\"})", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "H" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (keepalived_vrrp_invalid_type_rcvd{vip=\"$vip\"})", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "I" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (keepalived_vrrp_addr_list_err{vip=\"$vip\"})", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "J" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (keepalived_vrrp_invalid_authtype{vip=\"$vip\"})", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "K" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (keepalived_vrrp_authtype_mismatch{vip=\"$vip\"})", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "L" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (keepalived_vrrp_auth_failure{vip=\"$vip\"})", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "M" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (keepalived_vrrp_packet_len_err{vip=\"$vip\"})", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "N" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (keepalived_vrrp_advert_interval_err{vip=\"$vip\"})", + "format": "table", + "hide": false, + "instant": true, + "range": false, + "refId": "O" + } + ], + "title": "Keepalived Status", + "transformations": [ + { + "id": "joinByField", + "options": { + "byField": "ins", + "mode": "outer" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Time 1": true, + "Time 10": true, + "Time 11": true, + "Time 12": true, + "Time 13": true, + "Time 14": true, + "Time 15": true, + "Time 16": true, + "Time 2": true, + "Time 3": true, + "Time 4": true, + "Time 5": true, + "Time 6": true, + "Time 7": true, + "Time 8": true, + "Time 9": true, + "__name__": true, + "cls": true, + "instance": true, + "job": true, + "name": true, + "vip": true, + "vrid": true + }, + "indexByName": { + "Time 1": 13, + "Time 2": 14, + "Time 3": 15, + "Time 4": 16, + "Time 5": 21, + "Time 6": 22, + "Time 7": 23, + "Value #A": 0, + "Value #B": 6, + "Value #C": 7, + "Value #D": 17, + "Value #E": 18, + "Value #F": 19, + "Value #G": 20, + "__name__": 11, + "cls": 10, + "ins": 3, + "instance": 12, + "ip": 2, + "job": 4, + "name": 8, + "state": 1, + "vip": 5, + "vrid": 9 + }, + "renameByName": { + "Time 10": "", + "Time 12": "", + "Value #A": "Alive", + "Value #B": "āž”ļøMaster", + "Value #C": "Masterāž”ļø", + "Value #D": "AdvertRecv", + "Value #E": "AdvertSent", + "Value #F": "Prior0 Recv", + "Value #G": "Prior0 Sent", + "Value #H": "E-TTL", + "Value #I": "E-InvalidType", + "Value #J": "E-AddrList", + "Value #K": "E-AuthInvalid", + "Value #L": "E-AuthMismatch", + "Value #M": "E-AuthFailure", + "Value #N": "E-PacketLength", + "Value #O": "E-AdvertInternal", + "cls": "Cluster", + "ins": "Instance", + "instance": "", + "ip": "IP", + "job": "Type", + "name": "Name", + "state": "State", + "vip": "VIP", + "vrid": "VRID" } - ], - "title": "Network", - "type": "row" + } + } + ], + "type": "table" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 27 + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 1, + "drawStyle": "line", + "fillOpacity": 66, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineWidth": 0, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [ + { + "title": "Node Instance : ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 24, + "x": 0, + "y": 67 + }, + "id": 261, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "id": 197, - "panels": [ + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "keepalived_vrrp_advert_sent{cls=\"$cls\", state=\"MASTER\"} > bool 0", + "format": "time_series", + "hide": false, + "instant": false, + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{ ip }} : {{ ins }}", + "refId": "A", + "step": 2 + } + ], + "title": "VIP MASTER Status", + "type": "timeseries" + } + ], + "title": "Keepalived", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 30 + }, + "id": 277, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "- 0.8+: Immediate intervention and adjustment are required \n- 0.6+: Monitor trends and prepare for scaling plans ", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "axisSoftMin": 0, + "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", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 3, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=49&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "pps" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "\u25b2out" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 44 - }, - "id": 49, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:tcp_insegs_rate1m{cls=\"$cls\"}", - "interval": "", - "intervalFactor": 2, - "legendFormat": "\u25bc{{ ins }}", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "- node:ins:tcp_outsegs_rate1m{cls=\"$cls\"}", - "interval": "", - "intervalFactor": 2, - "legendFormat": "\u25b2{{ ins }}", - "refId": "B" - } - ], - "title": "TCP Segments", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ], + "mappings": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 2, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=93&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "pps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 44 - }, - "id": 93, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "- rate(node_netstat_Udp_OutDatagrams{cls=\"$cls\"}[1m])", - "interval": "", - "intervalFactor": 2, - "legendFormat": "\u25b2{{ ins }}", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "rate(node_netstat_Udp_InDatagrams{cls=\"$cls\"}[1m])", - "interval": "", - "intervalFactor": 2, - "legendFormat": "\u25bc{{ ins }}", - "refId": "A" - } - ], - "title": "UDP Datagrams", - "type": "timeseries" + "options": { + "-1": { + "color": "gray", + "index": 1, + "text": "N/A" + } + }, + "type": "value" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 5, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "stepBefore", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=93&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 52 - }, - "id": 54, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node_netstat_Tcp_CurrEstab{cls=\"$cls\"}", - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "TCP Connections", - "type": "timeseries" - }, + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "No Data" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-green", + "value": null + }, + { + "color": "green", + "value": 0.4 + }, + { + "color": "orange", + "value": 0.6 + }, + { + "color": "semi-dark-red", + "value": 0.8 + }, + { + "color": "dark-red", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 31 + }, + "id": 280, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:zfs_arc_pressure_ratio{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "A" + } + ], + "title": "ARC Pressure", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "arc_size / memory_MemTotal", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "axisSoftMin": 0, + "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", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 5, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=92&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 52 - }, - "id": 92, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node_sockstat_TCP_inuse{cls=\"$cls\"}", - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "B" - } - ], - "title": "TCP Socket InUse", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ], + "mappings": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 5, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "stepBefore", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=92&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 59 - }, - "id": 246, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node_sockstat_TCP_tw{cls=\"$cls\"}", - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "", - "interval": "", - "legendFormat": "Time Wait", - "refId": "C" - } - ], - "title": "TCP Socket TimeWait", - "type": "timeseries" + "options": { + "-1": { + "color": "gray", + "index": 1, + "text": "N/A" + } + }, + "type": "value" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "TCP retransmission segments and rate", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "stepBefore", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 59 - }, - "id": 52, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:tcp_retrans_ratio1m{cls=\"$cls\"}", - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "B" - } - ], - "title": "TCP Retransmission Rate", - "type": "timeseries" - }, + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "No Data" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "orange", + "value": 0.1 + }, + { + "color": "yellow", + "value": 0.3 + }, + { + "color": "green", + "value": 0.4 + }, + { + "color": "yellow", + "value": 0.6 + }, + { + "color": "orange", + "value": 0.8 + }, + { + "color": "dark-red", + "value": 0.9 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 31 + }, + "id": 284, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:zfs_arc_memory_ratio{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "A" + } + ], + "title": "ARC Memory Ratio", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "arc_c / c_max", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "axisSoftMin": 0, + "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", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 5, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "stepBefore", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=56&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 66 - }, - "id": 56, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "rate(node_netstat_Tcp_ActiveOpens{cls=\"$cls\"}[1m])", - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "TCP Active Open (Rate1m)", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ], + "mappings": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 3, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "stepBefore", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=55&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 66 - }, - "id": 247, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "rate(node_netstat_Tcp_PassiveOpens{cls=\"$cls\"}[1m])", - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "TCP Passive Open (Rate1m)", - "type": "timeseries" + "options": { + "-1": { + "color": "gray", + "index": 1, + "text": "N/A" + } + }, + "type": "value" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "bars", - "fillOpacity": 100, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=55&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 24, - "x": 0, - "y": 73 - }, - "id": 55, - "options": { - "legend": { - "calcs": [ - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "sortBy": "Max", - "sortDesc": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "irate(node_netstat_TcpExt_ListenOverflows{cls=\"$cls\"}[1m])", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }} Listen Overflows", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "irate(node_netstat_TcpExt_ListenDrops{cls=\"$cls\"}[1m])", - "interval": "", - "legendFormat": "{{ ins }} Listen Drop", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "irate(node_netstat_Tcp_InErrs{cls=\"$cls\"}[1m])", - "interval": "", - "legendFormat": "{{ ins }} In Error", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "irate(node_netstat_Tcp_RetransSegs{cls=\"$cls\"}[1m])", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }} Retrans", - "refId": "D" - } - ], - "title": "TCP Errors", - "type": "timeseries" + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "No Data" + } + }, + "type": "special" } - ], - "title": "Protocol", - "type": "row" + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "light-red", + "value": 0.1 + }, + { + "color": "orange", + "value": 0.3 + }, + { + "color": "yellow", + "value": 0.5 + }, + { + "color": "light-blue", + "value": 0.7 + }, + { + "color": "blue", + "value": 0.9 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 38 + }, + "id": 278, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:zfs_arc_utilization{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "A" + } + ], + "title": "ARC Utilization", + "type": "timeseries" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 28 + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "arc_meta_used / arc_meta_limit", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "axisSoftMin": 0, + "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", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ + { + "title": "Node Instance: ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "-1": { + "color": "gray", + "index": 1, + "text": "N/A" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "No Data" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "semi-dark-green", + "value": null + }, + { + "color": "green", + "value": 0.1 + }, + { + "color": "light-green", + "value": 0.3 + }, + { + "color": "yellow", + "value": 0.5 + }, + { + "color": "orange", + "value": 0.7 + }, + { + "color": "super-light-red", + "value": 0.9 + }, + { + "color": "red", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 38 + }, + "id": 279, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": true }, - "id": 275, - "panels": [ + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:zfs_arc_meta_usage{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "A" + } + ], + "title": "ARC Meta Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "node_zfs_arc_dnode_size", + "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", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [], - "mappings": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 0, - "text": "\u2205" - } - }, - "type": "special" - }, - { - "options": { - "from": 7, - "result": { - "color": "text", - "index": 1, - "text": "\u221e" - }, - "to": 9999999 - }, - "type": "range" - } - ], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 0.0002 - }, - { - "color": "#f5a673", - "value": 0.001 - }, - { - "color": "red", - "value": 0.01 - }, - { - "color": "text", - "value": 7 - } - ] - }, - "unit": "s" - }, - "overrides": [ - { - "matcher": { - "id": "byFrameRefID", - "options": "A" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Instance : ${__field.labels.ip}", - "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "B" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node VIP : ${__field.labels.vip}", - "url": "/d/node-vip?var-vip=${__field.labels.vip}&${__url_time_range}" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 8, - "x": 0, - "y": 36 - }, - "id": 271, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "avg by (job,vip) (probe_duration_seconds{cls=\"$cls\", job=~\".*vip\"})", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ vip }} @ {{ job }}", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "probe_duration_seconds{cls=\"$cls\", job=\"ping\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ ip }} : {{ ins }}", - "refId": "A" - } - ], - "title": "Ping Overview", - "type": "stat" + "title": "Node Instance: ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "-1": { + "color": "gray", + "index": 1, + "text": "N/A" + } + }, + "type": "value" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "center", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#7f7f7f" - }, - { - "color": "#f5a673", - "value": 1 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Alive" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "#cc4637d9", - "index": 0, - "text": "Down" - }, - "1": { - "color": "#346f36cc", - "index": 1, - "text": "UP" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - }, - { - "id": "custom.width", - "value": 60 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "State" - }, - "properties": [ - { - "id": "custom.width", - "value": 90 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "BACKUP": { - "color": "#346f36cc", - "index": 0, - "text": "BACKUP" - }, - "MASTER": { - "color": "#f5a673", - "index": 1, - "text": "MASTER" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "IP" - }, - "properties": [ - { - "id": "custom.width", - "value": 110 - }, - { - "id": "links", - "value": [ - { - "title": "Node Instance : ${__data.fields.IP}", - "url": "/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Instance" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Instance : ${__data.fields.Instance}", - "url": "/d/node-instance?var-id=${__data.fields.Instance}&${__url_time_range}" - } - ] - }, - { - "id": "custom.minWidth", - "value": 120 - } - ] - }, - { - "matcher": { - "id": "byType", - "options": "number" - }, - "properties": [ - { - "id": "unit", - "value": "s" - }, - { - "id": "custom.width", - "value": 100 - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 0.0002 - }, - { - "color": "#f5a673", - "value": 0.001 - }, - { - "color": "#cc4637d9", - "value": 0.01 - }, - { - "color": "text", - "value": 7 - } - ] - } - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "from": 7, - "result": { - "color": "text", - "index": 0, - "text": "\u221e" - }, - "to": 9999999 - }, - "type": "range" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Alive" - }, - "properties": [ - { - "id": "custom.width", - "value": 60 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "#cc4637d9", - "index": 0, - "text": "Down" - }, - "1": { - "color": "#346f36cc", - "index": 1, - "text": "UP" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 16, - "x": 8, - "y": 36 - }, - "id": 270, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "probe_success{ip=~\"$members\", job=\"ping\"}", - "format": "table", - "instant": true, - "range": false, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (probe_duration_seconds{ip=~\"$members\", job=\"ping\"})", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (probe_dns_lookup_time_seconds{ip=~\"$members\", job=\"ping\"})", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (probe_icmp_duration_seconds{ip=~\"$members\", job=\"ping\", phase=\"setup\"})", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (probe_icmp_duration_seconds{ip=~\"$members\", job=\"ping\", phase=\"rtt\"})", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "E" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (probe_icmp_duration_seconds{ip=~\"$members\", job=\"ping\", phase=\"resolve\"})", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "F" - } - ], - "title": "Ping Status", - "transformations": [ - { - "id": "joinByField", - "options": { - "byField": "ip", - "mode": "outer" - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Time 1": true, - "Time 10": true, - "Time 11": true, - "Time 12": true, - "Time 13": true, - "Time 14": true, - "Time 15": true, - "Time 2": true, - "Time 3": true, - "Time 4": true, - "Time 5": true, - "Time 6": true, - "Time 7": true, - "Time 8": true, - "Time 9": true, - "__name__": true, - "cls": true, - "instance": true, - "job": true, - "name": true, - "vip": true, - "vrid": true - }, - "indexByName": { - "Time 1": 12, - "Time 2": 13, - "Time 3": 14, - "Time 4": 15, - "Time 5": 16, - "Time 6": 17, - "Value #A": 0, - "Value #B": 5, - "Value #C": 6, - "Value #D": 7, - "Value #E": 8, - "Value #F": 9, - "__name__": 10, - "cls": 4, - "ins": 2, - "instance": 11, - "ip": 1, - "job": 3 - }, - "renameByName": { - "Time 10": "", - "Time 12": "", - "Value": "Alive", - "Value #A": "Alive", - "Value #B": "Duration", - "Value #C": "DNS Lookup", - "Value #D": "ICMP Setup", - "Value #E": "ICMP RTT", - "Value #F": "ICMP Resolve", - "Value #G": "Prior0 Sent", - "Value #H": "E-TTL", - "Value #I": "E-InvalidType", - "Value #J": "E-AddrList", - "Value #K": "E-AuthInvalid", - "Value #L": "E-AuthMismatch", - "Value #M": "E-AuthFailure", - "Value #N": "E-PacketLength", - "Value #O": "E-AdvertInterval", - "cls": "Cluster", - "ins": "Instance", - "instance": "", - "ip": "IP", - "ip 1": "", - "job": "Type", - "name": "Name", - "state": "State", - "vip": "VIP", - "vrid": "VRID" - } - } - } - ], - "type": "table" + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "No Data" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 45 + }, + "id": 282, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node_zfs_arc_dnode_size{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "A" + } + ], + "title": "ARC Dnode Size", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "node_zfs_arc_evict_skip", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "axisSoftMin": 0, + "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": { + "log": 2, + "type": "log" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ + { + "title": "Node Instance: ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "-1": { + "color": "gray", + "index": 1, + "text": "N/A" + } + }, + "type": "value" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "points", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 2, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=29&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue" - }, - { - "color": "green", - "value": 0.001 - }, - { - "color": "yellow", - "value": 0.01 - }, - { - "color": "orange", - "value": 0.1 - }, - { - "color": "red", - "value": 1 - }, - { - "color": "purple", - "value": 7 - } - ] - }, - "unit": "s" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "/dfa/" - }, - "properties": [ - { - "id": "custom.lineWidth", - "value": 0 - }, - { - "id": "custom.pointSize", - "value": 4 - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 42 - }, - "id": 272, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "probe_duration_seconds{ip=~\"$members\", job=\"ping\"}", - "interval": "", - "legendFormat": "{{ ins }}@{{ ip }}", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "avg by (job,vip) (probe_duration_seconds{ip=~\"$members\", job=~\".*-vip\"})", - "hide": false, - "interval": "", - "legendFormat": "{{ job }} @ {{ vip }}", - "range": true, - "refId": "B" - } - ], - "title": "Ping RT", - "type": "timeseries" + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "No Data" + } + }, + "type": "special" } - ], - "title": "Ping", - "type": "row" + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 45 + }, + "id": 283, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node_zfs_arc_evict_skip{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "A" + } + ], + "title": "ARC Evict Skip", + "type": "timeseries" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 29 - }, - "id": 269, - "panels": [ + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "rate(node_zfs_arc_hits[1m])", + "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", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [ - { - "options": { - "BACKUP": { - "color": "#3e668f", - "index": 1, - "text": "BACKUP" - }, - "MASTER": { - "color": "#f5a673", - "index": 2, - "text": "MASTER" - } - }, - "type": "value" - }, - { - "options": { - "match": "null", - "result": { - "color": "#808080", - "index": 0, - "text": "UNKNOWN" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#f5a673", - "value": 1 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 24, - "x": 0, - "y": 29 - }, - "id": 274, - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 16 - }, - "textMode": "name" - }, - "pluginVersion": "10.1.5", - "repeat": "instance", - "repeatDirection": "h", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "keepalived_vrrp_become_master{vip=\"$vip\"}", - "format": "time_series", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{ state }} : {{ ip }}", - "refId": "A", - "step": 4 - } - ], - "title": "Keepalived Role", - "type": "stat" - }, + "title": "Node Instance: ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ], + "mappings": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "center", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#7f7f7f" - }, - { - "color": "#f5a673", - "value": 1 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Alive" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "#cc4637d9", - "index": 0, - "text": "Down" - }, - "1": { - "color": "#346f36cc", - "index": 1, - "text": "UP" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - }, - { - "id": "custom.width", - "value": 60 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "State" - }, - "properties": [ - { - "id": "custom.width", - "value": 100 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "BACKUP": { - "color": "#346f36cc", - "index": 0, - "text": "BACKUP" - }, - "MASTER": { - "color": "#f5a673", - "index": 1, - "text": "MASTER" - } - }, - "type": "value" - }, - { - "options": { - "match": "null+nan", - "result": { - "color": "#808080", - "index": 2, - "text": "UNKNOWN" - } - }, - "type": "special" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "IP" - }, - "properties": [ - { - "id": "custom.width", - "value": 110 - }, - { - "id": "links", - "value": [ - { - "title": "Node Instance : ${__data.fields.IP}", - "url": "/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Instance" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Instance : ${__data.fields.Instance}", - "url": "/d/node-instance?var-id=${__data.fields.Instance}&${__url_time_range}" - } - ] - }, - { - "id": "custom.minWidth", - "value": 120 - } - ] - }, - { - "matcher": { - "id": "byRegexp", - "options": "/.*Master.*/" - }, - "properties": [ - { - "id": "custom.width", - "value": 90 - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - } - ] - }, - { - "matcher": { - "id": "byRegexp", - "options": "/Advert.*/" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 1 - }, - { - "color": "#f5a673", - "value": 1.01 - } - ] - } - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "custom.width", - "value": 100 - } - ] - }, - { - "matcher": { - "id": "byRegexp", - "options": "/Prior0.*/" - }, - "properties": [ - { - "id": "custom.width", - "value": 100 - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - } - ] - }, - { - "matcher": { - "id": "byRegexp", - "options": "/E-.*/" - }, - "properties": [ - { - "id": "custom.width", - "value": 100 - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - }, - { - "color": "#cc4637d9", - "value": 1 - } - ] - } - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 18, - "x": 6, - "y": 29 - }, - "id": 273, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "10.1.5", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "keepalived_exporter_up{vip=\"$vip\"} * on(ins) group_left()\nkeepalived_up{vip=\"$vip\"} or on (ins) keepalived_exporter_up{vip=\"$vip\"}", - "format": "table", - "instant": true, - "range": false, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins,state,vrid,name) (keepalived_vrrp_become_master{vip=\"$vip\"})", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (keepalived_vrrp_release_master{vip=\"$vip\"})", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (rate(keepalived_vrrp_advert_rcvd{vip=\"$vip\"}[1m]))", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (rate(keepalived_vrrp_advert_sent{vip=\"$vip\"}[1m]))", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "E" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (keepalived_vrrp_pri_zero_rcvd{vip=\"$vip\"})", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "F" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (keepalived_vrrp_pri_zero_sent{vip=\"$vip\"})", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "G" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (keepalived_vrrp_ip_ttl_err{vip=\"$vip\"})", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "H" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (keepalived_vrrp_invalid_type_rcvd{vip=\"$vip\"})", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "I" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (keepalived_vrrp_addr_list_err{vip=\"$vip\"})", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "J" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (keepalived_vrrp_invalid_authtype{vip=\"$vip\"})", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "K" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (keepalived_vrrp_authtype_mismatch{vip=\"$vip\"})", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "L" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (keepalived_vrrp_auth_failure{vip=\"$vip\"})", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "M" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (keepalived_vrrp_packet_len_err{vip=\"$vip\"})", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "N" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (keepalived_vrrp_advert_interval_err{vip=\"$vip\"})", - "format": "table", - "hide": false, - "instant": true, - "range": false, - "refId": "O" - } - ], - "title": "Keepalived Status", - "transformations": [ - { - "id": "joinByField", - "options": { - "byField": "ins", - "mode": "outer" - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Time 1": true, - "Time 10": true, - "Time 11": true, - "Time 12": true, - "Time 13": true, - "Time 14": true, - "Time 15": true, - "Time 16": true, - "Time 2": true, - "Time 3": true, - "Time 4": true, - "Time 5": true, - "Time 6": true, - "Time 7": true, - "Time 8": true, - "Time 9": true, - "__name__": true, - "cls": true, - "instance": true, - "job": true, - "name": true, - "vip": true, - "vrid": true - }, - "indexByName": { - "Time 1": 13, - "Time 2": 14, - "Time 3": 15, - "Time 4": 16, - "Time 5": 21, - "Time 6": 22, - "Time 7": 23, - "Value #A": 0, - "Value #B": 6, - "Value #C": 7, - "Value #D": 17, - "Value #E": 18, - "Value #F": 19, - "Value #G": 20, - "__name__": 11, - "cls": 10, - "ins": 3, - "instance": 12, - "ip": 2, - "job": 4, - "name": 8, - "state": 1, - "vip": 5, - "vrid": 9 - }, - "renameByName": { - "Time 10": "", - "Time 12": "", - "Value #A": "Alive", - "Value #B": "\u27a1\ufe0fMaster", - "Value #C": "Master\u27a1\ufe0f", - "Value #D": "AdvertRecv", - "Value #E": "AdvertSent", - "Value #F": "Prior0 Recv", - "Value #G": "Prior0 Sent", - "Value #H": "E-TTL", - "Value #I": "E-InvalidType", - "Value #J": "E-AddrList", - "Value #K": "E-AuthInvalid", - "Value #L": "E-AuthMismatch", - "Value #M": "E-AuthFailure", - "Value #N": "E-PacketLength", - "Value #O": "E-AdvertInternal", - "cls": "Cluster", - "ins": "Instance", - "instance": "", - "ip": "IP", - "job": "Type", - "name": "Name", - "state": "State", - "vip": "VIP", - "vrid": "VRID" - } - } - } - ], - "type": "table" + "options": { + "-1": { + "color": "gray", + "index": 1, + "text": "N/A" + } + }, + "type": "value" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisGridShow": false, - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 1, - "drawStyle": "line", - "fillOpacity": 66, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepBefore", - "lineWidth": 0, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "links": [ - { - "title": "Node Instance : ${__field.labels.ip}", - "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 24, - "x": 0, - "y": 35 - }, - "id": 261, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "keepalived_vrrp_advert_sent{cls=\"$cls\", state=\"MASTER\"} > bool 0", - "format": "time_series", - "hide": false, - "instant": false, - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{ ip }} : {{ ins }}", - "refId": "A", - "step": 2 - } - ], - "title": "VIP MASTER Status", - "type": "timeseries" + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "No Data" + } + }, + "type": "special" } - ], - "title": "Keepalived", - "type": "row" + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 52 + }, + "id": 285, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "rate(node_zfs_arc_hits{cls=\"$cls\"}[1m])", + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "A" + } + ], + "title": "ARC Hit (rate1m)", + "type": "timeseries" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 30 - }, - "id": 171, - "panels": [ + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "node_zfs_arc_hits / (node_zfs_arc_hits + node_zfs_arc_misses)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "axisSoftMin": 0, + "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", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Node Instance : Time Sync Detail for ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&var-id=${__field.labels.ins}&viewPanel=83&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "0": { - "color": "#cc4637d9", - "index": 1, - "text": "Failed" - }, - "1": { - "color": "#346f36cc", - "index": 0, - "text": "Synced" - } - }, - "type": "value" - } - ], - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#cc4637d9" - }, - { - "color": "#346f36cc", - "value": 1 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 4, - "x": 0, - "y": 30 - }, - "id": 212, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "value_and_name" - }, - "pluginVersion": "10.1.5", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (node_timex_sync_status{cls=\"$cls\"})", - "interval": "", - "legendFormat": "{{ ins }}", - "range": true, - "refId": "A" - } - ], - "title": "", - "type": "stat" + "title": "Node Instance: ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "-1": { + "color": "gray", + "index": 1, + "text": "N/A" + } + }, + "type": "value" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "center", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "links": [], - "mappings": [], - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 0.05 - }, - { - "color": "#fcdb72", - "value": 0.1 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "#b783af", - "value": 1 - }, - { - "color": "red", - "value": 5 - }, - { - "color": "text", - "value": 10 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Status Code" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "#346f36cc", - "index": 0, - "text": "OK" - } - }, - "type": "value" - } - ] - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red" - } - ] - } - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "custom.width", - "value": 120 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Synced" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "#cc4637d9", - "index": 1, - "text": "Failed" - }, - "1": { - "color": "#346f36cc", - "index": 0, - "text": "Synced" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "custom.width", - "value": 80 - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#cc4637d9" - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Drift" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#f5a673", - "value": 0 - } - ] - } - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "unit", - "value": "s" - }, - { - "id": "custom.width", - "value": 80 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Adjust%" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#f5a673", - "value": 0 - } - ] - } - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "custom.width", - "value": 120 - }, - { - "id": "unit", - "value": "percentunit" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Instance" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Instance : Time Metrics for ${__data.fields.Instance}", - "url": "/d/node-instance?var-id=${__data.fields.Instance}&${__url_time_range}&viewPanel=277" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 4, - "y": 30 - }, - "id": 248, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "10.1.5", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (node_timex_sync_status{cls=\"$cls\"})", - "format": "table", - "interval": "", - "legendFormat": "{{ ins }}", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (node_timex_status{cls=\"$cls\"})", - "format": "table", - "hide": false, - "interval": "", - "legendFormat": "__auto", - "range": true, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (node_timex_offset_seconds{cls=\"$cls\"})", - "format": "table", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }}", - "range": true, - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (node_timex_frequency_adjustment_ratio{cls=\"$cls\"}) - 1", - "format": "table", - "hide": false, - "interval": "", - "legendFormat": "__auto", - "range": true, - "refId": "D" - } - ], - "title": "Node Time Metrics", - "transformations": [ + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "No Data" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "red", + "value": 0.2 + }, + { + "color": "super-light-red", + "value": 0.5 + }, + { + "color": "orange", + "value": 0.7 + }, + { + "color": "yellow", + "value": 0.8 + }, + { + "color": "green", + "value": 0.9 + }, + { + "color": "semi-dark-green", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 52 + }, + "id": 281, + "options": { + "legend": { + "calcs": [ + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:zfs_arc_hit_ratio_rate1m{cls=\"$cls\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "A" + } + ], + "title": "ARC Hit Ratio (rate1m)", + "type": "timeseries" + } + ], + "title": "ZFS ARC", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 31 + }, + "id": 171, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "Node Instance : Time Sync Detail for ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&var-id=${__field.labels.ins}&viewPanel=83&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "0": { + "color": "#cc4637d9", + "index": 1, + "text": "Failed" + }, + "1": { + "color": "#346f36cc", + "index": 0, + "text": "Synced" + } + }, + "type": "value" + } + ], + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#cc4637d9" + }, + { + "color": "#346f36cc", + "value": 1 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 4, + "x": 0, + "y": 30 + }, + "id": 212, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "value_and_name" + }, + "pluginVersion": "10.1.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (node_timex_sync_status{cls=\"$cls\"})", + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "links": [], + "mappings": [], + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "#346f36cc", + "value": 0.05 + }, + { + "color": "#fcdb72", + "value": 0.1 + }, + { + "color": "#f5a673", + "value": 0.5 + }, + { + "color": "#b783af", + "value": 1 + }, + { + "color": "red", + "value": 5 + }, + { + "color": "text", + "value": 10 + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Status Code" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#346f36cc", + "index": 0, + "text": "OK" + } + }, + "type": "value" + } + ] + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red" + } + ] + } + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "custom.width", + "value": 120 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Synced" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#cc4637d9", + "index": 1, + "text": "Failed" + }, + "1": { + "color": "#346f36cc", + "index": 0, + "text": "Synced" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "custom.width", + "value": 80 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#cc4637d9" + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Drift" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "id": "joinByField", - "options": { - "byField": "ins", - "mode": "outer" - } + "color": "#3e668f" }, { - "id": "organize", - "options": { - "excludeByName": { - "Time 1": true, - "Time 2": true, - "Time 3": true, - "Time 4": true, - "Time 5": true - }, - "indexByName": { - "Time 1": 5, - "Time 2": 6, - "Time 3": 7, - "Time 4": 8, - "Value #A": 1, - "Value #B": 2, - "Value #C": 3, - "Value #D": 4, - "ins": 0 - }, - "renameByName": { - "Value #A": "Synced", - "Value #B": "Status Code", - "Value #C": "Drift", - "Value #D": "Adjust%", - "Value #E": "Errors", - "ins": "Instance" - } - } + "color": "#f5a673", + "value": 0 } - ], - "type": "table" + ] + } + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "unit", + "value": "s" + }, + { + "id": "custom.width", + "value": 80 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Adjust%" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "node_timex_frequency_adjustment_ratio: It indicates the ratio of the current frequency adjustment to the nominal frequency, used to keep the system clock synchronized.\n", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 5, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=83&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "percentunit" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "text", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 30 - }, - "id": 70, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node_timex_frequency_adjustment_ratio{cls=\"$cls\"}-1", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }}", - "range": true, - "refId": "A" + "color": "#3e668f" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "0", - "hide": true, - "interval": "", - "legendFormat": "Time", - "refId": "B" + "color": "#f5a673", + "value": 0 } - ], - "title": "Time Frequencey Adjustment Ratio", - "type": "timeseries" - }, + ] + } + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "custom.width", + "value": 120 + }, + { + "id": "unit", + "value": "percentunit" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Instance" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance : Time Metrics for ${__data.fields.Instance}", + "url": "/d/node-instance?var-id=${__data.fields.Instance}&${__url_time_range}&viewPanel=277" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 4, + "y": 30 + }, + "id": 248, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "10.1.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (node_timex_sync_status{cls=\"$cls\"})", + "format": "table", + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (node_timex_status{cls=\"$cls\"})", + "format": "table", + "hide": false, + "interval": "", + "legendFormat": "__auto", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (node_timex_offset_seconds{cls=\"$cls\"})", + "format": "table", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (node_timex_frequency_adjustment_ratio{cls=\"$cls\"}) - 1", + "format": "table", + "hide": false, + "interval": "", + "legendFormat": "__auto", + "range": true, + "refId": "D" + } + ], + "title": "Node Time Metrics", + "transformations": [ + { + "id": "joinByField", + "options": { + "byField": "ins", + "mode": "outer" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time 1": true, + "Time 2": true, + "Time 3": true, + "Time 4": true, + "Time 5": true + }, + "indexByName": { + "Time 1": 5, + "Time 2": 6, + "Time 3": 7, + "Time 4": 8, + "Value #A": 1, + "Value #B": 2, + "Value #C": 3, + "Value #D": 4, + "ins": 0 + }, + "renameByName": { + "Value #A": "Synced", + "Value #B": "Status Code", + "Value #C": "Drift", + "Value #D": "Adjust%", + "Value #E": "Errors", + "ins": "Instance" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "node_timex_frequency_adjustment_ratio: It indicates the ratio of the current frequency adjustment to the nominal frequency, used to keep the system clock synchronized.\n", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 5, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 38 - }, - "id": 87, - "options": { - "legend": { - "calcs": [ - "mean", - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "avg by (collector) (node_scrape_collector_duration_seconds{cls=\"$cls\"})", - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{ collector }}", - "refId": "A" - } - ], - "title": "Node Exporter Duration", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=83&${__url_time_range}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "text", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 30 + }, + "id": 70, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node_timex_frequency_adjustment_ratio{cls=\"$cls\"}-1", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "0", + "hide": true, + "interval": "", + "legendFormat": "Time", + "refId": "B" + } + ], + "title": "Time Frequencey Adjustment Ratio", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 214 + }, + "id": 87, + "options": { + "legend": { + "calcs": [ + "mean", + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "avg by (collector) (node_scrape_collector_duration_seconds{cls=\"$cls\"})", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{ collector }}", + "refId": "A" + } + ], + "title": "Node Exporter Duration", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "line+area" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepBefore", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "line+area" - } - }, - "links": [ - { - "title": "Node Instance: ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=70&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "transparent" - }, - { - "color": "red", - "value": 100 - } - ] - }, - "unit": "celsius" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 38 - }, - "id": 73, - "options": { - "legend": { - "calcs": [ - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "max by (ins) (node_hwmon_temp_celsius{cls=\"$cls\"})", - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "Hardware Temperature (Max of Instance)", - "type": "timeseries" + "title": "Node Instance: ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&viewPanel=70&${__url_time_range}" } - ], - "title": "Misc", - "type": "row" - } - ], - "preload": false, - "refresh": "10s", - "schemaVersion": 40, - "tags": [ - "Pigsty", - "NODE", - "Cluster" - ], - "templating": { - "list": [ - { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "definition": "label_values(node_load1, cls)", - "description": "Node Cluster", - "includeAll": false, - "label": "Cluster", - "name": "cls", - "options": [], - "query": { - "query": "label_values(node_load1, cls)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "definition": "label_values(node_load1{cls=\"$cls\"}, ip)", - "description": "Node IP address", - "hide": 2, - "includeAll": true, - "label": "IP Address", - "multi": true, - "name": "members", - "options": [], - "query": { - "query": "label_values(node_load1{cls=\"$cls\"}, ip)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "definition": "label_values(pg_up{ip=~\"$members\"},cls)", - "description": "Node IP address", - "hide": 2, - "includeAll": false, - "label": "IP Address", - "name": "pg_cls", - "options": [], - "query": { - "query": "label_values(pg_up{ip=~\"$members\"},cls)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "definition": "label_values(probe_success{cls=\"$cls\"},vip)", - "description": "Node L2 VIP address", - "hide": 2, - "includeAll": false, - "label": "VIP Address", - "name": "vip", - "options": [], - "query": { - "query": "label_values(probe_success{cls=\"$cls\"},vip)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 1, - "type": "query" + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent" + }, + { + "color": "red", + "value": 100 + } + ] + }, + "unit": "celsius" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 214 + }, + "id": 73, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "2s", - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ] - }, - "timezone": "Asia/Shanghai", - "title": "Node Cluster", - "uid": "node-cluster", - "version": 1, - "weekStart": "" -} \ No newline at end of file + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "max by (ins) (node_hwmon_temp_celsius{cls=\"$cls\"})", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "Hardware Temperature (Max of Instance)", + "type": "timeseries" + } + ], + "title": "Misc", + "type": "row" + } + ], + "preload": false, + "refresh": "10s", + "schemaVersion": 40, + "tags": [ + "Pigsty", + "NODE", + "Cluster" + ], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "definition": "label_values(node_load1, cls)", + "description": "Node Cluster", + "includeAll": false, + "label": "Cluster", + "name": "cls", + "options": [], + "query": { + "query": "label_values(node_load1, cls)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "definition": "label_values(node_load1{cls=\"$cls\"}, ip)", + "description": "Node IP address", + "hide": 2, + "includeAll": true, + "label": "IP Address", + "multi": true, + "name": "members", + "options": [], + "query": { + "query": "label_values(node_load1{cls=\"$cls\"}, ip)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "definition": "label_values(pg_up{ip=~\"$members\"},cls)", + "description": "Node IP address", + "hide": 2, + "includeAll": false, + "label": "IP Address", + "name": "pg_cls", + "options": [], + "query": { + "query": "label_values(pg_up{ip=~\"$members\"},cls)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "definition": "label_values(probe_success{cls=\"$cls\"},vip)", + "description": "Node L2 VIP address", + "hide": 2, + "includeAll": false, + "label": "VIP Address", + "name": "vip", + "options": [], + "query": { + "query": "label_values(probe_success{cls=\"$cls\"},vip)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + } + ] + }, + "time": { + "from": "now-1h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "2s", + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "Asia/Shanghai", + "title": "Node Cluster", + "uid": "node-cluster", + "version": 1, + "weekStart": "" +} diff --git a/files/grafana/node/node-instance.json b/files/grafana/node/node-instance.json index 176622542..fa31683f8 100644 --- a/files/grafana/node/node-instance.json +++ b/files/grafana/node/node-instance.json @@ -1,15949 +1,16868 @@ { - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - } - ] + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "author": "Ruohang Feng (rh@vonng.com)", + "description": "Node: Instance Dashboard", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "license": "AGPLv3 @ https://pigsty.io/docs/about/license", + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "Pigsty", + "NODE" + ], + "targetBlank": false, + "title": "NODE", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 125, + "panels": [], + "title": "Overview", + "type": "row" }, - "author": "Ruohang Feng (rh@vonng.com)", - "description": "Node: Instance Dashboard", - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": null, - "license": "AGPLv3 @ https://pigsty.io/docs/about/license", - "links": [ - { - "asDropdown": true, - "icon": "external link", - "includeVars": true, - "keepTime": true, - "tags": [ - "Pigsty", - "NODE" - ], - "targetBlank": false, - "title": "NODE", - "tooltip": "", - "type": "dashboards", - "url": "" + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 2.5, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Cluster" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Cluster : ${cls}", + "url": "/d/node-cluster?var-cls=${cls}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Instance" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "PGSQL Instance : ${pg_ins}", + "url": "/d/pgsql-instance?var-ins=${pg_ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Node IP" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance : ${ip}", + "url": "/d/node-instance?var-id=${ip}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "VIP" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node VIP : ${vip}", + "url": "/d/node-vip?var-vip=${vip}&${__url_time_range}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 6, + "x": 0, + "y": 1 + }, + "id": 273, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "/.*/", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 20, + "valueSize": 16 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node_up{ip=\"$ip\"}", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Instance", + "queryType": "measurements", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "min by (job,ip,vip) (probe_success{ip=\"$ip\", job=~'(node|pgsql)-vip'})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ job }} : {{ vip }}", + "queryType": "measurements", + "refId": "A" } - ], - "panels": [ + ], + "title": "", + "transformations": [ { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 125, - "panels": [], - "title": "Overview", - "type": "row" + "id": "joinByField", + "options": { + "byField": "ip", + "mode": "outer" + } }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Time 1": true, + "Time 2": true, + "Value": true, + "Value #A": true, + "Value #B": true, + "__name__": true, + "domainname": true, + "instance": true, + "job": true, + "job 1": true, + "job 2": false, + "machine": true, + "release": true, + "sysname": true, + "version": true + }, + "indexByName": { + "Time": 4, + "Value": 13, + "__name__": 5, + "cls": 1, + "domainname": 8, + "ins": 0, + "instance": 6, + "ip": 2, + "job": 7, + "machine": 10, + "nodename": 3, + "release": 11, + "sysname": 9, + "version": 12 + }, + "renameByName": { + "Value #B": "", + "cls": "Cluster", + "domainname": "Domain", + "ins": "Instance", + "ip": "Node IP", + "job": "", + "job 2": "VIP Type", + "machine": "Arch", + "nodename": "Hostname", + "release": "Release", + "sysname": "System", + "version": "Version", + "vip": "VIP" + } + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "All nodes among cluster ${cls}", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "max": 1.2, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#e3e3e3e0", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Hostname" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.Hostname}", + "url": "/d/node-instance?var-id=${__data.fields.Hostname}&${__url_time_range}" + } + ] + }, + { + "id": "custom.minWidth", + "value": 180 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "IP" }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" + "properties": [ + { + "id": "custom.width", + "value": 140 + }, + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.IP}", + "url": "/d/node-instance?var-id=${__data.fields.IP}&var-ip=${__data.fields.IP}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Core" + }, + "properties": [ + { + "id": "custom.width", + "value": 40 + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "color-background" + } + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null }, - "mappings": [], - "max": 2.5, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - } - ] - } - }, - "overrides": [ { - "matcher": { - "id": "byName", - "options": "Cluster" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Cluster : ${cls}", - "url": "/d/node-cluster?var-cls=${cls}&${__url_time_range}" - } - ] - } - ] + "color": "#3e668f", + "value": 1 }, { - "matcher": { - "id": "byName", - "options": "Instance" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "PGSQL Instance : ${pg_ins}", - "url": "/d/pgsql-instance?var-ins=${pg_ins}&${__url_time_range}" - } - ] - } - ] + "color": "dark-blue", + "value": 2 }, { - "matcher": { - "id": "byName", - "options": "Node IP" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Instance : ${ip}", - "url": "/d/node-instance?var-id=${ip}&${__url_time_range}" - } - ] - } - ] + "color": "super-light-green", + "value": 4 }, { - "matcher": { - "id": "byName", - "options": "VIP" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node VIP : ${vip}", - "url": "/d/node-vip?var-vip=${vip}&${__url_time_range}" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 6, - "x": 0, - "y": 1 - }, - "id": 273, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/.*/", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 20, - "valueSize": 16 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "color": "#346f36cc", + "value": 8 }, - "editorMode": "code", - "exemplar": false, - "expr": "node_up{ip=\"$ip\"}", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Instance", - "queryType": "measurements", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "dark-green", + "value": 16 }, - "editorMode": "code", - "exemplar": false, - "expr": "min by (job,ip,vip) (probe_success{ip=\"$ip\", job=~'(node|pgsql)-vip'})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ job }} : {{ vip }}", - "queryType": "measurements", - "refId": "A" - } - ], - "title": "", - "transformations": [ - { - "id": "joinByField", - "options": { - "byField": "ip", - "mode": "outer" - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Time 1": true, - "Time 2": true, - "Value": true, - "Value #A": true, - "Value #B": true, - "__name__": true, - "domainname": true, - "instance": true, - "job": true, - "job 1": true, - "job 2": false, - "machine": true, - "release": true, - "sysname": true, - "version": true - }, - "indexByName": { - "Time": 4, - "Value": 13, - "__name__": 5, - "cls": 1, - "domainname": 8, - "ins": 0, - "instance": 6, - "ip": 2, - "job": 7, - "machine": 10, - "nodename": 3, - "release": 11, - "sysname": 9, - "version": 12 - }, - "renameByName": { - "Value #B": "", - "cls": "Cluster", - "domainname": "Domain", - "ins": "Instance", - "ip": "Node IP", - "job": "", - "job 2": "VIP Type", - "machine": "Arch", - "nodename": "Hostname", - "release": "Release", - "sysname": "System", - "version": "Version", - "vip": "VIP" - } + { + "color": "super-light-orange", + "value": 32 + }, + { + "color": "semi-dark-orange", + "value": 48 + }, + { + "color": "super-light-red", + "value": 56 + }, + { + "color": "semi-dark-red", + "value": 64 } + ] } - ], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "transparent", + "index": 0 + } + }, + "type": "special" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "CPU%" }, - "description": "All nodes among cluster ${cls}", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" + "properties": [ + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "gauge" + } + }, + { + "id": "color", + "value": { + "mode": "thresholds" + } + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "custom.width", + "value": 120 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null }, - "custom": { - "align": "center", - "cellOptions": { - "type": "auto" - }, - "inspect": false + { + "color": "#346f36cc", + "value": 0.1 }, - "mappings": [], - "max": 1.2, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#e3e3e3e0", - "value": null - } - ] - } - }, - "overrides": [ { - "matcher": { - "id": "byName", - "options": "Hostname" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Instance: ${__data.fields.Hostname}", - "url": "/d/node-instance?var-id=${__data.fields.Hostname}&${__url_time_range}" - } - ] - }, - { - "id": "custom.minWidth", - "value": 180 - } - ] + "color": "#fcdb72", + "value": 0.3 }, { - "matcher": { - "id": "byName", - "options": "IP" - }, - "properties": [ - { - "id": "custom.width", - "value": 140 - }, - { - "id": "links", - "value": [ - { - "title": "Node Instance: ${__data.fields.IP}", - "url": "/d/node-instance?var-id=${__data.fields.IP}&var-ip=${__data.fields.IP}&${__url_time_range}" - } - ] - } - ] + "color": "#f5a673", + "value": 0.5 }, { - "matcher": { - "id": "byName", - "options": "Core" - }, - "properties": [ - { - "id": "custom.width", - "value": 40 - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "color-background" - } - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "super-light-blue", - "value": null - }, - { - "color": "#3e668f", - "value": 1 - }, - { - "color": "dark-blue", - "value": 2 - }, - { - "color": "super-light-green", - "value": 4 - }, - { - "color": "#346f36cc", - "value": 8 - }, - { - "color": "dark-green", - "value": 16 - }, - { - "color": "super-light-orange", - "value": 32 - }, - { - "color": "semi-dark-orange", - "value": 48 - }, - { - "color": "super-light-red", - "value": 56 - }, - { - "color": "semi-dark-red", - "value": 64 - } - ] - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "transparent", - "index": 0 - } - }, - "type": "special" - } - ] - } - ] + "color": "red", + "value": 0.7 }, { - "matcher": { - "id": "byName", - "options": "CPU%" - }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "gauge" - } - }, - { - "id": "color", - "value": { - "mode": "thresholds" - } - }, - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "custom.width", - "value": 120 - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - } - }, - { - "id": "decimals", - "value": 1 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "transparent", - "index": 1 - } - }, - "type": "special" - } - ] - } - ] + "color": "#b783af", + "value": 0.9 }, { - "matcher": { - "id": "byName", - "options": "Mem" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#b3b5b7", - "value": null - }, - { - "color": "super-light-blue", - "value": 1 - }, - { - "color": "#3275d9c4", - "value": 2 - }, - { - "color": "dark-blue", - "value": 4 - }, - { - "color": "#346f36cc", - "value": 8 - }, - { - "color": "#346f36cc", - "value": 16 - }, - { - "color": "dark-green", - "value": 32 - }, - { - "color": "#fcdb72", - "value": 62 - }, - { - "color": "super-light-orange", - "value": 64 - }, - { - "color": "#f5a673", - "value": 128 - }, - { - "color": "#e02f44bf", - "value": 256 - }, - { - "color": "red", - "value": 512 - } - ] - } - }, - { - "id": "unit", - "value": "gbytes" - }, - { - "id": "custom.width", - "value": 70 - }, - { - "id": "decimals", - "value": 0 - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "transparent", - "index": 0 - } - }, - "type": "special" - } - ] - } - ] + "color": "text", + "value": 1 + } + ] + } + }, + { + "id": "decimals", + "value": 1 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "transparent", + "index": 1 + } + }, + "type": "special" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Mem" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#b3b5b7", + "value": null }, { - "matcher": { - "id": "byName", - "options": "Mem%" - }, - "properties": [ - { - "id": "custom.width", - "value": 120 - }, - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "gauge" - } - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#f5a673", - "value": 0.3 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - } - }, - { - "id": "decimals", - "value": 1 - } - ] + "color": "super-light-blue", + "value": 1 }, { - "matcher": { - "id": "byName", - "options": "Space" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - }, - { - "id": "unit", - "value": "gbytes" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "super-light-blue", - "value": null - }, - { - "color": "#3e668f", - "value": 32 - }, - { - "color": "super-light-green", - "value": 256 - }, - { - "color": "#346f36cc", - "value": 512 - }, - { - "color": "light-yellow", - "value": 1024 - }, - { - "color": "#f5a673", - "value": 4096 - }, - { - "color": "light-red", - "value": 8192 - } - ] - } - }, - { - "id": "decimals", - "value": 1 - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "transparent", - "index": 1 - } - }, - "type": "special" - } - ] - } - ] + "color": "#3275d9c4", + "value": 2 }, { - "matcher": { - "id": "byName", - "options": "Space%" - }, - "properties": [ - { - "id": "custom.width", - "value": 120 - }, - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "decimals", - "value": 1 - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.05 - }, - { - "color": "#EAB839", - "value": 0.8 - }, - { - "color": "#f5a673", - "value": 0.85 - }, - { - "color": "red", - "value": 0.9 - }, - { - "color": "#b783af", - "value": 0.95 - }, - { - "color": "text", - "value": 0.99 - } - ] - } - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "gauge" - } - } - ] + "color": "dark-blue", + "value": 4 }, { - "matcher": { - "id": "byName", - "options": "OS Release" - }, - "properties": [ - { - "id": "custom.minWidth", - "value": 150 - } - ] + "color": "#346f36cc", + "value": 8 }, { - "matcher": { - "id": "byName", - "options": "Targets" - }, - "properties": [ - { - "id": "custom.width", - "value": 66 - } - ] + "color": "#346f36cc", + "value": 16 }, { - "matcher": { - "id": "byName", - "options": "Cluster" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Cluster : ${__data.fields.Cluster}", - "url": "/d/node-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}" - } - ] - } - ] + "color": "dark-green", + "value": 32 }, { - "matcher": { - "id": "byName", - "options": "Instance" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Instance: ${__data.fields.Instance}", - "url": "/d/node-instance?var-id=${__data.fields.Instance}&var-ins=${__data.fields.Instance}&${__url_time_range}" - } - ] - } - ] + "color": "#fcdb72", + "value": 62 }, { - "matcher": { - "id": "byName", - "options": "Ping" - }, - "properties": [ - { - "id": "unit", - "value": "s" - }, - { - "id": "custom.width", - "value": 80 - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.0002 - }, - { - "color": "#fcdb72", - "value": 0.0005 - }, - { - "color": "#f5a673", - "value": 0.001 - }, - { - "color": "red", - "value": 0.01 - }, - { - "color": "text", - "value": 1 - } - ] - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "from": 7, - "result": { - "color": "text", - "index": 0, - "text": "\u221e" - }, - "to": 9999999 - }, - "type": "range" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - } - ] + "color": "super-light-orange", + "value": 64 }, { - "matcher": { - "id": "byName", - "options": "HAProxy" - }, - "properties": [ - { - "id": "custom.width", - "value": 140 - }, - { - "id": "links", - "value": [ - { - "targetBlank": true, - "title": "HAProxy Admin Page : ${__data.fields.Instance}", - "url": "http://h.pigsty/${__data.fields.Instance}" - } - ] - } - ] + "color": "#f5a673", + "value": 128 }, { - "matcher": { - "id": "byName", - "options": "Conn" - }, - "properties": [ - { - "id": "custom.width", - "value": 60 - } - ] + "color": "#e02f44bf", + "value": 256 }, { - "matcher": { - "id": "byName", - "options": "Alive" - }, - "properties": [ - { - "id": "custom.width", - "value": 100 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "#cc4637d9", - "index": 0, - "text": "Down" - }, - "1": { - "color": "#346f36cc", - "index": 1, - "text": "UP" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - }, - { - "id": "custom.width", - "value": 60 - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 18, - "x": 6, - "y": 1 - }, - "id": 276, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "color": "red", + "value": 512 + } + ] + } + }, + { + "id": "unit", + "value": "gbytes" + }, + { + "id": "custom.width", + "value": 70 + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "transparent", + "index": 0 + } + }, + "type": "special" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Mem%" + }, + "properties": [ + { + "id": "custom.width", + "value": 120 + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "gauge" + } + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null }, - "editorMode": "code", - "exemplar": false, - "expr": "node_up{cls=\"$cls\"}", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "L" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#346f36cc", + "value": 0.1 }, - "editorMode": "code", - "exemplar": false, - "expr": "group without(ins,cls,instance) (node_uname_info{cls=\"$cls\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#f5a673", + "value": 0.3 }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (node:ins:cpu_usage{cls=\"$cls\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#f5a673", + "value": 0.5 }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (node:ins:mem_usage{cls=\"$cls\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "red", + "value": 0.7 }, - "editorMode": "code", - "exemplar": false, - "expr": "sum by (ip,instance) (node:ins:space_usage_max{cls=\"$cls\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#b783af", + "value": 0.9 }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (node:ins:cpu_count{cls=\"$cls\"}) ", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "E" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "text", + "value": 1 + } + ] + } + }, + { + "id": "decimals", + "value": 1 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Space" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "unit", + "value": "gbytes" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue", + "value": null }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (node_memory_MemTotal_bytes{cls=\"$cls\"}) / 1073741824", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "F" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#3e668f", + "value": 32 }, - "editorMode": "code", - "exemplar": false, - "expr": "sum(node:fs:size_bytes{cls=\"$cls\"}) by (ip) / 1073741824", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "G" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "super-light-green", + "value": 256 }, - "editorMode": "code", - "exemplar": false, - "expr": "count by (ip) (up{cls=\"$cls\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "H" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#346f36cc", + "value": 512 }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (probe_duration_seconds{cls=\"$cls\", job=\"ping\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "I" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "light-yellow", + "value": 1024 }, - "editorMode": "code", - "exemplar": false, - "expr": "sum by (ip) (haproxy_backend_current_sessions{cls=\"$cls\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "J" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#f5a673", + "value": 4096 }, - "editorMode": "code", - "exemplar": false, - "expr": "min by (ip) (node_up{cls=\"$cls\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "K" - } - ], - "title": "", - "transformations": [ - { - "id": "seriesToColumns", - "options": { - "byField": "ip" - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Time 1": true, - "Time 10": true, - "Time 11": true, - "Time 2": true, - "Time 3": true, - "Time 4": true, - "Time 5": true, - "Time 6": true, - "Time 7": true, - "Time 8": true, - "Time 9": true, - "Value #A": true, - "Value #B": false, - "Value #J": false, - "Value #L": true, - "__name__": true, - "__name__ 1": true, - "__name__ 2": true, - "__name__ 3": true, - "cls": true, - "cls 1": true, - "cls 2": false, - "cls 3": true, - "domainname": true, - "instance": false, - "instance 1": false, - "instance 2": true, - "instance 3": true, - "ip 2": true, - "ip 3": true, - "job": true, - "job 1": true, - "job 2": true, - "job 3": true, - "machine": true, - "maxmemory_policy": true, - "nodename": true, - "os": true, - "process_id": true, - "redis_build_id": true, - "release": false, - "run_id": true, - "sysname": true, - "tcp_port": true, - "version": true - }, - "indexByName": { - "Time 1": 17, - "Time 10": 26, - "Time 11": 27, - "Time 12": 31, - "Time 2": 18, - "Time 3": 19, - "Time 4": 20, - "Time 5": 21, - "Time 6": 22, - "Time 7": 23, - "Time 8": 24, - "Time 9": 25, - "Value #A": 7, - "Value #B": 9, - "Value #C": 11, - "Value #D": 13, - "Value #E": 8, - "Value #F": 10, - "Value #G": 12, - "Value #H": 6, - "Value #I": 14, - "Value #J": 15, - "Value #K": 0, - "Value #L": 29, - "__name__": 28, - "cls": 2, - "domainname": 33, - "ins": 3, - "instance 1": 4, - "instance 2": 30, - "ip": 1, - "job 1": 32, - "job 2": 34, - "machine": 35, - "nodename": 5, - "release": 16, - "sysname": 36, - "version": 37 - }, - "renameByName": { - "Time 4": "", - "Value #A": "", - "Value #B": "CPU%", - "Value #C": "Mem%", - "Value #D": "Space%", - "Value #E": "Core", - "Value #F": "Mem", - "Value #G": "Space", - "Value #H": "Targets", - "Value #I": "Ping", - "Value #J": "Conn", - "Value #K": "Alive", - "cls": "Cluster", - "cls 1": "Cluster", - "cls 2": "Cluster", - "ins": "Instance", - "ins 2": "Instance", - "instance": "HAProxy", - "instance 1": "HAProxy", - "instance 3": "", - "ip": "IP", - "ip 1": "IP", - "job 1": "", - "nodename": "Hostname", - "redis_mode": "Mode", - "redis_version": "Version", - "release": "OS Release", - "role": "Role" - } + { + "color": "light-red", + "value": 8192 } + ] } - ], - "type": "table" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - } - ] - }, - "unit": "string" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 6, - "x": 0, - "y": 8 - }, - "id": 269, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/.*/", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 14, - "valueSize": 12 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node_uname_info{ins=\"$ins\"}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "range": false, - "refId": "A" + }, + { + "id": "decimals", + "value": 1 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" } - ], - "title": "", - "transformations": [ - { - "id": "organize", + }, + { + "id": "mappings", + "value": [ + { "options": { - "excludeByName": { - "Time": true, - "Value": true, - "Value #A": true, - "__name__": true, - "cls": true, - "cluster_name": true, - "domainname": true, - "extensions": true, - "ins": true, - "instance": false, - "ip": true, - "job": true, - "nodename": true, - "primary_conninfo": true, - "ver_num": true, - "version": true - }, - "indexByName": { - "Time": 6, - "Value": 11, - "__name__": 7, - "cls": 5, - "domainname": 12, - "ins": 8, - "instance": 2, - "ip": 10, - "job": 9, - "machine": 1, - "nodename": 13, - "release": 3, - "sysname": 0, - "version": 4 - }, - "renameByName": { - "Time": "", - "cls": "", - "cluster_id": "ClusterID", - "cluster_name": "CLS", - "conf_path": "Config", - "data_dir": "Data", - "domainname": "DomainName", - "extensions": "Library", - "hba_path": "HBA", - "ins": "", - "instance": "Instance", - "listen_port": "Port", - "machine": "Arch", - "nodename": "", - "primary_conninfo": "Primary", - "release": "Release", - "sysname": "OS", - "ver_num": "Ver Num", - "version": "Version", - "wal_level": "WAL" - } - } - } - ], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "match": "null+nan", + "result": { + "color": "transparent", + "index": 1 + } + }, + "type": "special" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Space%" }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 2.5, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - } - ] - } - }, - "overrides": [ + "properties": [ + { + "id": "custom.width", + "value": 120 + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "decimals", + "value": 1 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "matcher": { - "id": "byName", - "options": "Mem" - }, - "properties": [ - { - "id": "unit", - "value": "bytes" - }, - { - "id": "decimals", - "value": 1 - } - ] + "color": "#3e668f", + "value": null }, { - "matcher": { - "id": "byName", - "options": "Swap" - }, - "properties": [ - { - "id": "unit", - "value": "bytes" - }, - { - "id": "decimals", - "value": 1 - } - ] + "color": "#346f36cc", + "value": 0.05 }, { - "matcher": { - "id": "byName", - "options": "Disk" - }, - "properties": [ - { - "id": "unit", - "value": "bytes" - } - ] + "color": "#EAB839", + "value": 0.8 }, { - "matcher": { - "id": "byName", - "options": "Link" - }, - "properties": [ - { - "id": "unit", - "value": "bps" - }, - { - "id": "mappings", - "value": [ - { - "options": { - "result": { - "index": 1, - "text": "Unknown" - }, - "to": 0 - }, - "type": "range" - } - ] - } - ] + "color": "#f5a673", + "value": 0.85 }, { - "matcher": { - "id": "byName", - "options": "NVMe" - }, - "properties": [ - { - "id": "unit", - "value": "bytes" - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 6, - "y": 8 - }, - "id": 271, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 16, - "valueSize": 14 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node:ins:cpu_count{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Core", - "queryType": "measurements", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum by (ins) (node_memory_MemTotal_bytes{ip=\"$ip\"})", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Mem", - "queryType": "measurements", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "color": "red", + "value": 0.9 }, - "editorMode": "code", - "exemplar": false, - "expr": "sum by (ins) (node_memory_SwapTotal_bytes{ip=\"$ip\"})", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Swap", - "queryType": "measurements", - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum(max by (mountpoint)(node_filesystem_size_bytes{ip=\"$ip\"}))", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Disk", - "queryType": "measurements", - "refId": "H" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum(node_filesystem_size_bytes{ip=\"$ip\", device=~\"/dev/(nvme.*|dfa.*)\"})", - "instant": true, - "interval": "", - "legendFormat": "NVMe", - "queryType": "measurements", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#b783af", + "value": 0.95 }, - "editorMode": "code", - "exemplar": false, - "expr": "- absent(node_network_speed_bytes{ip=\"$ip\"}) OR max by (ins) (node_network_speed_bytes{ip=\"$ip\"}) * 8", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Link", - "queryType": "measurements", - "refId": "E" + { + "color": "text", + "value": 0.99 + } + ] } - ], - "title": "", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "gauge" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "OS Release" }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 2.5, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - } - ] - } - }, - "overrides": [ + "properties": [ + { + "id": "custom.minWidth", + "value": 150 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Targets" + }, + "properties": [ + { + "id": "custom.width", + "value": 66 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Cluster" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Cluster : ${__data.fields.Cluster}", + "url": "/d/node-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Instance" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.Instance}", + "url": "/d/node-instance?var-id=${__data.fields.Instance}&var-ins=${__data.fields.Instance}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Ping" + }, + "properties": [ + { + "id": "unit", + "value": "s" + }, + { + "id": "custom.width", + "value": 80 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "matcher": { - "id": "byName", - "options": "Alive" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 0 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "#cc4637d9", - "index": 0, - "text": "Dead" - }, - "1": { - "color": "#346f36cc", - "index": 1, - "text": "Up" - } - }, - "type": "value" - } - ] - } - ] + "color": "#3e668f", + "value": null }, { - "matcher": { - "id": "byName", - "options": "Uptime" - }, - "properties": [ - { - "id": "unit", - "value": "s" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#cc4637d9", - "value": null - }, - { - "color": "#346f36cc", - "value": 300 - } - ] - } - }, - { - "id": "decimals", - "value": 1 - } - ] + "color": "#346f36cc", + "value": 0.0002 }, { - "matcher": { - "id": "byName", - "options": "Numa" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "-1": { - "color": "#808080", - "index": 2, - "text": "Unknown" - }, - "0": { - "index": 1, - "text": "Disable" - }, - "1": { - "index": 0, - "text": "Enabled" - } - }, - "type": "value" - } - ] - } - ] + "color": "#fcdb72", + "value": 0.0005 }, { - "matcher": { - "id": "byName", - "options": "HugePage" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "#808080", - "index": 0, - "text": "Disabled" - } - }, - "type": "value" - } - ] - }, - { - "id": "unit", - "value": "bytes" - } - ] + "color": "#f5a673", + "value": 0.001 }, { - "matcher": { - "id": "byName", - "options": "Bond" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "from": -9999999999, - "result": { - "color": "#808080", - "index": 0, - "text": "Unknown" - }, - "to": 0 - }, - "type": "range" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 9, - "y": 8 - }, - "id": 270, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 12 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "min by (ip) (node_up{ip=\"$ip\"})", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Alive", - "queryType": "measurements", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(time() - node_boot_time_seconds{ip=\"$ip\"})", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Uptime", - "queryType": "measurements", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "- absent(node_vmstat_numa_hit{ip=\"$ip\"}) OR rate(node_vmstat_numa_hit{ip=\"$ip\"}[1m]) > bool 0", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Numa", - "queryType": "measurements", - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum by (ins) (node_memory_Hugepagesize_bytes{ip=\"$ip\"} * node_memory_HugePages_Total{ip=\"$ip\"})", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "HugePage", - "queryType": "measurements", - "refId": "H" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "color": "red", + "value": 0.01 }, - "editorMode": "code", - "exemplar": false, - "expr": "-absent(node_bonding_active{ip=\"$ip\"}) or node_bonding_active{ip=\"$ip\"}", - "instant": true, - "interval": "", - "legendFormat": "Bond", - "queryType": "measurements", - "refId": "B" + { + "color": "text", + "value": 1 + } + ] } - ], - "title": "", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + }, + { + "id": "mappings", + "value": [ + { + "options": { + "from": 7, + "result": { + "color": "text", + "index": 0, + "text": "āˆž" + }, + "to": 9999999 + }, + "type": "range" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "HAProxy" }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "links": [ - { - "title": "CPU Usage Detail", - "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=172&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "\u00d8", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.5 - }, - { - "color": "#d44a3a", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "rgba(0, 0, 0, 0.7)", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 12, - "y": 8 - }, - "id": 75, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": true, - "expr": "node:ins:cpu_usage{ip=\"$ip\"}", - "instant": false, - "interval": "", - "legendFormat": "CPU", - "refId": "A" + "properties": [ + { + "id": "custom.width", + "value": 140 + }, + { + "id": "links", + "value": [ + { + "targetBlank": true, + "title": "HAProxy Admin Page : ${__data.fields.Instance}", + "url": "http://h.pigsty/${__data.fields.Instance}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Conn" + }, + "properties": [ + { + "id": "custom.width", + "value": 60 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Alive" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#cc4637d9", + "index": 0, + "text": "Down" + }, + "1": { + "color": "#346f36cc", + "index": 1, + "text": "UP" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" } - ], - "title": "", - "type": "stat" + }, + { + "id": "custom.width", + "value": 60 + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 18, + "x": 6, + "y": 1 + }, + "id": 276, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "11.5.2", + "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "links": [ - { - "title": "Node Load Detail", - "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=186&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "\u00d8", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.5 - }, - { - "color": "#d44a3a", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "rgba(0, 0, 0, 0.7)", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 14, - "y": 8 - }, - "id": 145, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": true, - "expr": "node:ins:stdload1{ip=\"$ip\"}", - "instant": false, - "interval": "", - "legendFormat": "load1", - "refId": "A" - } - ], - "title": "", - "type": "stat" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node_up{cls=\"$cls\"}", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "L" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Memory Detail", - "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=33&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 16, - "y": 8 - }, - "id": 148, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(node:ins:mem_usage{ip=\"$ip\"})", - "interval": "", - "legendFormat": "Memory", - "range": true, - "refId": "A" - } - ], - "title": "", - "type": "stat" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "group without(ins,cls,instance) (node_uname_info{cls=\"$cls\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "A" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Disk Usage Detail", - "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=199&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - }, - { - "color": "#f5a673", - "value": 0.8 - }, - { - "color": "red", - "value": 0.9 - }, - { - "color": "#b783af", - "value": 0.95 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 18, - "y": 8 - }, - "id": 147, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(node:fs:space_usage{ip=\"$ip\"})", - "interval": "", - "legendFormat": "Space", - "range": true, - "refId": "A" - } - ], - "title": "", - "type": "stat" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (node:ins:cpu_usage{cls=\"$cls\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "B" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "links": [ - { - "title": "File Descriptor Usage", - "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=58&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - }, - { - "color": "#f5a673", - "value": 0.8 - }, - { - "color": "red", - "value": 0.9 - }, - { - "color": "#b783af", - "value": 0.95 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "sci" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 20, - "y": 8 - }, - "id": 150, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node:ins:fd_usage{ip=\"$ip\"}", - "interval": "", - "legendFormat": "FD", - "range": true, - "refId": "A" - } - ], - "title": "", - "type": "stat" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (node:ins:mem_usage{cls=\"$cls\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "C" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "iNode Usage Detail", - "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=174&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - }, - { - "color": "#f5a673", - "value": 0.8 - }, - { - "color": "red", - "value": 0.9 - }, - { - "color": "#b783af", - "value": 0.95 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 22, - "y": 8 - }, - "id": 149, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(node:fs:inode_usage{ip=\"$ip\"})", - "interval": "", - "legendFormat": "iNode", - "range": true, - "refId": "A" - } - ], - "title": "", - "type": "stat" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (ip,instance) (node:ins:space_usage_max{cls=\"$cls\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "D" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "IOPS Detail", - "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=46&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 10 - }, - { - "color": "#fcdb72", - "value": 50000 - }, - { - "color": "#f5a673", - "value": 100000 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 12, - "y": 11 - }, - "id": 155, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum(node:dev:disk_iops_1m{ip=\"$ip\"})", - "interval": "", - "legendFormat": "IOPS", - "range": true, - "refId": "A" - } - ], - "title": "", - "type": "stat" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (node:ins:cpu_count{cls=\"$cls\"}) ", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "E" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Disk IO Bandwidth Detail", - "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=45&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 10000000 - }, - { - "color": "#fcdb72", - "value": 100000000 - }, - { - "color": "#f5a673", - "value": 500000000 - }, - { - "color": "red", - "value": 1000000000 - }, - { - "color": "#b783af", - "value": 2000000000 - }, - { - "color": "text", - "value": 4000000000 - } - ] - }, - "unit": "Bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 14, - "y": 11 - }, - "id": 156, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 14 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node:ins:disk_io_bytes_rate1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Disk IO", - "range": true, - "refId": "A" - } - ], - "title": "", - "type": "stat" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (node_memory_MemTotal_bytes{cls=\"$cls\"}) / 1073741824", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "F" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Network interface bandwidth detail", - "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=178&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 10000000 - }, - { - "color": "#fcdb72", - "value": 100000000 - }, - { - "color": "#f5a673", - "value": 500000000 - }, - { - "color": "red", - "value": 1000000000 - }, - { - "color": "#b783af", - "value": 2000000000 - }, - { - "color": "text", - "value": 4000000000 - } - ] - }, - "unit": "Bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 16, - "y": 11 - }, - "id": 158, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 14 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node:ins:network_io_bytes_rate1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Net Traff", - "range": true, - "refId": "A" - } - ], - "title": "", - "type": "stat" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(node:fs:size_bytes{cls=\"$cls\"}) by (ip) / 1073741824", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "G" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "TCP Error Detail", - "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=53&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 1 - }, - { - "color": "#f5a673", - "value": 2 - }, - { - "color": "red", - "value": 4 - }, - { - "color": "#b783af", - "value": 8 - }, - { - "color": "text", - "value": 16 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 18, - "y": 11 - }, - "id": 154, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node:ins:tcp_error_rate1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "TCP Errs", - "range": true, - "refId": "A" - } - ], - "title": "", - "type": "stat" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count by (ip) (up{cls=\"$cls\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "H" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "links": [ - { - "title": "Node Load Detail", - "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=52&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "noValue": "\u00d8", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 1e-06 - }, - { - "color": "super-light-green", - "value": 1e-05 - }, - { - "color": "#EAB839", - "value": 0.0001 - }, - { - "color": "#f5a673", - "value": 0.001 - }, - { - "color": "red", - "value": 0.01 - }, - { - "color": "#b783af", - "value": 0.1 - } - ] - }, - "unit": "sci" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 20, - "y": 11 - }, - "id": 175, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": true, - "expr": "node:ins:tcp_retrans_ratio1m{ip=\"$ip\"}", - "instant": false, - "interval": "", - "legendFormat": "Retrans", - "refId": "A" - } - ], - "title": "", - "type": "stat" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (probe_duration_seconds{cls=\"$cls\", job=\"ping\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "I" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Time Sync Details", - "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=83&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "0": { - "color": "#cc4637d9", - "index": 1, - "text": "Failed" - }, - "1": { - "color": "#346f36cc", - "index": 0, - "text": "Synced" - } - }, - "type": "value" - } - ], - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#cc4637d9", - "value": null - }, - { - "color": "#346f36cc", - "value": 1 - }, - { - "color": "#cc4637d9", - "value": 1.1 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 22, - "y": 11 - }, - "id": 160, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 14 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(node_timex_sync_status{ip=\"$ip\"})", - "interval": "", - "legendFormat": "Time Sync", - "range": true, - "refId": "A" - } - ], - "title": "", - "type": "stat" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (ip) (haproxy_backend_current_sessions{cls=\"$cls\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "J" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "links": [ - { - "targetBlank": true, - "title": "HAProxy Admin Page : $ins", - "url": "http://h.pigsty/$ins/" - } - ], - "mappings": [ - { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" - } - ], - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 14 - }, - "id": 264, - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": false, - "expr": "count(sum by (proxy) (haproxy_backend_current_sessions{ins=\"$ins\", proxy!=\"stats\"}))", - "instant": true, - "interval": "", - "intervalFactor": 2, - "legendFormat": "Service", - "refId": "A", - "step": 1800 - } - ], - "title": "", - "type": "stat" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "min by (ip) (node_up{cls=\"$cls\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "K" + } + ], + "title": "", + "transformations": [ + { + "id": "seriesToColumns", + "options": { + "byField": "ip" + } }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Time 1": true, + "Time 10": true, + "Time 11": true, + "Time 2": true, + "Time 3": true, + "Time 4": true, + "Time 5": true, + "Time 6": true, + "Time 7": true, + "Time 8": true, + "Time 9": true, + "Value #A": true, + "Value #B": false, + "Value #J": false, + "Value #L": true, + "__name__": true, + "__name__ 1": true, + "__name__ 2": true, + "__name__ 3": true, + "cls": true, + "cls 1": true, + "cls 2": false, + "cls 3": true, + "domainname": true, + "instance": false, + "instance 1": false, + "instance 2": true, + "instance 3": true, + "ip 2": true, + "ip 3": true, + "job": true, + "job 1": true, + "job 2": true, + "job 3": true, + "machine": true, + "maxmemory_policy": true, + "nodename": true, + "os": true, + "process_id": true, + "redis_build_id": true, + "release": false, + "run_id": true, + "sysname": true, + "tcp_port": true, + "version": true }, - "description": "", - "fieldConfig": { - "defaults": { - "links": [ - { - "title": "Node Haproxy : $ins", - "url": "/d/node-haproxy?var-ins=$ins&${__url_time_range}" - } - ], - "mappings": [], - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 3, - "y": 14 - }, - "id": 266, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum(haproxy_frontend_current_sessions{ins=\"$ins\"})", - "hide": false, - "instant": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "Session", - "metric": "", - "range": false, - "refId": "B", - "step": 30 - } - ], - "title": "", - "type": "stat" + "indexByName": { + "Time 1": 17, + "Time 10": 26, + "Time 11": 27, + "Time 12": 31, + "Time 2": 18, + "Time 3": 19, + "Time 4": 20, + "Time 5": 21, + "Time 6": 22, + "Time 7": 23, + "Time 8": 24, + "Time 9": 25, + "Value #A": 7, + "Value #B": 9, + "Value #C": 11, + "Value #D": 13, + "Value #E": 8, + "Value #F": 10, + "Value #G": 12, + "Value #H": 6, + "Value #I": 14, + "Value #J": 15, + "Value #K": 0, + "Value #L": 29, + "__name__": 28, + "cls": 2, + "domainname": 33, + "ins": 3, + "instance 1": 4, + "instance 2": 30, + "ip": 1, + "job 1": 32, + "job 2": 34, + "machine": 35, + "nodename": 5, + "release": 16, + "sysname": 36, + "version": 37 + }, + "renameByName": { + "Time 4": "", + "Value #A": "", + "Value #B": "CPU%", + "Value #C": "Mem%", + "Value #D": "Space%", + "Value #E": "Core", + "Value #F": "Mem", + "Value #G": "Space", + "Value #H": "Targets", + "Value #I": "Ping", + "Value #J": "Conn", + "Value #K": "Alive", + "cls": "Cluster", + "cls 1": "Cluster", + "cls 2": "Cluster", + "ins": "Instance", + "ins 2": "Instance", + "instance": "HAProxy", + "instance 1": "HAProxy", + "instance 3": "", + "ip": "IP", + "ip 1": "IP", + "job 1": "", + "nodename": "Hostname", + "redis_mode": "Mode", + "redis_version": "Version", + "release": "OS Release", + "role": "Role" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + } + ] + }, + "unit": "string" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 6, + "x": 0, + "y": 8 + }, + "id": 269, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "/.*/", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 14, + "valueSize": 12 }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node_uname_info{ins=\"$ins\"}", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "", + "range": false, + "refId": "A" + } + ], + "title": "", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Value": true, + "Value #A": true, + "__name__": true, + "cls": true, + "cluster_name": true, + "domainname": true, + "extensions": true, + "ins": true, + "instance": false, + "ip": true, + "job": true, + "nodename": true, + "primary_conninfo": true, + "ver_num": true, + "version": true }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Disk Usage Detail", - "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=199&${__url_time_range}" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - }, - { - "color": "#f5a673", - "value": 0.8 - }, - { - "color": "red", - "value": 0.9 - }, - { - "color": "#b783af", - "value": 0.95 - }, - { - "color": "text", - "value": 0.99 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 6, - "y": 14 - }, - "id": 214, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": true, - "expr": "node:fs:space_usage{ip=\"$ip\"}", - "interval": "", - "legendFormat": "{{ device }} \u2192 {{ mountpoint }}", - "refId": "A" - } - ], - "title": "", - "type": "stat" + "indexByName": { + "Time": 6, + "Value": 11, + "__name__": 7, + "cls": 5, + "domainname": 12, + "ins": 8, + "instance": 2, + "ip": 10, + "job": 9, + "machine": 1, + "nodename": 13, + "release": 3, + "sysname": 0, + "version": 4 + }, + "renameByName": { + "Time": "", + "cls": "", + "cluster_id": "ClusterID", + "cluster_name": "CLS", + "conf_path": "Config", + "data_dir": "Data", + "domainname": "DomainName", + "extensions": "Library", + "hba_path": "HBA", + "ins": "", + "instance": "Instance", + "listen_port": "Port", + "machine": "Arch", + "nodename": "", + "primary_conninfo": "Primary", + "release": "Release", + "sysname": "OS", + "ver_num": "Ver Num", + "version": "Version", + "wal_level": "WAL" + } + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 2.5, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Mem" + }, + "properties": [ + { + "id": "unit", + "value": "bytes" + }, + { + "id": "decimals", + "value": 1 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Swap" + }, + "properties": [ + { + "id": "unit", + "value": "bytes" + }, + { + "id": "decimals", + "value": 1 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Disk" + }, + "properties": [ + { + "id": "unit", + "value": "bytes" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Link" + }, + "properties": [ + { + "id": "unit", + "value": "bps" + }, + { + "id": "mappings", + "value": [ + { + "options": { + "result": { + "index": 1, + "text": "Unknown" + }, + "to": 0 + }, + "type": "range" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "NVMe" + }, + "properties": [ + { + "id": "unit", + "value": "bytes" + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 3, + "x": 6, + "y": 8 + }, + "id": 271, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, + "showPercentChange": false, + "text": { + "titleSize": 16, + "valueSize": 14 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:cpu_count{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Core", + "queryType": "measurements", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (ins) (node_memory_MemTotal_bytes{ip=\"$ip\"})", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Mem", + "queryType": "measurements", + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (ins) (node_memory_SwapTotal_bytes{ip=\"$ip\"})", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Swap", + "queryType": "measurements", + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(max by (mountpoint)(node_filesystem_size_bytes{ip=\"$ip\"}))", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Disk", + "queryType": "measurements", + "refId": "H" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(node_filesystem_size_bytes{ip=\"$ip\", device=~\"/dev/(nvme.*|dfa.*)\"})", + "instant": true, + "interval": "", + "legendFormat": "NVMe", + "queryType": "measurements", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "- absent(node_network_speed_bytes{ip=\"$ip\"}) OR max by (ins) (node_network_speed_bytes{ip=\"$ip\"}) * 8", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Link", + "queryType": "measurements", + "refId": "E" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 2.5, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Alive" }, - "description": "Blue = PostgreSQL\n\nGreen = Pgbouncer\n\nYellow : Agent (Patroni / PG Exporters)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [], - "mappings": [ - { - "options": { - "0": { - "color": "text", - "index": 1, - "text": "Dead" - }, - "1": { - "index": 2, - "text": "Up" - } - }, - "type": "value" - }, - { - "options": { - "match": "null+nan", - "result": { - "index": 0 - } - }, - "type": "special" - } - ], - "max": 1.1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#aaaaaa", - "value": 1 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byFrameRefID", - "options": "A" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#3e668f", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "PGSQL Instance : ${__field.labels.ins}", - "url": "/d/pgsql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "B" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#3d668fd6", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "PGSQL Pgbouncer : ${__field.labels.ins}", - "url": "/d/pgsql-pgbouncer?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "C" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#5b9cd5", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "PGSQL Patroni : ${__field.labels.cls}", - "url": "/d/pgsql-patroni?var-cls=${__field.labels.cls}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "D" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#b783af", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "PGSQL Exporter : ${__field.labels.ins}", - "url": "/d/pgsql-exporter?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "E" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#7771a4", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "PGSQL Exporter : ${__field.labels.ins}", - "url": "/d/pgsql-exporter?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "F" - }, - "properties": [ - { - "id": "links", - "value": [] - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#e6b03ee6", - "value": 1 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "G" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node HAProxy : ${__field.labels.ins}", - "url": "/d/node-haproxy?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#f5a673", - "value": 1 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "H" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#1b6eb6d1", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "Node Instance : ${__field.labels.ins}", - "url": "/d/node-instance?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "I" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Logs Instance : ${__field.labels.ins}", - "url": "/d/logs-instance?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#cc4637d9", - "value": 1 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "J" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#346f36cc", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "Infra Overview", - "url": "/d/infra-overview?${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "K" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#5b9cd5", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "ETCD Overview", - "url": "/d/etcd-overview?${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "L" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#cc4637d9", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "Redis Instance ${__field.labels.ins} @ ${__field.labels.instance}", - "url": "/d/redis-instance?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "M" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#d0475799", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "Minio Instance: ${__field.labels.ins}", - "url": "/d/minio-overview?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "N" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#806c52", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "Mongo Instance : ${__field.labels.ins}", - "url": "/d/mongo-overview?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "O" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#b783af", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "Node VIP : ${__field.labels.vip}", - "url": "/d/node-vip?var-vip=${__field.labels.vip}&${__url_time_range}" - } - ] - } - ] - }, + "properties": [ + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#cc4637d9", + "index": 0, + "text": "Dead" + }, + "1": { + "color": "#346f36cc", + "index": 1, + "text": "Up" + } + }, + "type": "value" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Uptime" + }, + "properties": [ + { + "id": "unit", + "value": "s" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "matcher": { - "id": "byFrameRefID", - "options": "Y" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#6a8d9d", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "MySQL Instance : ${__field.labels.ins}", - "url": "/d/mysql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] + "color": "#cc4637d9", + "value": null }, { - "matcher": { - "id": "byFrameRefID", - "options": "P" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#5a8da5", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "MySQL Instance : ${__field.labels.ins}", - "url": "/d/mysql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 4, - "w": 12, - "x": 12, - "y": 14 - }, - "id": 272, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 12 - }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "pg_up{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "postgres", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "pgbouncer_up{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "pgbouncer", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "patroni_up{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "patroni", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "pg_exporter_agent_up{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "pg_exporter", - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "pgbouncer_exporter_agent_up{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "pgb_exporter", - "refId": "E" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node_up{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "node", - "refId": "F" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "haproxy_up{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "haproxy", - "refId": "G" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "docker_up{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "docker", - "refId": "H" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "promtail_up{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "promtail", - "refId": "I" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "infra_up{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "J" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "etcd_up{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "K" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "redis_up{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "L" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "minio_up{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "M" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "mongo_up{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "N" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "mysql_up{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "mysql", - "refId": "Y" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "keepalived_up{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ vip }}", - "refId": "O" + "color": "#346f36cc", + "value": 300 + } + ] + } + }, + { + "id": "decimals", + "value": 1 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Numa" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "index": 1, + "text": "Disable" + }, + "1": { + "index": 0, + "text": "Enabled" + }, + "-1": { + "color": "#808080", + "index": 2, + "text": "Unknown" + } + }, + "type": "value" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "HugePage" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#808080", + "index": 0, + "text": "Disabled" + } + }, + "type": "value" + } + ] + }, + { + "id": "unit", + "value": "bytes" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Bond" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "from": -9999999999, + "result": { + "color": "#808080", + "index": 0, + "text": "Unknown" + }, + "to": 0 + }, + "type": "range" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 3, + "x": 9, + "y": 8 + }, + "id": 270, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 12 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "min by (ip) (node_up{ip=\"$ip\"})", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Alive", + "queryType": "measurements", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(time() - node_boot_time_seconds{ip=\"$ip\"})", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Uptime", + "queryType": "measurements", + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "- absent(node_vmstat_numa_hit{ip=\"$ip\"}) OR rate(node_vmstat_numa_hit{ip=\"$ip\"}[1m]) > bool 0", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Numa", + "queryType": "measurements", + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (ins) (node_memory_Hugepagesize_bytes{ip=\"$ip\"} * node_memory_HugePages_Total{ip=\"$ip\"})", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "HugePage", + "queryType": "measurements", + "refId": "H" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "-absent(node_bonding_active{ip=\"$ip\"}) or node_bonding_active{ip=\"$ip\"}", + "instant": true, + "interval": "", + "legendFormat": "Bond", + "queryType": "measurements", + "refId": "B" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "links": [ + { + "title": "CPU Usage Detail", + "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=172&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "Ƙ", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.3 + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0.5 + }, + { + "color": "#d44a3a", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 + }, + { + "color": "rgba(0, 0, 0, 0.7)", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 12, + "y": 8 + }, + "id": 75, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "exemplar": true, + "expr": "node:ins:cpu_usage{ip=\"$ip\"}", + "instant": false, + "interval": "", + "legendFormat": "CPU", + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "links": [ + { + "title": "Node Load Detail", + "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=186&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "Ƙ", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.3 + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0.5 + }, + { + "color": "#d44a3a", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 + }, + { + "color": "rgba(0, 0, 0, 0.7)", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 14, + "y": 8 + }, + "id": 145, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "exemplar": true, + "expr": "node:ins:stdload1{ip=\"$ip\"}", + "instant": false, + "interval": "", + "legendFormat": "load1", + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "Memory Detail", + "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=33&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.3 + }, + { + "color": "#f5a673", + "value": 0.5 + }, + { + "color": "red", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 16, + "y": 8 + }, + "id": 148, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(node:ins:mem_usage{ip=\"$ip\"})", + "interval": "", + "legendFormat": "Memory", + "range": true, + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "Disk Usage Detail", + "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=199&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + }, + { + "color": "#f5a673", + "value": 0.8 + }, + { + "color": "red", + "value": 0.9 + }, + { + "color": "#b783af", + "value": 0.95 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 18, + "y": 8 + }, + "id": 147, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(node:fs:space_usage{ip=\"$ip\"})", + "interval": "", + "legendFormat": "Space", + "range": true, + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "links": [ + { + "title": "File Descriptor Usage", + "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=58&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + }, + { + "color": "#f5a673", + "value": 0.8 + }, + { + "color": "red", + "value": 0.9 + }, + { + "color": "#b783af", + "value": 0.95 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "sci" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 20, + "y": 8 + }, + "id": 150, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:fd_usage{ip=\"$ip\"}", + "interval": "", + "legendFormat": "FD", + "range": true, + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "iNode Usage Detail", + "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=174&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + }, + { + "color": "#f5a673", + "value": 0.8 + }, + { + "color": "red", + "value": 0.9 + }, + { + "color": "#b783af", + "value": 0.95 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 22, + "y": 8 + }, + "id": 149, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(node:fs:inode_usage{ip=\"$ip\"})", + "interval": "", + "legendFormat": "iNode", + "range": true, + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "IOPS Detail", + "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=46&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 10 + }, + { + "color": "#fcdb72", + "value": 50000 + }, + { + "color": "#f5a673", + "value": 100000 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 12, + "y": 11 + }, + "id": 155, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(node:dev:disk_iops_1m{ip=\"$ip\"})", + "interval": "", + "legendFormat": "IOPS", + "range": true, + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "Disk IO Bandwidth Detail", + "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=45&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 10000000 + }, + { + "color": "#fcdb72", + "value": 100000000 + }, + { + "color": "#f5a673", + "value": 500000000 + }, + { + "color": "red", + "value": 1000000000 + }, + { + "color": "#b783af", + "value": 2000000000 + }, + { + "color": "text", + "value": 4000000000 + } + ] + }, + "unit": "Bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 14, + "y": 11 + }, + "id": 156, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 14 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:disk_io_bytes_rate1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Disk IO", + "range": true, + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "Network interface bandwidth detail", + "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=178&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 10000000 + }, + { + "color": "#fcdb72", + "value": 100000000 + }, + { + "color": "#f5a673", + "value": 500000000 + }, + { + "color": "red", + "value": 1000000000 + }, + { + "color": "#b783af", + "value": 2000000000 + }, + { + "color": "text", + "value": 4000000000 + } + ] + }, + "unit": "Bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 16, + "y": 11 + }, + "id": 158, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 14 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:network_io_bytes_rate1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Net Traff", + "range": true, + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "TCP Error Detail", + "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=53&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 1 + }, + { + "color": "#f5a673", + "value": 2 + }, + { + "color": "red", + "value": 4 + }, + { + "color": "#b783af", + "value": 8 + }, + { + "color": "text", + "value": 16 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 18, + "y": 11 + }, + "id": 154, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:tcp_error_rate1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "TCP Errs", + "range": true, + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "links": [ + { + "title": "Node Load Detail", + "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=52&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "noValue": "Ƙ", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 1e-06 + }, + { + "color": "super-light-green", + "value": 1e-05 + }, + { + "color": "#EAB839", + "value": 0.0001 + }, + { + "color": "#f5a673", + "value": 0.001 + }, + { + "color": "red", + "value": 0.01 + }, + { + "color": "#b783af", + "value": 0.1 + } + ] + }, + "unit": "sci" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 20, + "y": 11 + }, + "id": 175, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "exemplar": true, + "expr": "node:ins:tcp_retrans_ratio1m{ip=\"$ip\"}", + "instant": false, + "interval": "", + "legendFormat": "Retrans", + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "Time Sync Details", + "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=83&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "0": { + "color": "#cc4637d9", + "index": 1, + "text": "Failed" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "mysql_exporter_up{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "mysql exporter", - "refId": "P" + "1": { + "color": "#346f36cc", + "index": 0, + "text": "Synced" } - ], - "title": "", - "type": "stat" + }, + "type": "value" + } + ], + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#cc4637d9", + "value": null + }, + { + "color": "#346f36cc", + "value": 1 + }, + { + "color": "#cc4637d9", + "value": 1.1 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 22, + "y": 11 + }, + "id": 160, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 14 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "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": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - } - ] - }, - "unit": "percentunit" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(node_timex_sync_status{ip=\"$ip\"})", + "interval": "", + "legendFormat": "Time Sync", + "range": true, + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "links": [ + { + "targetBlank": true, + "title": "HAProxy Admin Page : $ins", + "url": "http://h.pigsty/$ins/" + } + ], + "mappings": [ + { + "id": 0, + "op": "=", + "text": "N/A", + "type": 1, + "value": "null" + } + ], + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 0, + "y": 14 + }, + "id": 264, + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "exemplar": false, + "expr": "count(sum by (proxy) (haproxy_backend_current_sessions{ins=\"$ins\", proxy!=\"stats\"}))", + "instant": true, + "interval": "", + "intervalFactor": 2, + "legendFormat": "Service", + "refId": "A", + "step": 1800 + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "links": [ + { + "title": "Node Haproxy : $ins", + "url": "/d/node-haproxy?var-ins=$ins&${__url_time_range}" + } + ], + "mappings": [], + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 3, + "y": 14 + }, + "id": 266, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(haproxy_frontend_current_sessions{ins=\"$ins\"})", + "hide": false, + "instant": true, + "interval": "", + "intervalFactor": 1, + "legendFormat": "Session", + "metric": "", + "range": false, + "refId": "B", + "step": 30 + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "Disk Usage Detail", + "url": "/d/node-instance?var-ins=${ins}&var-id=${ins}&viewPanel=199&${__url_time_range}" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + }, + { + "color": "#f5a673", + "value": 0.8 + }, + { + "color": "red", + "value": 0.9 + }, + { + "color": "#b783af", + "value": 0.95 + }, + { + "color": "text", + "value": 0.99 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 6, + "y": 14 + }, + "id": 214, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": true, + "expr": "node:fs:space_usage{ip=\"$ip\"}", + "interval": "", + "legendFormat": "{{ device }} → {{ mountpoint }}", + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Blue = PostgreSQL\n\nGreen = Pgbouncer\n\nYellow : Agent (Patroni / PG Exporters)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [], + "mappings": [ + { + "options": { + "0": { + "color": "text", + "index": 1, + "text": "Dead" }, - "overrides": [ + "1": { + "index": 2, + "text": "Up" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "index": 0 + } + }, + "type": "special" + } + ], + "max": 1.1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#aaaaaa", + "value": 1 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "A" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "matcher": { - "id": "byName", - "options": "15m" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 20 - }, - { - "id": "custom.lineWidth", - "value": 1 - }, - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] + "color": "text", + "value": null }, { - "matcher": { - "id": "byName", - "options": "5m" - }, - "properties": [ - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "color", - "value": { - "fixedColor": "#346f36cc", - "mode": "fixed" - } - } - ] - }, + "color": "#3e668f", + "value": 1 + } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "PGSQL Instance : ${__field.labels.ins}", + "url": "/d/pgsql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "matcher": { - "id": "byName", - "options": "1m" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#fcdb72", - "mode": "fixed" - } - } - ] + "color": "text", + "value": null }, { - "matcher": { - "id": "byName", - "options": "Realtime" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 0, - "y": 18 - }, - "id": 219, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "single", - "sort": "none" + "color": "#3d668fd6", + "value": 1 + } + ] } + }, + { + "id": "links", + "value": [ + { + "title": "PGSQL Pgbouncer : ${__field.labels.ins}", + "url": "/d/pgsql-pgbouncer?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "C" }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": true, - "expr": "node:ins:cpu_usage{ip=\"$ip\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Realtime", - "refId": "A" - }, - { - "exemplar": true, - "expr": "node:ins:cpu_usage_1m{ip=\"$ip\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "1m", - "refId": "B" - }, - { - "exemplar": true, - "expr": "node:ins:cpu_usage_5m{ip=\"$ip\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "5m", - "refId": "C" - }, - { - "exemplar": true, - "expr": "node:ins:cpu_usage_15m{ip=\"$ip\"}", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "15m", - "refId": "D" + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null + }, + { + "color": "#5b9cd5", + "value": 1 + } + ] } - ], - "title": "", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + }, + { + "id": "links", + "value": [ + { + "title": "PGSQL Patroni : ${__field.labels.cls}", + "url": "/d/pgsql-patroni?var-cls=${__field.labels.cls}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "D" }, - "description": "Alerting event graph. Each stripe represent an alerting Event. Gray transparent stipe are pending alerts.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "hidden", - "axisSoftMax": 1.2, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 98, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepBefore", - "lineWidth": 0, - "pointSize": 1, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "links": [ - { - "targetBlank": true, - "title": "AlertInfo ${__field.labels.alertname} on Instance ${__field.labels.ins}", - "url": "http://a.pigsty/#/alerts?filter=%7Bins%3D%22${__field.labels.ins}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" - }, - { - "targetBlank": true, - "title": "Silence ${__field.labels.alertname} on Instance ${__field.labels.ins}", - "url": "http://a.pigsty/#/silences/new?filter=%7Bins%3D%22${__field.labels.ins}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" - }, - { - "title": "PGSQL Cluster for ${__field.labels.cls} : Alerts", - "url": "/d/pgsql-cluster?var-cls=${__field.labels.cls}&${__url_time_range}" - }, - { - "title": "PGSQL Instance for ${__field.labels.ins}", - "url": "/d/pgsql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [ + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "matcher": { - "id": "byFrameRefID", - "options": "A" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 66 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "1": { - "index": 0, - "text": "Firing\ud83d\udd25" - } - }, - "type": "value" - } - ] - } - ] + "color": "text", + "value": null }, { - "matcher": { - "id": "byFrameRefID", - "options": "B" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 25 - }, - { - "id": "color", - "value": { - "fixedColor": "rgba(128, 128, 128, 0.5)", - "mode": "fixed" - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "1": { - "color": "gray", - "index": 0, - "text": "Pend\u23f0" - } - }, - "type": "value" - } - ] - } - ] + "color": "#b783af", + "value": 1 + } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "PGSQL Exporter : ${__field.labels.ins}", + "url": "/d/pgsql-exporter?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "E" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, { - "matcher": { - "id": "byType", - "options": "time" - }, - "properties": [ - { - "id": "custom.axisPlacement", - "value": "auto" - } - ] - } - ] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 18 - }, - "id": 227, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" + "color": "#7771a4", + "value": 1 + } + ] } + }, + { + "id": "links", + "value": [ + { + "title": "PGSQL Exporter : ${__field.labels.ins}", + "url": "/d/pgsql-exporter?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "F" }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": true, - "expr": "ALERTS{ip=\"$ip\", alertstate=\"firing\"}", - "interval": "", - "legendFormat": "[{{ severity }}\ud83d\udd25] {{alertname}}", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": true, - "expr": "ALERTS{ip=\"$ip\", alertstate=\"pending\"} ", - "hide": false, - "interval": "", - "legendFormat": "[{{ severity }}\u23f0] {{alertname}}", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "properties": [ + { + "id": "links", + "value": [] + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "exemplar": true, - "expr": "0", - "hide": true, - "interval": "", - "legendFormat": "Alert", - "refId": "C" + { + "color": "#e6b03ee6", + "value": 1 + } + ] } - ], - "title": "", - "type": "timeseries" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 23 + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "G" }, - "id": 163, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node HAProxy : ${__field.labels.ins}", + "url": "/d/node-haproxy?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "percentunit" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "15m" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 20 - }, - { - "id": "custom.lineWidth", - "value": 1 - }, - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "5m" - }, - "properties": [ - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "color", - "value": { - "fixedColor": "#346f36cc", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "1m" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#fcdb72", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Realtime" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - } - ] - } - ] + { + "color": "#f5a673", + "value": 1 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "H" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 296 + { + "color": "#1b6eb6d1", + "value": 1 + } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "Node Instance : ${__field.labels.ins}", + "url": "/d/node-instance?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "I" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Logs Instance : ${__field.labels.ins}", + "url": "/d/logs-instance?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "id": 172, - "options": { - "legend": { - "calcs": [ - "mean", - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "exemplar": true, - "expr": "node:ins:cpu_usage{ip=\"$ip\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Realtime", - "refId": "A" - }, - { - "exemplar": true, - "expr": "node:ins:cpu_usage_1m{ip=\"$ip\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "1m", - "refId": "B" - }, - { - "exemplar": true, - "expr": "node:ins:cpu_usage_5m{ip=\"$ip\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "5m", - "refId": "C" - }, - { - "exemplar": true, - "expr": "node:ins:cpu_usage_15m{ip=\"$ip\"}", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "15m", - "refId": "D" - } - ], - "title": "Node CPU Usage", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Sum of all state will approximately to the number of cpu core", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "hidden", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 40, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 0, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "s" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "idle" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "rgba(128, 128, 128, 0.5)", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "iowait" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#b783af", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "irq" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "nice" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "super-light-yellow", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "softirq" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "super-light-red", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "steal" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "semi-dark-yellow", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "system" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "user" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "light-green", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "CPU Count" - }, - "properties": [ - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" - } - }, - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "custom.lineWidth", - "value": 1 - }, - { - "id": "unit", - "value": "none" - }, - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - }, - { - "id": "decimals", - "value": 0 - }, - { - "id": "custom.axisPlacement", - "value": "hidden" - } - ] - }, - { - "matcher": { - "id": "byType", - "options": "time" - }, - "properties": [ - { - "id": "custom.axisPlacement", - "value": "auto" - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 296 - }, - "id": 36, - "options": { - "legend": { - "calcs": [], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "exemplar": true, - "expr": "sum by (mode) (rate(node_cpu_seconds_total{ip=\"$ip\"}[1m]))", - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{ mode }}", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum(node:ins:cpu_count{ip=\"$ip\"})", - "hide": false, - "interval": "", - "legendFormat": "CPU Count", - "refId": "B" - } - ], - "title": "CPU Time by State (per Second)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#cc4637d9", + "value": 1 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "J" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] + { + "color": "#346f36cc", + "value": 1 + } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "Infra Overview", + "url": "/d/infra-overview?${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "K" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "gridPos": { - "h": 9, - "w": 16, - "x": 0, - "y": 331 + { + "color": "#5b9cd5", + "value": 1 + } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "ETCD Overview", + "url": "/d/etcd-overview?${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "L" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "id": 35, - "options": { - "legend": { - "calcs": [ - "mean", - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } + { + "color": "#cc4637d9", + "value": 1 + } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "Redis Instance ${__field.labels.ins} @ ${__field.labels.instance}", + "url": "/d/redis-instance?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "M" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": true, - "expr": "avg_over_time(node:cpu:usage{ip=\"$ip\"}[1m])", - "interval": "", - "intervalFactor": 2, - "legendFormat": "CPU {{ cpu }}", - "range": true, - "refId": "A" - } - ], - "title": "Core Usage Realtime", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + { + "color": "#d0475799", + "value": 1 + } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "Minio Instance: ${__field.labels.ins}", + "url": "/d/minio-overview?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "N" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "links": [], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "\u00d8", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.5 - }, - { - "color": "#d44a3a", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "rgba(0, 0, 0, 0.7)", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] + { + "color": "#806c52", + "value": 1 + } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "Mongo Instance : ${__field.labels.ins}", + "url": "/d/mongo-overview?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "O" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "gridPos": { - "h": 9, - "w": 8, - "x": 16, - "y": 331 + { + "color": "#b783af", + "value": 1 + } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "Node VIP : ${__field.labels.vip}", + "url": "/d/node-vip?var-vip=${__field.labels.vip}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "Y" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "id": 180, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "value_and_name", - "wideLayout": true + { + "color": "#6a8d9d", + "value": 1 + } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "MySQL Instance : ${__field.labels.ins}", + "url": "/d/mysql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "P" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null }, - "pluginVersion": "10.4.5", - "targets": [ - { - "exemplar": true, - "expr": "node:cpu:usage_avg15m{ip=\"$ip\"}", - "instant": false, - "interval": "", - "legendFormat": "C{{ cpu }}", - "refId": "A" - } - ], - "title": "", - "type": "stat" + { + "color": "#5a8da5", + "value": 1 + } + ] } - ], - "title": "Processor", - "type": "row" + }, + { + "id": "links", + "value": [ + { + "title": "MySQL Instance : ${__field.labels.ins}", + "url": "/d/mysql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 12, + "x": 12, + "y": 14 + }, + "id": 272, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 12 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pg_up{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "postgres", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pgbouncer_up{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "pgbouncer", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "patroni_up{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "patroni", + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pg_exporter_agent_up{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "pg_exporter", + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pgbouncer_exporter_agent_up{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "pgb_exporter", + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node_up{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "node", + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "haproxy_up{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "haproxy", + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "docker_up{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "docker", + "refId": "H" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "promtail_up{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "promtail", + "refId": "I" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "infra_up{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "J" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "etcd_up{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "K" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "redis_up{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "L" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "minio_up{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "M" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "mongo_up{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "N" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "mysql_up{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "mysql", + "refId": "Y" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "keepalived_up{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ vip }}", + "refId": "O" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 24 + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "mysql_exporter_up{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "mysql exporter", + "refId": "P" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "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": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false }, - "id": 191, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 16, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "load15" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 20 - }, - { - "id": "custom.lineWidth", - "value": 1 - }, - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "load5" - }, - "properties": [ - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "color", - "value": { - "fixedColor": "#346f36cc", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "load1" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#fcdb72", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 341 - }, - "id": 173, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "15m" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 20 + }, + { + "id": "custom.lineWidth", + "value": 1 + }, + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "5m" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "color", + "value": { + "fixedColor": "#346f36cc", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "1m" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#fcdb72", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Realtime" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 0, + "y": 18 + }, + "id": 219, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "exemplar": true, + "expr": "node:ins:cpu_usage{ip=\"$ip\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "Realtime", + "refId": "A" + }, + { + "exemplar": true, + "expr": "node:ins:cpu_usage_1m{ip=\"$ip\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "1m", + "refId": "B" + }, + { + "exemplar": true, + "expr": "node:ins:cpu_usage_5m{ip=\"$ip\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "5m", + "refId": "C" + }, + { + "exemplar": true, + "expr": "node:ins:cpu_usage_15m{ip=\"$ip\"}", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "15m", + "refId": "D" + } + ], + "title": "", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Alerting event graph. Each stripe represent an alerting Event. Gray transparent stipe are pending alerts.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "hidden", + "axisSoftMax": 1.2, + "axisSoftMin": 0, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 98, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineWidth": 0, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [ + { + "targetBlank": true, + "title": "AlertInfo ${__field.labels.alertname} on Instance ${__field.labels.ins}", + "url": "http://a.pigsty/#/alerts?filter=%7Bins%3D%22${__field.labels.ins}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" + }, + { + "targetBlank": true, + "title": "Silence ${__field.labels.alertname} on Instance ${__field.labels.ins}", + "url": "http://a.pigsty/#/silences/new?filter=%7Bins%3D%22${__field.labels.ins}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" + }, + { + "title": "PGSQL Cluster for ${__field.labels.cls} : Alerts", + "url": "/d/pgsql-cluster?var-cls=${__field.labels.cls}&${__url_time_range}" + }, + { + "title": "PGSQL Instance for ${__field.labels.ins}", + "url": "/d/pgsql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "A" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 66 + }, + { + "id": "mappings", + "value": [ + { "options": { - "legend": { - "calcs": [ - "mean", - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "exemplar": true, - "expr": "node_load1{ip=\"$ip\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "load1", - "refId": "A" - }, - { - "exemplar": true, - "expr": "node_load5{ip=\"$ip\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "load5", - "refId": "B" - }, - { - "exemplar": true, - "expr": "node_load15{ip=\"$ip\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "load15", - "refId": "C" - } - ], - "title": "Load (1m, 5m, 15m)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 16, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "percentunit" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "load15" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 20 - }, - { - "id": "custom.lineWidth", - "value": 1 - }, - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "load5" - }, - "properties": [ - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "color", - "value": { - "fixedColor": "#346f36cc", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "load1" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#fcdb72", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 341 + "1": { + "index": 0, + "text": "Firing\ud83d\udd25" + } }, - "id": 186, + "type": "value" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 25 + }, + { + "id": "color", + "value": { + "fixedColor": "rgba(128, 128, 128, 0.5)", + "mode": "fixed" + } + }, + { + "id": "mappings", + "value": [ + { "options": { - "legend": { - "calcs": [ - "mean", - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "exemplar": true, - "expr": "node:ins:stdload1{ip=\"$ip\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "load1", - "refId": "A" - }, - { - "exemplar": true, - "expr": "node:ins:stdload5{ip=\"$ip\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "load5", - "refId": "B" - }, - { - "exemplar": true, - "expr": "node:ins:stdload15{ip=\"$ip\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "load15", - "refId": "C" - } - ], - "title": "Normalized Load (1m, 5m, 15m)", - "type": "timeseries" + "1": { + "color": "gray", + "index": 0, + "text": "Pendā°" + } + }, + "type": "value" + } + ] + } + ] + }, + { + "matcher": { + "id": "byType", + "options": "time" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "auto" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 12, + "y": 18 + }, + "id": 227, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": true, + "expr": "ALERTS{ip=\"$ip\", alertstate=\"firing\"}", + "interval": "", + "legendFormat": "[{{ severity }}\ud83d\udd25] {{alertname}}", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": true, + "expr": "ALERTS{ip=\"$ip\", alertstate=\"pending\"} ", + "hide": false, + "interval": "", + "legendFormat": "[{{ severity }}ā°] {{alertname}}", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": true, + "expr": "0", + "hide": true, + "interval": "", + "legendFormat": "Alert", + "refId": "C" + } + ], + "title": "", + "type": "timeseries" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 23 + }, + "id": 163, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 348 - }, - "id": 80, - "options": { - "legend": { - "calcs": [ - "mean", - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "exemplar": true, - "expr": "node:cpu:sched_timeslices_rate1m{ip=\"$ip\"}", - "interval": "", - "intervalFactor": 2, - "legendFormat": "CPU {{ cpu }}", - "refId": "A" - } - ], - "title": "Scheduled Timeslices", - "type": "timeseries" + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "How long processes had to be wait to be scheduled on that CPU.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#b783af", - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 348 - }, - "id": 203, - "options": { - "legend": { - "calcs": [ - "mean", - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "exemplar": true, - "expr": "rate(node_schedstat_waiting_seconds_total{ip=\"$ip\"}[1m])", - "interval": "", - "legendFormat": "CPU {{ cpu }}", - "refId": "A" - } - ], - "title": "Schedule Waiting Time", - "type": "timeseries" + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "bars", - "fillOpacity": 100, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Blocked" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Thread" - }, - "properties": [ - { - "id": "custom.drawStyle", - "value": "line" - }, - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "unit", - "value": "none" - }, - { - "id": "color", - "value": { - "mode": "fixed" - } - }, - { - "id": "custom.axisSoftMin", - "value": 0 - }, - { - "id": "max", - "value": 10000 - }, - { - "id": "custom.drawStyle", - "value": "line" - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 355 - }, - "id": 30, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "expr": "node_procs_running{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Running", - "refId": "A" - }, - { - "expr": "node_procs_blocked{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Blocked", - "refId": "B" - } - ], - "title": "Process State", - "type": "timeseries" + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "15m" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "bars", - "fillOpacity": 100, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Blocked" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "D" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "R" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#346f36cc", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "S" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "light-blue", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Thread" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "rgb(180, 180, 180)", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Thread" - }, - "properties": [ - { - "id": "custom.drawStyle", - "value": "line" - }, - { - "id": "custom.lineWidth", - "value": 0 - }, - { - "id": "unit", - "value": "none" - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 355 - }, - "id": 119, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ + "properties": [ + { + "id": "custom.fillOpacity", + "value": 20 + }, + { + "id": "custom.lineWidth", + "value": 1 + }, + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "5m" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "color", + "value": { + "fixedColor": "#346f36cc", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "1m" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#fcdb72", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Realtime" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 296 + }, + "id": 172, + "options": { + "legend": { + "calcs": [ + "mean", + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "exemplar": true, + "expr": "node:ins:cpu_usage{ip=\"$ip\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "Realtime", + "refId": "A" + }, + { + "exemplar": true, + "expr": "node:ins:cpu_usage_1m{ip=\"$ip\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "1m", + "refId": "B" + }, + { + "exemplar": true, + "expr": "node:ins:cpu_usage_5m{ip=\"$ip\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "5m", + "refId": "C" + }, + { + "exemplar": true, + "expr": "node:ins:cpu_usage_15m{ip=\"$ip\"}", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "15m", + "refId": "D" + } + ], + "title": "Node CPU Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Sum of all state will approximately to the number of cpu core", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "hidden", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 0, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "idle" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "rgba(128, 128, 128, 0.5)", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "iowait" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#b783af", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "irq" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "nice" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "super-light-yellow", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "softirq" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "super-light-red", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "steal" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "semi-dark-yellow", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "system" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "user" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "light-green", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "CPU Count" + }, + "properties": [ + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.lineWidth", + "value": 1 + }, + { + "id": "unit", + "value": "none" + }, + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "custom.axisPlacement", + "value": "hidden" + } + ] + }, + { + "matcher": { + "id": "byType", + "options": "time" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "auto" + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 296 + }, + "id": 36, + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "exemplar": true, + "expr": "sum by (mode) (rate(node_cpu_seconds_total{ip=\"$ip\"}[1m]))", + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{ mode }}", + "refId": "A" + }, + { + "exemplar": true, + "expr": "sum(node:ins:cpu_count{ip=\"$ip\"})", + "hide": false, + "interval": "", + "legendFormat": "CPU Count", + "refId": "B" + } + ], + "title": "CPU Time by State (per Second)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 16, + "x": 0, + "y": 331 + }, + "id": 35, + "options": { + "legend": { + "calcs": [ + "mean", + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": true, + "expr": "avg_over_time(node:cpu:usage{ip=\"$ip\"}[1m])", + "interval": "", + "intervalFactor": 2, + "legendFormat": "CPU {{ cpu }}", + "range": true, + "refId": "A" + } + ], + "title": "Core Usage Realtime", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "links": [], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "Ƙ", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.3 + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0.5 + }, + { + "color": "#d44a3a", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 + }, + { + "color": "rgba(0, 0, 0, 0.7)", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 16, + "y": 331 + }, + "id": 180, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "10.4.5", + "targets": [ + { + "exemplar": true, + "expr": "node:cpu:usage_avg15m{ip=\"$ip\"}", + "instant": false, + "interval": "", + "legendFormat": "C{{ cpu }}", + "refId": "A" + } + ], + "title": "", + "type": "stat" + } + ], + "title": "Processor", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 24 + }, + "id": 191, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 16, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "load15" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 20 + }, + { + "id": "custom.lineWidth", + "value": 1 + }, + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "load5" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "color", + "value": { + "fixedColor": "#346f36cc", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "load1" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#fcdb72", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 341 + }, + "id": 173, + "options": { + "legend": { + "calcs": [ + "mean", + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "exemplar": true, + "expr": "node_load1{ip=\"$ip\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "load1", + "refId": "A" + }, + { + "exemplar": true, + "expr": "node_load5{ip=\"$ip\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "load5", + "refId": "B" + }, + { + "exemplar": true, + "expr": "node_load15{ip=\"$ip\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "load15", + "refId": "C" + } + ], + "title": "Load (1m, 5m, 15m)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 16, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "load15" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 20 + }, + { + "id": "custom.lineWidth", + "value": 1 + }, + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "load5" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "color", + "value": { + "fixedColor": "#346f36cc", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "load1" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#fcdb72", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 341 + }, + "id": 186, + "options": { + "legend": { + "calcs": [ + "mean", + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "exemplar": true, + "expr": "node:ins:stdload1{ip=\"$ip\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "load1", + "refId": "A" + }, + { + "exemplar": true, + "expr": "node:ins:stdload5{ip=\"$ip\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "load5", + "refId": "B" + }, + { + "exemplar": true, + "expr": "node:ins:stdload15{ip=\"$ip\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "load15", + "refId": "C" + } + ], + "title": "Normalized Load (1m, 5m, 15m)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 348 + }, + "id": 80, + "options": { + "legend": { + "calcs": [ + "mean", + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "exemplar": true, + "expr": "node:cpu:sched_timeslices_rate1m{ip=\"$ip\"}", + "interval": "", + "intervalFactor": 2, + "legendFormat": "CPU {{ cpu }}", + "refId": "A" + } + ], + "title": "Scheduled Timeslices", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "How long processes had to be wait to be scheduled on that CPU.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#b783af", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 348 + }, + "id": 203, + "options": { + "legend": { + "calcs": [ + "mean", + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "exemplar": true, + "expr": "rate(node_schedstat_waiting_seconds_total{ip=\"$ip\"}[1m])", + "interval": "", + "legendFormat": "CPU {{ cpu }}", + "refId": "A" + } + ], + "title": "Schedule Waiting Time", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Blocked" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Thread" + }, + "properties": [ + { + "id": "custom.drawStyle", + "value": "line" + }, + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "unit", + "value": "none" + }, + { + "id": "color", + "value": { + "mode": "fixed" + } + }, + { + "id": "custom.axisSoftMin", + "value": 0 + }, + { + "id": "max", + "value": 10000 + }, + { + "id": "custom.drawStyle", + "value": "line" + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 355 + }, + "id": 30, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "expr": "node_procs_running{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Running", + "refId": "A" + }, + { + "expr": "node_procs_blocked{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Blocked", + "refId": "B" + } + ], + "title": "Process State", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Blocked" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "D" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "R" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#346f36cc", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "S" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "light-blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Thread" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "rgb(180, 180, 180)", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Thread" + }, + "properties": [ + { + "id": "custom.drawStyle", + "value": "line" + }, + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "unit", + "value": "none" + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 355 + }, + "id": 119, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "expr": "node_processes_state{ip=\"$ip\", state!=\"S\"}", + "interval": "", + "legendFormat": "{{ state }}", + "refId": "A" + } + ], + "title": "Non-Sleep Process State", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 46, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Thread" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "rgba(128, 128, 128, 1)", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 0, + "y": 361 + }, + "id": 187, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "exemplar": true, + "expr": "node_processes_threads{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Thread", + "refId": "A" + } + ], + "title": "Thread", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Context switch rate 1m", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#3e668f", + "mode": "fixed" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 75, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 12, + "y": 361 + }, + "id": 32, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "exemplar": true, + "expr": "node:ins:ctx_switch_rate1m{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Ctx Switch", + "refId": "A" + } + ], + "title": "Context Switch", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 4, + "x": 0, + "y": 366 + }, + "id": 208, + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 16, + "valueSize": 24 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.5", + "targets": [ + { + "exemplar": true, + "expr": "node_processes_max_processes{ip=\"$ip\"}", + "instant": true, + "interval": "", + "legendFormat": "Max Process", + "refId": "A" + }, + { + "exemplar": true, + "expr": "node_processes_max_threads{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Max Thread", + "refId": "B" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#fcdb72", + "mode": "fixed" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 75, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 8, + "x": 4, + "y": 366 + }, + "id": 79, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "exemplar": true, + "expr": "node:ins:forks_rate1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Fork", + "refId": "A" + } + ], + "title": "Fork", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Interrupt Rate 1m", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 75, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 12, + "y": 366 + }, + "id": 204, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "exemplar": true, + "expr": "node:ins:interrupt_rate1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Interrupt", + "refId": "A" + } + ], + "title": "Interrupt", + "type": "timeseries" + } + ], + "title": "Schedule", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 25 + }, + "id": 165, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Memory Usage : 1 - mem_avail / mem_total", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1.2, + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 84, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "mappings": [], + "max": 1.2, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "orange", + "value": 0.5 + }, + { + "color": "red", + "value": 0.7 + }, + { + "color": "purple", + "value": 0.9 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Memory" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "dark-blue", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 26 + }, + "id": 33, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "expr": "node:ins:mem_usage{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Memory", + "refId": "A" + }, + { + "expr": "node:ins:swap_usage{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Swap", + "refId": "B" + } + ], + "title": "Memory & Swap Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Commit Ratio = CommittedAS / CommitLimit", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1.2, + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 45, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "orange", + "value": 0.5 + }, + { + "color": "red", + "value": 0.7 + }, + { + "color": "purple", + "value": 0.9 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Commit Ratio" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 26 + }, + "id": 188, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": true, + "expr": "node_memory_Committed_AS_bytes{ip=\"$ip\"} / node_memory_CommitLimit_bytes{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Commit Ratio", + "range": true, + "refId": "A" + } + ], + "title": "Committed Ratio", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineWidth": 0, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Total" + }, + "properties": [ + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "HugePage" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#b783af", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Free" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#346f36cc", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Cache" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#fcdb72", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Buffer" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Kernel" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 80 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Anon" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Application RSS" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 80 + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 48 + }, + "id": 262, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Hugepagesize_bytes{ip=\"$ip\"} \n* node_memory_HugePages_Total{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "HugePage", + "range": true, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node:ins:mem_kernel{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Kernel", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node:ins:mem_rss{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Application RSS", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Cached_bytes{ip=\"$ip\"} - node_memory_Mapped_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Cache", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Buffers_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Buffer", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_MemFree_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Free", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_MemTotal_bytes{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Total", + "range": true, + "refId": "H" + } + ], + "title": "Memory Structure: App/Kernel", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "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", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Limit" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Limit" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.lineWidth", + "value": 2 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Commit Ratio" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "unit", + "value": "percentunit" + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 48 + }, + "id": 89, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "expr": "node_memory_Committed_AS_bytes{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Committed", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_CommitLimit_bytes{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Limit", + "range": true, + "refId": "B" + } + ], + "title": "Committed", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineWidth": 0, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Total" + }, + "properties": [ + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "HugePage" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#b783af", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Free" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#346f36cc", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Cache" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#fcdb72", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Buffer" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Kernel" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Anon" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 55 + }, + "id": 257, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Hugepagesize_bytes{ip=\"$ip\"} \n* node_memory_HugePages_Total{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "HugePage", + "range": true, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_KernelStack_bytes{ip=\"$ip\"} +\nnode_memory_VmallocUsed_bytes{ip=\"$ip\"} +\nnode_memory_HardwareCorrupted_bytes{ip=\"$ip\"} +\nnode_memory_PageTables_bytes{ip=\"$ip\"} +\nnode_memory_Slab_bytes{ip=\"$ip\"} +\nnode_memory_PageTables_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Kernel", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Cached_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Cache", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Buffers_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Buffer", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_AnonPages_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Anon", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_MemFree_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Free", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_MemTotal_bytes{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Total", + "range": true, + "refId": "H" + } + ], + "title": "Memory Structure: PageCache", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineWidth": 0, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Total" + }, + "properties": [ + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "HugePage" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#b783af", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Free" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#346f36cc", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Active" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#fcdb72", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "InActive" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Kernel" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Unevictable" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#000000bf", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 55 + }, + "id": 256, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Hugepagesize_bytes{ip=\"$ip\"} \n* node_memory_HugePages_Total{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "HugePage", + "range": true, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_KernelStack_bytes{ip=\"$ip\"} +\nnode_memory_VmallocUsed_bytes{ip=\"$ip\"} +\nnode_memory_HardwareCorrupted_bytes{ip=\"$ip\"} +\nnode_memory_PageTables_bytes{ip=\"$ip\"} +\nnode_memory_Slab_bytes{ip=\"$ip\"} +\nnode_memory_PageTables_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Kernel", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Active_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Active", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Inactive_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "InActive", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Unevictable_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Unevictable", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_MemFree_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Free", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_MemTotal_bytes{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Total", + "range": true, + "refId": "H" + } + ], + "title": "Memory Structure: LRU", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineWidth": 0, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Total" + }, + "properties": [ + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Hugepage" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#b783af", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Free" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#346f36cc", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "VmallocUsed" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "light-yellow", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Buffer" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "dark-yellow", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "PageTable" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Slab" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Shmem" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 62 + }, + "id": 254, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_KernelStack_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "KernelStack", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_VmallocUsed_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "VmallocUsed", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_HardwareCorrupted_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "HardwareCorrupted", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_PageTables_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "PageTable", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Slab_bytes{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Slab", + "range": true, + "refId": "E" + } + ], + "title": "Memory Structure: Kernel", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "HugePage" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#b783af", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 40 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Total" + }, + "properties": [ + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 1 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Unevictable" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#24292ebf", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Inactive-File" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Active-File" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#fcdb72", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Inactive-Anon" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#346f36cc", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Active-Anon" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Free" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#346f36cc", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 62 + }, + "id": 90, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Inactive_file_bytes{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Inactive-File", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": true, + "expr": "node_memory_Inactive_anon_bytes{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Inactive-Anon", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "expr": "node_memory_Active_file_bytes{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Active-File", + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": true, + "expr": "node_memory_Active_anon_bytes{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Active-Anon", + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": true, + "expr": "node_memory_Unevictable_bytes{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Unevictable", + "range": true, + "refId": "G" + } + ], + "title": "Mem Struct: LRU Details", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 55, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineWidth": 0, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 1, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Total" + }, + "properties": [ + { + "id": "custom.drawStyle", + "value": "line" + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 7 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Free" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#346f36cc", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 50 + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "normal" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Reserved" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 80 + }, + { + "id": "color", + "value": { + "fixedColor": "#12001b", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 17 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Alloc" + }, + "properties": [ + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "normal" + } + }, + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 69 + }, + "id": 249, + "options": { + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Hugepagesize_bytes{ip=\"$ip\"} * node_memory_HugePages_Free{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Free", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Hugepagesize_bytes{ip=\"$ip\"} * (node_memory_HugePages_Total{ip=\"$ip\"} - node_memory_HugePages_Free{ip=\"$ip\"})", + "interval": "", + "legendFormat": "Alloc", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Hugepagesize_bytes{ip=\"$ip\"} * node_memory_HugePages_Rsvd{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Reserved", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Hugepagesize_bytes{ip=\"$ip\"} * node_memory_HugePages_Total{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Total", + "range": true, + "refId": "Z" + } + ], + "title": "HugePage Allocation", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "mappings": [], + "noValue": "Ƙ", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "light-blue" + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "PageSize" + }, + "properties": [ + { + "id": "unit", + "value": "bytes" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + }, + { + "color": "#3e668f", + "value": 2097152 + }, + { + "color": "#f5a673", + "value": 2097153 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Alloc%" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "#346f36cc", + "value": 1e-05 + }, + { + "color": "#fcdb72", + "value": 99 + }, + { + "color": "#f5a673", + "value": 100 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Total Pages" + }, + "properties": [ + { + "id": "unit", + "value": "none" + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 9, + "x": 12, + "y": 69 + }, + "id": 250, + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 16, + "valueSize": 16 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": true, + "expr": "node_memory_Hugepagesize_bytes{ip=\"$ip\"}", + "instant": true, + "interval": "", + "legendFormat": "PageSize", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": true, + "expr": "node_memory_HugePages_Total{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total Pages", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": true, + "expr": "(node_memory_HugePages_Total{ip=\"$ip\"} - node_memory_HugePages_Free{ip=\"$ip\"} + node_memory_HugePages_Rsvd{ip=\"$ip\"}) / node_memory_HugePages_Total{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Alloc%", + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": true, + "expr": "node_memory_HugePages_Free{ip=\"$ip\"} * node_memory_Hugepagesize_bytes{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Free", + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": true, + "expr": "node_memory_HugePages_Rsvd{ip=\"$ip\"} * node_memory_Hugepagesize_bytes{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Reserved", + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": true, + "expr": "(node_memory_HugePages_Total{ip=\"$ip\"} - node_memory_HugePages_Free{ip=\"$ip\"}) * node_memory_Hugepagesize_bytes{ip=\"$ip\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Alloc", + "refId": "C" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "mappings": [ + { + "options": { + "-1": { + "color": "#3e668f", + "index": 1, + "text": "N/A" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "noValue": "Ƙ", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#56A64B" + }, + { + "color": "#E02F44", + "value": 0.1 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 21, + "y": 69 + }, + "id": 71, + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 16, + "valueSize": 24 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "exemplar": true, + "expr": "-absent(node_edac_correctable_errors_total) or sum(node_edac_correctable_errors_total{ip=\"$ip\"})", + "instant": true, + "interval": "", + "legendFormat": "EDAC Errors", + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "mappings": [ + { + "options": { + "-1": { + "color": "#3e668f", + "index": 1, + "text": "N/A" + } + }, + "type": "value" + }, + { + "options": { + "match": "null", + "result": { + "color": "gray", + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "noValue": "Ƙ", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#56A64B" + }, + { + "color": "#E02F44", + "value": 0.1 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 21, + "y": 72 + }, + "id": 72, + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 16, + "valueSize": 24 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "exemplar": true, + "expr": "-absent(node_edac_uncorrectable_errors_total{ip=\"$ip\"}) or sum(node_edac_uncorrectable_errors_total{ip=\"$ip\"})", + "instant": true, + "interval": "", + "legendFormat": "Uncorrectable", + "refId": "A" + } + ], + "title": "", + "type": "stat" + } + ], + "title": "Memory", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 26 + }, + "id": 259, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Rate of pages in/out/swapin/swapout", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "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", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "ā–²PageIn" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#346f36cc", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ā–²SwapIn" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ā–¼PageOut" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ā–¼SwapOut" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 408 + }, + "id": 31, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "exemplar": true, + "expr": "node:ins:pagein_rate1m{ip=\"$ip\"}", + "instant": false, + "interval": "", + "legendFormat": "ā–²PageIn", + "refId": "A" + }, + { + "exemplar": true, + "expr": "- node:ins:pageout_rate1m{ip=\"$ip\"}", + "instant": false, + "interval": "", + "legendFormat": "ā–¼PageOut", + "refId": "B" + } + ], + "title": "Page In/Out Rate", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Rate of pages in/out/swapin/swapout", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "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", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "ā–²SwapIn" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ā–¼PageOut" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ā–¼SwapOut" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#b783af", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 408 + }, + "id": 205, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "exemplar": true, + "expr": "node:ins:swapin_rate1m{ip=\"$ip\"}", + "instant": false, + "interval": "", + "legendFormat": "ā–²SwapIn", + "refId": "A" + }, + { + "exemplar": true, + "expr": "- node:ins:swapout_rate1m{ip=\"$ip\"}", + "instant": false, + "interval": "", + "legendFormat": "ā–¼SwapOut", + "refId": "B" + } + ], + "title": "Swap In/Out Rate", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#b783af", + "mode": "fixed" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": -1, + "drawStyle": "line", + "fillOpacity": 75, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 414 + }, + "id": 206, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "exemplar": true, + "expr": "node:ins:pgmajfault_rate1m{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "PageFault", + "refId": "A" + } + ], + "title": "Major Page Fault", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": -1, + "drawStyle": "line", + "fillOpacity": 75, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 414 + }, + "id": 88, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "exemplar": true, + "expr": "node:ins:pagefault_rate1m{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "PageFault", + "refId": "A" + } + ], + "title": "Page Fault", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#f5a673", + "mode": "fixed" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#f5a673" + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 420 + }, + "id": 91, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "expr": "node_memory_Writeback_bytes{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Writeback", + "refId": "A" + } + ], + "title": "Writeback", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 420 + }, + "id": 260, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_memory_Dirty_bytes{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Writeback", + "range": true, + "refId": "A" + } + ], + "title": "Dirty Bytes", + "type": "timeseries" + } + ], + "title": "VMSTAT", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 27 + }, + "id": 167, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" + }, + "filterable": false, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "util" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.3 + }, + { + "color": "#f5a673", + "value": 0.5 + }, + { + "color": "red", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 + }, { - "expr": "node_processes_state{ip=\"$ip\", state!=\"S\"}", - "interval": "", - "legendFormat": "{{ state }}", - "refId": "A" + "color": "text", + "value": 0.99 } - ], - "title": "Non-Sleep Process State", - "type": "timeseries" + ] + } + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "custom.width", + "value": 80 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "queue" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "r/s" + }, + "properties": [ + { + "id": "custom.width", + "value": 60 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "w/s" + }, + "properties": [ + { + "id": "custom.width", + "value": 60 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "mr/s" + }, + "properties": [ + { + "id": "custom.width", + "value": 60 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "mw/s" + }, + "properties": [ + { + "id": "custom.width", + "value": 60 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "rB/s" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "unit", + "value": "Bps" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "wB/s" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "unit", + "value": "Bps" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "r_await" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "unit", + "value": "s" + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "index": 1, + "text": "-" + } + }, + "type": "special" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "w_await" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "unit", + "value": "s" + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "-" + } + }, + "type": "special" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "r_batch" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "unit", + "value": "decbytes" + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "#808080", + "index": 0, + "text": "-" + } + }, + "type": "special" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "w_batch" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "unit", + "value": "bytes" + }, + { + "id": "mappings", + "value": [] + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "#808080", + "index": 0, + "text": "-" + } + }, + "type": "special" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Disk" + }, + "properties": [ + { + "id": "custom.minWidth", + "value": 100 + }, + { + "id": "custom.align", + "value": "left" + }, + { + "id": "links", + "value": [ + { + "title": "Node Disk: $id.${__data.fields.Disk}", + "url": "/d/node-disk?var-id=$id&var-ip=$ip&var-disk=${__data.fields.Disk}&${__url_time_range}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 164 + }, + "id": 279, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (device) (irate(node_disk_io_time_seconds_total{ip=\"$ip\"}[1m]))", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "util", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (device) (irate(node_disk_io_time_weighted_seconds_total{ip=\"$ip\"}[1m]))", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "queue", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (device) (irate(node_disk_reads_completed_total{ip=\"$ip\"}[1m]))", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "r/s", + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (device) (irate(node_disk_writes_completed_total{ip=\"$ip\"}[1m]))", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "w/s", + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (device) (irate(node_disk_reads_merged_total{ip=\"$ip\"}[1m]))", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "mr/s", + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (device) (irate(node_disk_writes_merged_total{ip=\"$ip\"}[1m]))", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "mw/s", + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (device) (node:dev:disk_read_bytes_rate1m{ip=\"$ip\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "rb/s", + "refId": "H" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (device) (irate(node_disk_read_bytes_total{ip=\"$ip\"}[1m]))", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "wb/s", + "refId": "I" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (device) (node:dev:disk_read_rt_1m{ip=\"$ip\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "r_await", + "refId": "J" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "max by (device) (node:dev:disk_write_rt_1m{ip=\"$ip\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "w_await", + "refId": "K" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "max by (device) (node:dev:disk_read_batch_1m{ip=\"$ip\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "rreq-sz", + "refId": "L" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "max by (device) (node:dev:disk_write_batch_1m{ip=\"$ip\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "wreq-sz", + "refId": "M" + } + ], + "title": "Disk iostat", + "transformations": [ + { + "id": "seriesToColumns", + "options": { + "byField": "device" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Time 1": true, + "Time 10": true, + "Time 11": true, + "Time 12": true, + "Time 13": true, + "Time 2": true, + "Time 3": true, + "Time 4": true, + "Time 5": true, + "Time 6": true, + "Time 7": true, + "Time 8": true, + "Time 9": true, + "Value #A": false, + "__name__": true, + "cls": true, + "ins": true, + "instance": true, + "ip": true, + "ip 1": true, + "job": true, + "job 1": true + }, + "includeByName": {}, + "indexByName": { + "Time 1": 13, + "Time 10": 22, + "Time 11": 23, + "Time 12": 24, + "Time 2": 14, + "Time 3": 15, + "Time 4": 16, + "Time 5": 17, + "Time 6": 18, + "Time 7": 19, + "Time 8": 20, + "Time 9": 21, + "Value #A": 1, + "Value #B": 2, + "Value #C": 3, + "Value #D": 4, + "Value #E": 5, + "Value #F": 6, + "Value #H": 7, + "Value #I": 8, + "Value #J": 9, + "Value #K": 10, + "Value #L": 11, + "Value #M": 12, + "device": 0 + }, + "renameByName": { + "Time 1": "", + "Value #A": "util", + "Value #B": "queue", + "Value #C": "r/s", + "Value #D": "w/s", + "Value #E": "mr/s", + "Value #F": "mw/s", + "Value #G": "iNode Used", + "Value #H": "rB/s", + "Value #I": "wB/s", + "Value #J": "r_await", + "Value #K": "w_await", + "Value #L": "r_batch", + "Value #M": "w_batch", + "device": "Disk", + "fstype": "FS", + "mountpoint": "Path" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for read IOPS, ā–¼ for write IOPS ", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "/dfa/" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 50 + }, + { + "id": "custom.lineWidth", + "value": 2 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 194 + }, + "id": 46, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "exemplar": true, + "expr": "node:dev:disk_reads_rate1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "ā–²{{ device }}", + "refId": "A" + }, + { + "exemplar": true, + "expr": "- node:dev:disk_writes_rate1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "ā–¼{{ device }}", + "refId": "B" + } + ], + "title": "Read/Write IOPS", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for read bandwidth, ā–¼ for write bandwidth", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Bps" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "/dfa/" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 40 + }, + { + "id": "custom.fillOpacity", + "value": 10 + }, + { + "id": "custom.lineWidth", + "value": 2 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 194 + }, + "id": 45, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "exemplar": true, + "expr": "node:dev:disk_read_bytes_rate1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "ā–²{{ device }}", + "refId": "A" + }, + { + "exemplar": true, + "expr": "- node:dev:disk_write_bytes_rate1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "ā–¼{{ device }}", + "refId": "B" + } + ], + "title": "Read/Write Bandwidth", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Merged ratio of read / write requests\nā–² for read ā–¼ for write", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "max": 1, + "min": -1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "/dfa/" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 50 + }, + { + "id": "custom.lineWidth", + "value": 2 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 200 + }, + "id": 201, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "exemplar": true, + "expr": "node:dev:disk_mreads_ratio1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "ā–²{{ device }}", + "refId": "A" + }, + { + "exemplar": true, + "expr": "- node:dev:disk_mwrites_ratio1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "ā–¼{{ device }}", + "refId": "B" + } + ], + "title": "Reads/Writes Merged Ratio", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for read, ā–¼ for write, Showing I/O pattern", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 2, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "/dfa/" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.pointSize", + "value": 4 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 200 + }, + "id": 47, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "exemplar": true, + "expr": "node:dev:disk_read_batch_1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "ā–²{{ device }}", + "refId": "A" + }, + { + "exemplar": true, + "expr": "- node:dev:disk_write_batch_1m{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "ā–¼{{ device }}", + "refId": "B" + } + ], + "title": "Read/Write Request Size (areq-sz)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for read rt, ā–¼ for write rt", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "points", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 46, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - } - ] - }, - "unit": "none" + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 2, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "/dfa/" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.pointSize", + "value": 4 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 206 + }, + "id": 29, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": true, + "expr": "node:dev:disk_read_rt_1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "ā–²{{ device }}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": true, + "expr": "- node:dev:disk_write_rt_1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "ā–¼{{ device }}", + "refId": "B" + } + ], + "title": "Read/Write Await Time", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for read rt, ā–¼ for write rt", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "points", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 2, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "/dfa/" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.pointSize", + "value": 4 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 206 + }, + "id": 202, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "exemplar": true, + "expr": "node:dev:disk_io_rt_1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "{{ device }}", + "refId": "A" + } + ], + "title": "Average Service Time (svctm)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Number of items which were in the queue at the sampling time point", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 212 + }, + "id": 38, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "exemplar": true, + "expr": "node_disk_io_now{ip=\"$ip\"}", + "interval": "", + "legendFormat": "{{ device }}", + "refId": "A" + } + ], + "title": "Instant Queue Size", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "average number of operations waiting to be serviced.", + "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": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 212 + }, + "id": 84, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "exemplar": true, + "expr": "node:dev:disk_avg_queue_size{ip=\"$ip\"}", + "interval": "", + "legendFormat": "{{ device }}", + "refId": "A" + } + ], + "title": "Average Queue Size", + "type": "timeseries" + } + ], + "title": "Disk", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 28 + }, + "id": 193, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" + }, + "filterable": false, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Size" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "decimals" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Free" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Used" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Usage" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Thread" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "rgba(128, 128, 128, 1)", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 0, - "y": 361 - }, - "id": 187, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false + { + "color": "#346f36cc", + "value": 0.1 }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ { - "exemplar": true, - "expr": "node_processes_threads{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Thread", - "refId": "A" - } - ], - "title": "Thread", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Context switch rate 1m", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#3e668f", - "mode": "fixed" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 75, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" + "color": "#EAB839", + "value": 0.8 }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 361 - }, - "id": 32, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false + { + "color": "#EF843C", + "value": 0.85 + }, + { + "color": "red", + "value": 0.9 + }, + { + "color": "#b783af", + "value": 0.95 }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ { - "exemplar": true, - "expr": "node:ins:ctx_switch_rate1m{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Ctx Switch", - "refId": "A" + "color": "rgba(0, 0, 0, 0.7)", + "value": 0.99 } - ], - "title": "Context Switch", - "type": "timeseries" + ] + } + }, + { + "id": "decimals", + "value": 2 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "iNodes" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" + "properties": [ + { + "id": "custom.width", + "value": 80 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "iNode Free" + }, + "properties": [ + { + "id": "custom.width", + "value": 90 + }, + { + "id": "unit", + "value": "short" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "iNode Used" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + }, + { + "id": "unit", + "value": "short" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "iNode%" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 4, - "x": 0, - "y": 366 - }, - "id": 208, - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + { + "color": "#346f36cc", + "value": 0.1 }, - "showPercentChange": false, - "text": { - "titleSize": 16, - "valueSize": 24 + { + "color": "#fcdb72", + "value": 0.8 }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "10.4.5", - "targets": [ { - "exemplar": true, - "expr": "node_processes_max_processes{ip=\"$ip\"}", - "instant": true, - "interval": "", - "legendFormat": "Max Process", - "refId": "A" + "color": "#f5a673", + "value": 0.85 }, { - "exemplar": true, - "expr": "node_processes_max_threads{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Max Thread", - "refId": "B" - } - ], - "title": "", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#fcdb72", - "mode": "fixed" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 75, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" + "color": "red", + "value": 0.9 }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 8, - "x": 4, - "y": 366 - }, - "id": 79, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false + { + "color": "#b783af", + "value": 0.95 }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ { - "exemplar": true, - "expr": "node:ins:forks_rate1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Fork", - "refId": "A" + "color": "rgba(0, 0, 0, 0.7)", + "value": 0.99 } - ], - "title": "Fork", - "type": "timeseries" + ] + } + }, + { + "id": "decimals", + "value": 2 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "FS" + }, + "properties": [ + { + "id": "custom.width", + "value": 60 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Readonly" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#346f36cc", + "index": 1, + "text": "OK" + }, + "1": { + "color": "red", + "index": 2, + "text": "RO" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "basic", + "type": "color-background" + } + }, + { + "id": "custom.width", + "value": 80 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Disk" + }, + "properties": [ + { + "id": "custom.minWidth", + "value": 160 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Path" + }, + "properties": [ + { + "id": "custom.minWidth", + "value": 100 + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 24, + "x": 0, + "y": 165 + }, + "id": 110, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:fs:size_bytes{ip=\"$ip\"}", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Total", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "max by (device) (node:fs:avail_bytes{ip=\"$ip\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Avail", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "max by (device) (node:fs:size_bytes{ip=\"$ip\"} - node:fs:avail_bytes{ip=\"$ip\"})", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "Used", + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": true, + "expr": "max by (device) (node:fs:space_usage{ip=\"$ip\"})", + "format": "table", + "interval": "", + "legendFormat": "Usage", + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "max by (device) (node:fs:inode_total{ip=\"$ip\"})", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "iNodes", + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "max by (device) (node:fs:inode_free{ip=\"$ip\"})", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "iNode Free", + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "max by (device) (node:fs:inode_used{ip=\"$ip\"})", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "iNode Used", + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "max by (device) (node:fs:inode_usage{ip=\"$ip\"})", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "iNode Usage", + "refId": "H" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "min by (device) (node_filesystem_readonly{ip=\"$ip\", fstype!~\"(n|root|tmp)fs.*\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "iNode Usage", + "refId": "I" + } + ], + "title": "", + "transformations": [ + { + "id": "seriesToColumns", + "options": { + "byField": "device" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Time 1": true, + "Time 2": true, + "Time 3": true, + "Time 4": true, + "Time 5": true, + "Time 6": true, + "Time 7": true, + "Time 8": true, + "Time 9": true, + "Value #A": false, + "__name__": true, + "cls": true, + "ins": true, + "instance": true, + "ip": true, + "job": true }, + "indexByName": { + "Time 1": 12, + "Time 2": 13, + "Time 3": 14, + "Time 4": 15, + "Time 5": 16, + "Time 6": 17, + "Time 7": 18, + "Time 8": 19, + "Time 9": 20, + "Value #A": 6, + "Value #B": 7, + "Value #C": 8, + "Value #D": 4, + "Value #E": 9, + "Value #F": 10, + "Value #G": 11, + "Value #H": 5, + "Value #I": 3, + "__name__": 21, + "cls": 22, + "device": 1, + "fstype": 2, + "ins": 23, + "instance": 24, + "job": 25, + "mountpoint": 0 + }, + "renameByName": { + "Value #A": "Size", + "Value #B": "Free", + "Value #C": "Used", + "Value #D": "Usage", + "Value #E": "iNodes", + "Value #F": "iNode Free", + "Value #G": "iNode Used", + "Value #H": "iNode%", + "Value #I": "Readonly", + "device": "Disk", + "fstype": "FS", + "mountpoint": "Path" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.8 + }, + { + "color": "#f5a673", + "value": 0.85 + }, + { + "color": "#E24D42", + "value": 0.9 + }, + { + "color": "#b783af", + "value": 0.95 + }, + { + "color": "text", + "value": 0.99 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 6, + "x": 0, + "y": 170 + }, + "id": 189, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 14 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "exemplar": true, + "expr": "node:fs:space_usage{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ mountpoint }}", + "refId": "A" + } + ], + "title": "Space Usage", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Prediction of avail filesystem space a day later!", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Interrupt Rate 1m", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 75, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 366 - }, - "id": 204, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "exemplar": true, - "expr": "node:ins:interrupt_rate1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Interrupt", - "refId": "A" - } - ], - "title": "Interrupt", - "type": "timeseries" + "options": { + "from": -9999999999, + "result": { + "color": "#2f2f2f", + "index": 1, + "text": "FULL" + }, + "to": 0 + }, + "type": "range" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null + }, + { + "color": "#b783af", + "value": 0 + }, + { + "color": "red", + "value": 4000000000 + }, + { + "color": "#f5a673", + "value": 16000000000 + }, + { + "color": "#EAB839", + "value": 32000000000 + }, + { + "color": "#346f36cc", + "value": 64000000000 + }, + { + "color": "#3e668f", + "value": 1000000000000 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 6, + "x": 6, + "y": 170 + }, + "id": 200, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 14 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "exemplar": true, + "expr": "node:fs:space_predict_1d{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ mountpoint }}", + "refId": "A" + } + ], + "title": "Avail Space 1D Prediction", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.3 + }, + { + "color": "#f5a673", + "value": 0.5 + }, + { + "color": "#E24D42", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 6, + "x": 12, + "y": 170 + }, + "id": 174, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 14 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "exemplar": true, + "expr": "node:fs:inode_usage{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ mountpoint }}", + "refId": "A" + } + ], + "title": "iNode Usage", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 6, + "x": 18, + "y": 170 + }, + "id": 198, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 14 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "exemplar": true, + "expr": "node_filesystem_device_error{ip=\"$ip\", fstype!~\"(n|root|tmp)fs.*\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ mountpoint }}", + "refId": "A" + } + ], + "title": "Device Error", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 9, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 176 + }, + "id": 182, + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "exemplar": true, + "expr": "node:fs:space_deriv1h{ip=\"$ip\"}", + "interval": "", + "legendFormat": "{{ mountpoint }}", + "refId": "A" + } + ], + "title": "Space Derive 1h", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "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", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + }, + { + "color": "green", + "value": 0.1 + }, + { + "color": "yellow", + "value": 0.8 + }, + { + "color": "orange", + "value": 0.85 + }, + { + "color": "red", + "value": 0.9 + }, + { + "color": "purple", + "value": 0.95 + }, + { + "color": "text", + "value": 0.99 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 176 + }, + "id": 199, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "exemplar": true, + "expr": "node:fs:space_usage{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "{{ mountpoint }}", + "refId": "A" + } + ], + "title": "Space Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "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": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "decimals": 0, + "mappings": [ + { + "options": { + "-1": { + "index": 1, + "text": "+Inf" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" } - ], - "title": "Schedule", - "type": "row" + ], + "max": 3200000, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null + }, + { + "color": "purple", + "value": 3600 + }, + { + "color": "orange", + "value": 86400 + }, + { + "color": "yellow", + "value": 604800 + }, + { + "color": "green", + "value": 126230400 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 182 + }, + "id": 51, + "options": { + "legend": { + "calcs": [ + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": true, + "expr": "avg_over_time(node:fs:space_exhaust{ip=\"$ip\"}[5m])", + "interval": "", + "legendFormat": "{{ mountpoint }}", + "range": true, + "refId": "A" + } + ], + "title": "Space Exhaust Estimate", + "type": "timeseries" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 25 + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMin": 0, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "bars", + "fillOpacity": 20, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + } + ] + }, + "unit": "none" }, - "id": 165, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Memory Usage : 1 - mem_avail / mem_total", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1.2, - "axisSoftMin": 0, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 84, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineStyle": { - "fill": "solid" - }, - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "mappings": [], - "max": 1.2, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "orange", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "purple", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Memory" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "dark-blue", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 372 - }, - "id": 33, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "expr": "node:ins:mem_usage{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Memory", - "refId": "A" - }, - { - "expr": "node:ins:swap_usage{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Swap", - "refId": "B" - } - ], - "title": "Memory & Swap Usage", - "type": "timeseries" + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Usage" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Commit Ratio = CommittedAS / CommitLimit", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1.2, - "axisSoftMin": 0, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 45, - "gradientMode": "hue", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "orange", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "purple", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Commit Ratio" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 372 - }, - "id": 188, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": true, - "expr": "node_memory_Committed_AS_bytes{ip=\"$ip\"} / node_memory_CommitLimit_bytes{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Commit Ratio", - "range": true, - "refId": "A" - } - ], - "title": "Committed Ratio", - "type": "timeseries" + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "semi-dark-blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Usage" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 40, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepBefore", - "lineWidth": 0, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "decbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Total" - }, - "properties": [ - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" - } - }, - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "HugePage" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#b783af", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Free" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#346f36cc", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Cache" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#fcdb72", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Buffer" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Kernel" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 80 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Anon" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Application RSS" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 80 - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 380 - }, - "id": 262, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_Hugepagesize_bytes{ip=\"$ip\"} \n* node_memory_HugePages_Total{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "HugePage", - "range": true, - "refId": "G" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node:ins:mem_kernel{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Kernel", - "range": true, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node:ins:mem_rss{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Application RSS", - "range": true, - "refId": "E" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_Cached_bytes{ip=\"$ip\"} - node_memory_Mapped_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Cache", - "range": true, - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_Buffers_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Buffer", - "range": true, - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_MemFree_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Free", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_MemTotal_bytes{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Total", - "range": true, - "refId": "H" - } - ], - "title": "Memory Structure: App/Kernel", - "type": "timeseries" + "properties": [ + { + "id": "custom.drawStyle", + "value": "line" + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "unit", + "value": "percentunit" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Used" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "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", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Limit" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Limit" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "custom.lineWidth", - "value": 2 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Commit Ratio" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "unit", - "value": "percentunit" - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 380 - }, - "id": 89, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "expr": "node_memory_Committed_AS_bytes{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Committed", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_CommitLimit_bytes{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Limit", - "range": true, - "refId": "B" - } - ], - "title": "Committed", - "type": "timeseries" + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "rgba(150, 217, 141, 0.5)", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 182 + }, + "id": 58, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "exemplar": true, + "expr": "node_filefd_allocated{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Used", + "refId": "A" + }, + { + "exemplar": true, + "expr": "node:ins:fd_usage{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Usage", + "refId": "B" + } + ], + "title": "FD Usage", + "type": "timeseries" + } + ], + "title": "Filesystem", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 29 + }, + "id": 169, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 40, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepBefore", - "lineWidth": 0, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "decbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Total" - }, - "properties": [ - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" - } - }, - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "HugePage" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#b783af", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Free" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#346f36cc", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Cache" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#fcdb72", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Buffer" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Kernel" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Anon" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 387 - }, - "id": 257, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_Hugepagesize_bytes{ip=\"$ip\"} \n* node_memory_HugePages_Total{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "HugePage", - "range": true, - "refId": "G" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_KernelStack_bytes{ip=\"$ip\"} +\nnode_memory_VmallocUsed_bytes{ip=\"$ip\"} +\nnode_memory_HardwareCorrupted_bytes{ip=\"$ip\"} +\nnode_memory_PageTables_bytes{ip=\"$ip\"} +\nnode_memory_Slab_bytes{ip=\"$ip\"} +\nnode_memory_PageTables_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Kernel", - "range": true, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_Cached_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Cache", - "range": true, - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_Buffers_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Buffer", - "range": true, - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_AnonPages_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Anon", - "range": true, - "refId": "E" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_MemFree_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Free", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_MemTotal_bytes{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Total", - "range": true, - "refId": "H" - } - ], - "title": "Memory Structure: PageCache", - "type": "timeseries" + "filterable": false, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Interface" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 40, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepBefore", - "lineWidth": 0, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "decbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Total" - }, - "properties": [ - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" - } - }, - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "HugePage" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#b783af", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Free" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#346f36cc", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Active" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#fcdb72", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "InActive" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Kernel" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Unevictable" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#000000bf", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 387 - }, - "id": 256, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_Hugepagesize_bytes{ip=\"$ip\"} \n* node_memory_HugePages_Total{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "HugePage", - "range": true, - "refId": "G" - }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "bond0": { + "color": "#3e668f", + "index": 0 + }, + "lo": { + "color": "gray", + "index": 1 + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Duplex" + }, + "properties": [ + { + "id": "custom.width", + "value": 90 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "State" + }, + "properties": [ + { + "id": "custom.width", + "value": 90 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "down": { + "color": "red", + "index": 1, + "text": "Down" + }, + "unknown": { + "color": "gray", + "index": 2, + "text": "Unknown" + }, + "up": { + "color": "#346f36cc", + "index": 0, + "text": "UP" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/Mac|Broadcast/" + }, + "properties": [ + { + "id": "custom.width" + }, + { + "id": "unit", + "value": "string" + }, + { + "id": "custom.cellOptions", + "value": { + "type": "json-view" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Mac" + }, + "properties": [ + { + "id": "custom.width", + "value": 160 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Broadcast" + }, + "properties": [ + { + "id": "custom.width", + "value": 160 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Speed" + }, + "properties": [ + { + "id": "unit", + "value": "bps" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_KernelStack_bytes{ip=\"$ip\"} +\nnode_memory_VmallocUsed_bytes{ip=\"$ip\"} +\nnode_memory_HardwareCorrupted_bytes{ip=\"$ip\"} +\nnode_memory_PageTables_bytes{ip=\"$ip\"} +\nnode_memory_Slab_bytes{ip=\"$ip\"} +\nnode_memory_PageTables_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Kernel", - "range": true, - "refId": "B" + "color": "#346f36cc" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_Active_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Active", - "range": true, - "refId": "C" + "color": "#f5a673", + "value": 100000000 }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_Inactive_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "InActive", - "range": true, - "refId": "D" + "color": "#346f36cc", + "value": 1000000000 }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_Unevictable_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Unevictable", - "range": true, - "refId": "E" + "color": "dark-green", + "value": 10000000000 }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_MemFree_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Free", - "range": true, - "refId": "A" + "color": "dark-blue", + "value": 25000000000 }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_MemTotal_bytes{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Total", - "range": true, - "refId": "H" + "color": "dark-purple", + "value": 100000000000 } - ], - "title": "Memory Structure: LRU", - "type": "timeseries" + ] + } + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "custom.width", + "value": 86 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "MTU" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 40, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepBefore", - "lineWidth": 0, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "decbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Total" - }, - "properties": [ - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" - } - }, - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Hugepage" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#b783af", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Free" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#346f36cc", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "VmallocUsed" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "light-yellow", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Buffer" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "dark-yellow", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "PageTable" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Slab" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Shmem" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 394 - }, - "id": 254, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_KernelStack_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "KernelStack", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_VmallocUsed_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "VmallocUsed", - "range": true, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_HardwareCorrupted_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "HardwareCorrupted", - "range": true, - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_PageTables_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "PageTable", - "range": true, - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_Slab_bytes{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Slab", - "range": true, - "refId": "E" - } - ], - "title": "Memory Structure: Kernel", - "type": "timeseries" + "properties": [ + { + "id": "custom.width", + "value": 60 + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/TX|RX/" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepBefore", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "decbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "HugePage" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#b783af", - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 40 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Total" - }, - "properties": [ - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" - } - }, - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 1 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Unevictable" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#24292ebf", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Inactive-File" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Active-File" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#fcdb72", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Inactive-Anon" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#346f36cc", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Active-Anon" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Free" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#346f36cc", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 394 - }, - "id": 90, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_Inactive_file_bytes{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Inactive-File", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": true, - "expr": "node_memory_Inactive_anon_bytes{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Inactive-Anon", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "expr": "node_memory_Active_file_bytes{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Active-File", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": true, - "expr": "node_memory_Active_anon_bytes{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Active-Anon", - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": true, - "expr": "node_memory_Unevictable_bytes{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Unevictable", - "range": true, - "refId": "G" - } - ], - "title": "Mem Struct: LRU Details", - "type": "timeseries" + "properties": [ + { + "id": "unit", + "value": "Bps" + }, + { + "id": "custom.width", + "value": 90 + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/.*PPS/" + }, + "properties": [ + { + "id": "unit", + "value": "pps" + }, + { + "id": "custom.width", + "value": 90 + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 481 + }, + "id": 213, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [ + { + "desc": false, + "displayName": "Interface" + } + ] + }, + "pluginVersion": "10.4.5", + "targets": [ + { + "exemplar": true, + "expr": "node_network_info{ip=\"$ip\"}", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "INFO", + "refId": "A" + }, + { + "exemplar": true, + "expr": "max by (device) (node_network_mtu_bytes{ip=\"$ip\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "MTU", + "refId": "B" + }, + { + "exemplar": true, + "expr": "max by (device) (node_network_speed_bytes{ip=\"$ip\"}) * 8", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Link Speed", + "refId": "C" + }, + { + "exemplar": true, + "expr": "min by (device) (node:dev:network_tx_bytes_rate1m{ip=\"$ip\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Transmit", + "refId": "D" + }, + { + "exemplar": true, + "expr": "min by (device) (node:dev:network_rx_bytes_rate1m{ip=\"$ip\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Receive", + "refId": "E" + }, + { + "exemplar": true, + "expr": "min by (device) (node:dev:network_tx_pps1m{ip=\"$ip\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "TX PPS", + "refId": "F" + }, + { + "exemplar": true, + "expr": "min by (device) (node:dev:network_rx_bytes_rate1m{ip=\"$ip\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "RX PPS", + "refId": "G" + } + ], + "title": "", + "transformations": [ + { + "id": "seriesToColumns", + "options": { + "byField": "device" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Time 1": true, + "Time 2": true, + "Time 3": true, + "Time 4": true, + "Time 5": true, + "Time 6": true, + "Time 7": true, + "Value #A": true, + "__name__": true, + "broadcast": false, + "cls": true, + "duplex": false, + "ins": true, + "instance": true, + "ip": true, + "job": true, + "node": true, + "role": true, + "svc": true + }, + "indexByName": { + "Time 1": 17, + "Time 2": 18, + "Time 3": 19, + "Time 4": 20, + "Time 5": 21, + "Time 6": 22, + "Time 7": 23, + "Value #A": 4, + "Value #B": 5, + "Value #C": 7, + "Value #D": 8, + "Value #E": 9, + "Value #F": 10, + "Value #G": 11, + "__name__": 12, + "address": 1, + "broadcast": 2, + "cls": 13, + "device": 0, + "duplex": 6, + "ins": 14, + "instance": 15, + "job": 16, + "operstate": 3 + }, + "renameByName": { + "Value #A": "", + "Value #B": "MTU", + "Value #C": "Speed", + "Value #D": "TX", + "Value #E": "RX", + "Value #F": "TX PPS", + "Value #G": "RX PPS", + "address": "Mac", + "broadcast": "Broadcast", + "device": "Interface", + "duplex": "Duplex", + "operstate": "State" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for transmit (out) and ā–¼ for receive (in)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "pps" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 488 + }, + "id": 183, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "exemplar": true, + "expr": "node:ins:network_tx_pps1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "ā–²TX", + "refId": "A" + }, + { + "exemplar": true, + "expr": "- node:ins:network_rx_pps1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "ā–¼RX", + "refId": "B" + } + ], + "title": "Transmit/Receive Packets", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for transmit (out) and ā–¼ for receive (in)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "Bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 488 + }, + "id": 185, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "exemplar": true, + "expr": "node:ins:network_tx_bytes_rate1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "ā–²{{ device }}", + "refId": "A" + }, + { + "exemplar": true, + "expr": "- node:ins:network_rx_bytes_rate1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "ā–¼{{ device }}", + "refId": "B" + } + ], + "title": "Transmit/Receive Bandwidth", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for transmit (out) and ā–¼ for receive (in)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "pps" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/.*bond.*/" + }, + "properties": [ + { + "id": "custom.drawStyle", + "value": "line" + }, + { + "id": "custom.drawStyle", + "value": "line" + }, + { + "id": "custom.lineWidth", + "value": 1 + }, + { + "id": "custom.gradientMode", + "value": "hue" + }, + { + "id": "custom.lineStyle", + "value": { + "dash": [ + 0, + 10 + ], + "fill": "dot" + } + }, + { + "id": "color", + "value": { + "fixedColor": "", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 494 + }, + "id": 53, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "exemplar": true, + "expr": "node:dev:network_tx_pps1m{ip=\"$ip\", device!=\"lo\"}", + "interval": "", + "legendFormat": "ā–²{{ device }}", + "refId": "A" + }, + { + "exemplar": true, + "expr": "- node:dev:network_rx_pps1m{ip=\"$ip\", device!=\"lo\"}", + "interval": "", + "legendFormat": "ā–¼{{ device }}", + "refId": "B" + } + ], + "title": "Transmit/Receive Packets (Interface)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ā–² for transmit (out) and ā–¼ for receive (in)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 55, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepBefore", - "lineWidth": 0, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 1, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "decbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Total" - }, - "properties": [ - { - "id": "custom.drawStyle", - "value": "line" - }, - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 7 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Free" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#346f36cc", - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 50 - }, - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "normal" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Reserved" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 80 - }, - { - "id": "color", - "value": { - "fixedColor": "#12001b", - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 17 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Alloc" - }, - "properties": [ - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "normal" - } - }, - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 401 - }, - "id": 249, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_Hugepagesize_bytes{ip=\"$ip\"} * node_memory_HugePages_Free{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Free", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_Hugepagesize_bytes{ip=\"$ip\"} * (node_memory_HugePages_Total{ip=\"$ip\"} - node_memory_HugePages_Free{ip=\"$ip\"})", - "interval": "", - "legendFormat": "Alloc", - "range": true, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_Hugepagesize_bytes{ip=\"$ip\"} * node_memory_HugePages_Rsvd{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Reserved", - "range": true, - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_Hugepagesize_bytes{ip=\"$ip\"} * node_memory_HugePages_Total{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Total", - "range": true, - "refId": "Z" - } - ], - "title": "HugePage Allocation", - "type": "timeseries" + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "Bps" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/.*bond.*/" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "noValue": "\u00d8", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "light-blue" - } - ] - }, - "unit": "bytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "PageSize" - }, - "properties": [ - { - "id": "unit", - "value": "bytes" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - }, - { - "color": "#3e668f", - "value": 2097152 - }, - { - "color": "#f5a673", - "value": 2097153 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Alloc%" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 1e-05 - }, - { - "color": "#fcdb72", - "value": 99 - }, - { - "color": "#f5a673", - "value": 100 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Total Pages" - }, - "properties": [ - { - "id": "unit", - "value": "none" - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 9, - "x": 12, - "y": 401 - }, - "id": 250, - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 16, - "valueSize": 16 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "10.4.5", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": true, - "expr": "node_memory_Hugepagesize_bytes{ip=\"$ip\"}", - "instant": true, - "interval": "", - "legendFormat": "PageSize", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": true, - "expr": "node_memory_HugePages_Total{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total Pages", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": true, - "expr": "(node_memory_HugePages_Total{ip=\"$ip\"} - node_memory_HugePages_Free{ip=\"$ip\"} + node_memory_HugePages_Rsvd{ip=\"$ip\"}) / node_memory_HugePages_Total{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Alloc%", - "refId": "F" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": true, - "expr": "node_memory_HugePages_Free{ip=\"$ip\"} * node_memory_Hugepagesize_bytes{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Free", - "refId": "E" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": true, - "expr": "node_memory_HugePages_Rsvd{ip=\"$ip\"} * node_memory_Hugepagesize_bytes{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Reserved", - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": true, - "expr": "(node_memory_HugePages_Total{ip=\"$ip\"} - node_memory_HugePages_Free{ip=\"$ip\"}) * node_memory_Hugepagesize_bytes{ip=\"$ip\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Alloc", - "refId": "C" - } - ], - "title": "", - "type": "stat" + "properties": [ + { + "id": "custom.lineWidth", + "value": 1 + }, + { + "id": "custom.lineStyle", + "value": { + "dash": [ + 0, + 10 + ], + "fill": "dot" + } + }, + { + "id": "color", + "value": { + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 20 + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 494 + }, + "id": 178, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "exemplar": true, + "expr": "node:dev:network_tx_bytes_rate1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "ā–²{{ device }}", + "refId": "A" + }, + { + "exemplar": true, + "expr": "- node:dev:network_rx_bytes_rate1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "ā–¼{{ device }}", + "refId": "B" + } + ], + "title": "Transmit/Receive Bandwidth (Interface)", + "type": "timeseries" + } + ], + "title": "Network", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 30 + }, + "id": 197, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "mappings": [ - { - "options": { - "-1": { - "color": "#3e668f", - "index": 1, - "text": "N/A" - } - }, - "type": "value" - }, - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 0, - "text": "N/A" - } - }, - "type": "special" - } - ], - "noValue": "\u00d8", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#56A64B" - }, - { - "color": "#E02F44", - "value": 0.1 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 21, - "y": 401 - }, - "id": 71, - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 16, - "valueSize": 24 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "10.4.5", - "targets": [ - { - "exemplar": true, - "expr": "-absent(node_edac_correctable_errors_total) or sum(node_edac_correctable_errors_total{ip=\"$ip\"})", - "instant": true, - "interval": "", - "legendFormat": "EDAC Errors", - "refId": "A" - } - ], - "title": "", - "type": "stat" + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [ - { - "options": { - "-1": { - "color": "#3e668f", - "index": 1, - "text": "N/A" - } - }, - "type": "value" - }, - { - "options": { - "match": "null", - "result": { - "color": "gray", - "index": 0, - "text": "N/A" - } - }, - "type": "special" - } - ], - "noValue": "\u00d8", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#56A64B" - }, - { - "color": "#E02F44", - "value": 0.1 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 21, - "y": 404 - }, - "id": 72, - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 16, - "valueSize": 24 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "10.4.5", - "targets": [ - { - "exemplar": true, - "expr": "-absent(node_edac_uncorrectable_errors_total{ip=\"$ip\"}) or sum(node_edac_uncorrectable_errors_total{ip=\"$ip\"})", - "instant": true, - "interval": "", - "legendFormat": "Uncorrectable", - "refId": "A" - } - ], - "title": "", - "type": "stat" + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } - ], - "title": "Memory", - "type": "row" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "pps" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "ā–¼in" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ā–²out" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 504 + }, + "id": 49, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "exemplar": true, + "expr": "node:ins:tcp_insegs_rate1m{ip=\"$ip\"}", + "interval": "", + "intervalFactor": 2, + "legendFormat": "ā–¼in", + "refId": "A" + }, + { + "exemplar": true, + "expr": "- node:ins:tcp_outsegs_rate1m{ip=\"$ip\"}", + "interval": "", + "intervalFactor": 2, + "legendFormat": "ā–²out", + "refId": "B" + } + ], + "title": "TCP Segments", + "type": "timeseries" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 26 + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "pps" }, - "id": 259, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Rate of pages in/out/swapin/swapout", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "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", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "\u25b2PageIn" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#346f36cc", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "\u25b2SwapIn" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "\u25bcPageOut" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "\u25bcSwapOut" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 408 - }, - "id": 31, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "exemplar": true, - "expr": "node:ins:pagein_rate1m{ip=\"$ip\"}", - "instant": false, - "interval": "", - "legendFormat": "\u25b2PageIn", - "refId": "A" - }, - { - "exemplar": true, - "expr": "- node:ins:pageout_rate1m{ip=\"$ip\"}", - "instant": false, - "interval": "", - "legendFormat": "\u25bcPageOut", - "refId": "B" - } - ], - "title": "Page In/Out Rate", - "type": "timeseries" + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "ā–²in" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Rate of pages in/out/swapin/swapout", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "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", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "\u25b2SwapIn" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "\u25bcPageOut" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "\u25bcSwapOut" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#b783af", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 408 - }, - "id": 205, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "exemplar": true, - "expr": "node:ins:swapin_rate1m{ip=\"$ip\"}", - "instant": false, - "interval": "", - "legendFormat": "\u25b2SwapIn", - "refId": "A" - }, - { - "exemplar": true, - "expr": "- node:ins:swapout_rate1m{ip=\"$ip\"}", - "instant": false, - "interval": "", - "legendFormat": "\u25bcSwapOut", - "refId": "B" - } - ], - "title": "Swap In/Out Rate", - "type": "timeseries" + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ā–¼out" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#b783af", - "mode": "fixed" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": -1, - "drawStyle": "line", - "fillOpacity": 75, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 414 - }, - "id": 206, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "exemplar": true, - "expr": "node:ins:pgmajfault_rate1m{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "PageFault", - "refId": "A" - } - ], - "title": "Major Page Fault", - "type": "timeseries" + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ā–¼in" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": -1, - "drawStyle": "line", - "fillOpacity": 75, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 414 - }, - "id": 88, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "exemplar": true, - "expr": "node:ins:pagefault_rate1m{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "PageFault", - "refId": "A" - } - ], - "title": "Page Fault", - "type": "timeseries" + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ā–²out" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#f5a673", - "mode": "fixed" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#f5a673" - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 420 - }, - "id": 91, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "expr": "node_memory_Writeback_bytes{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Writeback", - "refId": "A" - } - ], - "title": "Writeback", - "type": "timeseries" + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 504 + }, + "id": 93, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "exemplar": true, + "expr": "rate(node_netstat_Udp_InDatagrams{ip=\"$ip\"}[1m])", + "interval": "", + "intervalFactor": 2, + "legendFormat": "ā–¼in", + "refId": "A" + }, + { + "exemplar": true, + "expr": "- rate(node_netstat_Udp_OutDatagrams{ip=\"$ip\"}[1m])", + "interval": "", + "intervalFactor": 2, + "legendFormat": "ā–²out", + "refId": "B" + } + ], + "title": "UDP Datagrams", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#cc4637d9", - "mode": "fixed" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 420 - }, - "id": 260, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_memory_Dirty_bytes{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Writeback", - "range": true, - "refId": "A" - } - ], - "title": "Dirty Bytes", - "type": "timeseries" + "insertNulls": false, + "lineInterpolation": "stepAfter", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } - ], - "title": "VMSTAT", - "type": "row" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 510 + }, + "id": 54, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "expr": "node_netstat_Tcp_CurrEstab{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Current", + "refId": "A" + } + ], + "title": "TCP Connections", + "type": "timeseries" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 27 - }, - "id": 167, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "custom": { - "align": "center", - "cellOptions": { - "type": "auto" - }, - "filterable": false, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "util" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "text", - "value": 0.99 - } - ] - } - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "custom.width", - "value": 80 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "queue" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "r/s" - }, - "properties": [ - { - "id": "custom.width", - "value": 60 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "w/s" - }, - "properties": [ - { - "id": "custom.width", - "value": 60 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "mr/s" - }, - "properties": [ - { - "id": "custom.width", - "value": 60 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "mw/s" - }, - "properties": [ - { - "id": "custom.width", - "value": 60 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "rB/s" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - }, - { - "id": "unit", - "value": "Bps" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "wB/s" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - }, - { - "id": "unit", - "value": "Bps" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "r_await" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - }, - { - "id": "unit", - "value": "s" - }, - { - "id": "mappings", - "value": [ - { - "options": { - "match": "null+nan", - "result": { - "index": 1, - "text": "-" - } - }, - "type": "special" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "w_await" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - }, - { - "id": "unit", - "value": "s" - }, - { - "id": "mappings", - "value": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 0, - "text": "-" - } - }, - "type": "special" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "r_batch" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - }, - { - "id": "unit", - "value": "decbytes" - }, - { - "id": "mappings", - "value": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "#808080", - "index": 0, - "text": "-" - } - }, - "type": "special" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "w_batch" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - }, - { - "id": "unit", - "value": "bytes" - }, - { - "id": "mappings", - "value": [] - }, - { - "id": "mappings", - "value": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "#808080", - "index": 0, - "text": "-" - } - }, - "type": "special" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Disk" - }, - "properties": [ - { - "id": "custom.minWidth", - "value": 100 - }, - { - "id": "custom.align", - "value": "left" - }, - { - "id": "links", - "value": [ - { - "title": "Node Disk: $id.${__data.fields.Disk}", - "url": "/d/node-disk?var-id=$id&var-ip=$ip&var-disk=${__data.fields.Disk}&${__url_time_range}" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 164 - }, - "id": 279, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (device) (irate(node_disk_io_time_seconds_total{ip=\"$ip\"}[1m]))", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "util", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (device) (irate(node_disk_io_time_weighted_seconds_total{ip=\"$ip\"}[1m]))", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "queue", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (device) (irate(node_disk_reads_completed_total{ip=\"$ip\"}[1m]))", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "r/s", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (device) (irate(node_disk_writes_completed_total{ip=\"$ip\"}[1m]))", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "w/s", - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (device) (irate(node_disk_reads_merged_total{ip=\"$ip\"}[1m]))", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "mr/s", - "refId": "E" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (device) (irate(node_disk_writes_merged_total{ip=\"$ip\"}[1m]))", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "mw/s", - "refId": "F" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (device) (node:dev:disk_read_bytes_rate1m{ip=\"$ip\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "rb/s", - "refId": "H" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (device) (irate(node_disk_read_bytes_total{ip=\"$ip\"}[1m]))", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "wb/s", - "refId": "I" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (device) (node:dev:disk_read_rt_1m{ip=\"$ip\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "r_await", - "refId": "J" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "max by (device) (node:dev:disk_write_rt_1m{ip=\"$ip\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "w_await", - "refId": "K" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "max by (device) (node:dev:disk_read_batch_1m{ip=\"$ip\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "rreq-sz", - "refId": "L" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "max by (device) (node:dev:disk_write_batch_1m{ip=\"$ip\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "wreq-sz", - "refId": "M" - } - ], - "title": "Disk iostat", - "transformations": [ - { - "id": "seriesToColumns", - "options": { - "byField": "device" - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Time 1": true, - "Time 10": true, - "Time 11": true, - "Time 12": true, - "Time 13": true, - "Time 2": true, - "Time 3": true, - "Time 4": true, - "Time 5": true, - "Time 6": true, - "Time 7": true, - "Time 8": true, - "Time 9": true, - "Value #A": false, - "__name__": true, - "cls": true, - "ins": true, - "instance": true, - "ip": true, - "ip 1": true, - "job": true, - "job 1": true - }, - "includeByName": {}, - "indexByName": { - "Time 1": 13, - "Time 10": 22, - "Time 11": 23, - "Time 12": 24, - "Time 2": 14, - "Time 3": 15, - "Time 4": 16, - "Time 5": 17, - "Time 6": 18, - "Time 7": 19, - "Time 8": 20, - "Time 9": 21, - "Value #A": 1, - "Value #B": 2, - "Value #C": 3, - "Value #D": 4, - "Value #E": 5, - "Value #F": 6, - "Value #H": 7, - "Value #I": 8, - "Value #J": 9, - "Value #K": 10, - "Value #L": 11, - "Value #M": 12, - "device": 0 - }, - "renameByName": { - "Time 1": "", - "Value #A": "util", - "Value #B": "queue", - "Value #C": "r/s", - "Value #D": "w/s", - "Value #E": "mr/s", - "Value #F": "mw/s", - "Value #G": "iNode Used", - "Value #H": "rB/s", - "Value #I": "wB/s", - "Value #J": "r_await", - "Value #K": "w_await", - "Value #L": "r_batch", - "Value #M": "w_batch", - "device": "Disk", - "fstype": "FS", - "mountpoint": "Path" - } - } - } - ], - "type": "table" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for read IOPS, \u25bc for write IOPS ", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "/dfa/" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 50 - }, - { - "id": "custom.lineWidth", - "value": 2 - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 194 - }, - "id": 46, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": true, - "expr": "node:dev:disk_reads_rate1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "\u25b2{{ device }}", - "refId": "A" - }, - { - "exemplar": true, - "expr": "- node:dev:disk_writes_rate1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "\u25bc{{ device }}", - "refId": "B" - } - ], - "title": "Read/Write IOPS", - "type": "timeseries" + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for read bandwidth, \u25bc for write bandwidth", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "Bps" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "/dfa/" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 40 - }, - { - "id": "custom.fillOpacity", - "value": 10 - }, - { - "id": "custom.lineWidth", - "value": 2 - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 194 - }, - "id": 45, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": true, - "expr": "node:dev:disk_read_bytes_rate1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "\u25b2{{ device }}", - "refId": "A" - }, - { - "exemplar": true, - "expr": "- node:dev:disk_write_bytes_rate1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "\u25bc{{ device }}", - "refId": "B" - } - ], - "title": "Read/Write Bandwidth", - "type": "timeseries" + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Time Wait" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Merged ratio of read / write requests\n\u25b2 for read \u25bc for write", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "max": 1, - "min": -1, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "/dfa/" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 50 - }, - { - "id": "custom.lineWidth", - "value": 2 - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 200 - }, - "id": 201, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": true, - "expr": "node:dev:disk_mreads_ratio1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "\u25b2{{ device }}", - "refId": "A" - }, - { - "exemplar": true, - "expr": "- node:dev:disk_mwrites_ratio1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "\u25bc{{ device }}", - "refId": "B" - } - ], - "title": "Reads/Writes Merged Ratio", - "type": "timeseries" + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Using" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for read, \u25bc for write, Showing I/O pattern", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 2, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 3, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "decbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "/dfa/" - }, - "properties": [ - { - "id": "custom.lineWidth", - "value": 0 - }, - { - "id": "custom.pointSize", - "value": 4 - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 200 - }, - "id": 47, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": true, - "expr": "node:dev:disk_read_batch_1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "\u25b2{{ device }}", - "refId": "A" - }, - { - "exemplar": true, - "expr": "- node:dev:disk_write_batch_1m{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "\u25bc{{ device }}", - "refId": "B" - } - ], - "title": "Read/Write Request Size (areq-sz)", - "type": "timeseries" + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#346f36cc", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 6, + "x": 12, + "y": 510 + }, + "id": 92, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "expr": "node_sockstat_TCP_inuse{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Using", + "refId": "B" + }, + { + "exemplar": true, + "expr": "- node_sockstat_TCP_tw{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Time Wait", + "refId": "C" + } + ], + "title": "TCP Socket Stat", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 70, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for read rt, \u25bc for write rt", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "points", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 2, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "/dfa/" - }, - "properties": [ - { - "id": "custom.lineWidth", - "value": 0 - }, - { - "id": "custom.pointSize", - "value": 4 - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 206 - }, - "id": 29, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": true, - "expr": "node:dev:disk_read_rt_1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "\u25b2{{ device }}", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": true, - "expr": "- node:dev:disk_write_rt_1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "\u25bc{{ device }}", - "refId": "B" - } - ], - "title": "Read/Write Await Time", - "type": "timeseries" + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for read rt, \u25bc for write rt", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "points", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 2, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "/dfa/" - }, - "properties": [ - { - "id": "custom.lineWidth", - "value": 0 - }, - { - "id": "custom.pointSize", - "value": 4 - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 206 - }, - "id": 202, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": true, - "expr": "node:dev:disk_io_rt_1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "{{ device }}", - "refId": "A" - } - ], - "title": "Average Service Time (svctm)", - "type": "timeseries" + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Number of items which were in the queue at the sampling time point", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "bars", - "fillOpacity": 100, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 212 - }, - "id": 38, - "options": { - "legend": { - "calcs": [ - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": true, - "expr": "node_disk_io_now{ip=\"$ip\"}", - "interval": "", - "legendFormat": "{{ device }}", - "refId": "A" - } - ], - "title": "Instant Queue Size", - "type": "timeseries" + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 6, + "x": 18, + "y": 510 + }, + "id": 56, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "exemplar": true, + "expr": "rate(node_netstat_Tcp_ActiveOpens{ip=\"$ip\"}[1m])", + "interval": "", + "legendFormat": "active", + "refId": "A" + }, + { + "exemplar": true, + "expr": "- rate(node_netstat_Tcp_PassiveOpens{ip=\"$ip\"}[1m])", + "interval": "", + "legendFormat": "passive", + "refId": "B" + } + ], + "title": "TCP Open", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "TCP retransmission segments and rate", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "opacity", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "average number of operations waiting to be serviced.", - "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": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 212 - }, - "id": 84, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": true, - "expr": "node:dev:disk_avg_queue_size{ip=\"$ip\"}", - "interval": "", - "legendFormat": "{{ device }}", - "refId": "A" - } - ], - "title": "Average Queue Size", - "type": "timeseries" + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } - ], - "title": "Disk", - "type": "row" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "pps" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Rate" + }, + "properties": [ + { + "id": "custom.drawStyle", + "value": "line" + }, + { + "id": "custom.lineWidth", + "value": 1 + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "custom.fillOpacity", + "value": 8 + }, + { + "id": "color", + "value": { + "fixedColor": "rgba(255, 120, 10, 0.5)", + "mode": "fixed" + } + }, + { + "id": "custom.lineInterpolation", + "value": "smooth" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Retrans Segs" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "rgba(150, 217, 141, 0.42)", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 517 + }, + "id": 52, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "exemplar": true, + "expr": "node:ins:tcp_retranssegs_rate1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Retrans Segs", + "refId": "A" + }, + { + "exemplar": true, + "expr": "node:ins:tcp_retrans_ratio1m{ip=\"$ip\"}", + "interval": "", + "legendFormat": "Rate", + "refId": "B" + } + ], + "title": "TCP Retransmit", + "type": "timeseries" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 28 + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" }, - "id": 193, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "custom": { - "align": "center", - "cellOptions": { - "type": "auto" - }, - "filterable": false, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - } - ] - }, - "unit": "decbytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Size" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - }, - { - "id": "decimals" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Free" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Used" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Usage" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#EAB839", - "value": 0.8 - }, - { - "color": "#EF843C", - "value": 0.85 - }, - { - "color": "red", - "value": 0.9 - }, - { - "color": "#b783af", - "value": 0.95 - }, - { - "color": "rgba(0, 0, 0, 0.7)", - "value": 0.99 - } - ] - } - }, - { - "id": "decimals", - "value": 2 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "iNodes" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "iNode Free" - }, - "properties": [ - { - "id": "custom.width", - "value": 90 - }, - { - "id": "unit", - "value": "short" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "iNode Used" - }, - "properties": [ - { - "id": "custom.width", - "value": 100 - }, - { - "id": "unit", - "value": "short" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "iNode%" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - }, - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.8 - }, - { - "color": "#f5a673", - "value": 0.85 - }, - { - "color": "red", - "value": 0.9 - }, - { - "color": "#b783af", - "value": 0.95 - }, - { - "color": "rgba(0, 0, 0, 0.7)", - "value": 0.99 - } - ] - } - }, - { - "id": "decimals", - "value": 2 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "FS" - }, - "properties": [ - { - "id": "custom.width", - "value": 60 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Readonly" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "#346f36cc", - "index": 1, - "text": "OK" - }, - "1": { - "color": "red", - "index": 2, - "text": "RO" - } - }, - "type": "value" - }, - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 0, - "text": "N/A" - } - }, - "type": "special" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "basic", - "type": "color-background" - } - }, - { - "id": "custom.width", - "value": 80 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Disk" - }, - "properties": [ - { - "id": "custom.minWidth", - "value": 160 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Path" - }, - "properties": [ - { - "id": "custom.minWidth", - "value": 100 - } - ] - } - ] - }, - "gridPos": { - "h": 5, - "w": 24, - "x": 0, - "y": 165 - }, - "id": 110, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:fs:size_bytes{ip=\"$ip\"}", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Total", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "max by (device) (node:fs:avail_bytes{ip=\"$ip\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Avail", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "max by (device) (node:fs:size_bytes{ip=\"$ip\"} - node:fs:avail_bytes{ip=\"$ip\"})", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "Used", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": true, - "expr": "max by (device) (node:fs:space_usage{ip=\"$ip\"})", - "format": "table", - "interval": "", - "legendFormat": "Usage", - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "max by (device) (node:fs:inode_total{ip=\"$ip\"})", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "iNodes", - "refId": "E" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "max by (device) (node:fs:inode_free{ip=\"$ip\"})", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "iNode Free", - "refId": "F" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "max by (device) (node:fs:inode_used{ip=\"$ip\"})", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "iNode Used", - "refId": "G" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "max by (device) (node:fs:inode_usage{ip=\"$ip\"})", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "iNode Usage", - "refId": "H" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "min by (device) (node_filesystem_readonly{ip=\"$ip\", fstype!~\"(n|root|tmp)fs.*\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "iNode Usage", - "refId": "I" - } - ], - "title": "", - "transformations": [ - { - "id": "seriesToColumns", - "options": { - "byField": "device" - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Time 1": true, - "Time 2": true, - "Time 3": true, - "Time 4": true, - "Time 5": true, - "Time 6": true, - "Time 7": true, - "Time 8": true, - "Time 9": true, - "Value #A": false, - "__name__": true, - "cls": true, - "ins": true, - "instance": true, - "ip": true, - "job": true - }, - "indexByName": { - "Time 1": 12, - "Time 2": 13, - "Time 3": 14, - "Time 4": 15, - "Time 5": 16, - "Time 6": 17, - "Time 7": 18, - "Time 8": 19, - "Time 9": 20, - "Value #A": 6, - "Value #B": 7, - "Value #C": 8, - "Value #D": 4, - "Value #E": 9, - "Value #F": 10, - "Value #G": 11, - "Value #H": 5, - "Value #I": 3, - "__name__": 21, - "cls": 22, - "device": 1, - "fstype": 2, - "ins": 23, - "instance": 24, - "job": 25, - "mountpoint": 0 - }, - "renameByName": { - "Value #A": "Size", - "Value #B": "Free", - "Value #C": "Used", - "Value #D": "Usage", - "Value #E": "iNodes", - "Value #F": "iNode Free", - "Value #G": "iNode Used", - "Value #H": "iNode%", - "Value #I": "Readonly", - "device": "Disk", - "fstype": "FS", - "mountpoint": "Path" - } - } - } - ], - "type": "table" + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 517 + }, + "id": 55, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "expr": "irate(node_netstat_TcpExt_ListenOverflows{ip=\"$ip\"}[1m])", + "hide": false, + "interval": "", + "legendFormat": "Listen Overflows", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "expr": "irate(node_netstat_TcpExt_ListenDrops{ip=\"$ip\"}[1m])", + "interval": "", + "legendFormat": "Listen Drop", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "expr": "irate(node_netstat_Tcp_RetransSegs{ip=\"$ip\"}[1m])", + "interval": "", + "legendFormat": "Retrans", + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "expr": "irate(node_netstat_Tcp_InErrs{ip=\"$ip\"}[1m])", + "interval": "", + "legendFormat": "In Error", + "refId": "D" + } + ], + "title": "TCP Errors", + "type": "timeseries" + } + ], + "title": "Protocol", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 31 + }, + "id": 280, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "- utilization: arc_c / c_max\n- usage_ratio: arc_size / arc_c\n- memory_ratio: arc_size / MemTotal_bytes\n- meta_usage: arc_meta_used / arc_meta_limit\n- presure\n - 0.8+: Immediate intervention and adjustment required \n - 0.6+: Monitor trends and prepare for scaling plans \n", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "axisSoftMin": 0, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.8 - }, - { - "color": "#f5a673", - "value": 0.85 - }, - { - "color": "#E24D42", - "value": 0.9 - }, - { - "color": "#b783af", - "value": 0.95 - }, - { - "color": "text", - "value": 0.99 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 6, - "x": 0, - "y": 170 - }, - "id": 189, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 14 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": true, - "expr": "node:fs:space_usage{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ mountpoint }}", - "refId": "A" - } - ], - "title": "Space Usage", - "type": "stat" + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Prediction of avail filesystem space a day later!", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "from": -9999999999, - "result": { - "color": "#2f2f2f", - "index": 1, - "text": "FULL" - }, - "to": 0 - }, - "type": "range" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "#b783af", - "value": 0 - }, - { - "color": "red", - "value": 4000000000 - }, - { - "color": "#f5a673", - "value": 16000000000 - }, - { - "color": "#EAB839", - "value": 32000000000 - }, - { - "color": "#346f36cc", - "value": 64000000000 - }, - { - "color": "#3e668f", - "value": 1000000000000 - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 6, - "x": 6, - "y": 170 - }, - "id": 200, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 14 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": true, - "expr": "node:fs:space_predict_1d{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ mountpoint }}", - "refId": "A" - } - ], - "title": "Avail Space 1D Prediction", - "type": "stat" + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 2, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "#E24D42", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 6, - "x": 12, - "y": 170 - }, - "id": 174, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 14 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": true, - "expr": "node:fs:inode_usage{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ mountpoint }}", - "refId": "A" - } - ], - "title": "iNode Usage", - "type": "stat" - }, + "title": "Node Instance: ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ], + "mappings": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - }, - { - "color": "red", - "value": 1 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 6, - "x": 18, - "y": 170 - }, - "id": 198, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 14 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": true, - "expr": "node_filesystem_device_error{ip=\"$ip\", fstype!~\"(n|root|tmp)fs.*\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ mountpoint }}", - "refId": "A" - } - ], - "title": "Device Error", - "type": "stat" + "options": { + "-1": { + "color": "gray", + "index": 1, + "text": "N/A" + } + }, + "type": "value" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 9, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 176 - }, - "id": 182, - "options": { - "legend": { - "calcs": [], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.3.0", - "targets": [ + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "No Data" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "pressure" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "color", + "value": { + "fixedColor": "light-red", + "mode": "continuous-GrYlRd", + "seriesBy": "last" + } + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "exemplar": true, - "expr": "node:fs:space_deriv1h{ip=\"$ip\"}", - "interval": "", - "legendFormat": "{{ mountpoint }}", - "refId": "A" + "color": "transparent", + "value": null } - ], - "title": "Space Derive 1h", - "type": "timeseries" + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 32 + }, + "id": 283, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node:ins:zfs_arc_pressure_ratio{ip=\"$ip\"}", + "hide": false, + "instant": false, + "legendFormat": "pressure", + "range": true, + "refId": "P" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:zfs_arc_utilization{ip=\"$ip\"}", + "interval": "", + "legendFormat": "utilization", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node:ins:zfs_arc_usage_ratio{ip=\"$ip\"}", + "hide": false, + "instant": false, + "legendFormat": "usage_ratio", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node:ins:zfs_arc_memory_ratio{ip=\"$ip\"}", + "hide": false, + "instant": false, + "legendFormat": "memory_ratio", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node:ins:zfs_arc_meta_usage{ip=\"$ip\"}", + "hide": false, + "instant": false, + "legendFormat": "meta_usage", + "range": true, + "refId": "D" + } + ], + "title": "ARC Memory Summary", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "- arc_c_max\n- arc_c\n- arc_size\n- arc_c_min\n\nvs memory_MemTotal ", + "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", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "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", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - }, - { - "color": "green", - "value": 0.1 - }, - { - "color": "yellow", - "value": 0.8 - }, - { - "color": "orange", - "value": 0.85 - }, - { - "color": "red", - "value": 0.9 - }, - { - "color": "purple", - "value": 0.95 - }, - { - "color": "text", - "value": 0.99 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 176 - }, - "id": 199, - "options": { - "legend": { - "calcs": [ - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": true, - "expr": "node:fs:space_usage{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "{{ mountpoint }}", - "refId": "A" - } - ], - "title": "Space Usage", - "type": "timeseries" - }, + "title": "Node Instance: ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ], + "mappings": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "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": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "decimals": 0, - "mappings": [ - { - "options": { - "-1": { - "index": 1, - "text": "+Inf" - } - }, - "type": "value" - }, - { - "options": { - "match": "null+nan", - "result": { - "index": 0, - "text": "N/A" - } - }, - "type": "special" - } - ], - "max": 3200000, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "purple", - "value": 3600 - }, - { - "color": "orange", - "value": 86400 - }, - { - "color": "yellow", - "value": 604800 - }, - { - "color": "green", - "value": 126230400 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 182 - }, - "id": 51, - "options": { - "legend": { - "calcs": [ - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": true, - "expr": "avg_over_time(node:fs:space_exhaust{ip=\"$ip\"}[5m])", - "interval": "", - "legendFormat": "{{ mountpoint }}", - "range": true, - "refId": "A" - } - ], - "title": "Space Exhaust Estimate", - "type": "timeseries" + "options": { + "-1": { + "color": "gray", + "index": 1, + "text": "N/A" + } + }, + "type": "value" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "bars", - "fillOpacity": 20, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Usage" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "semi-dark-blue", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Usage" - }, - "properties": [ - { - "id": "custom.drawStyle", - "value": "line" - }, - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "custom.lineWidth", - "value": 0 - }, - { - "id": "custom.lineWidth", - "value": 2 - }, - { - "id": "unit", - "value": "percentunit" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Used" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "rgba(150, 217, 141, 0.5)", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 182 - }, - "id": 58, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.3.0", - "targets": [ - { - "exemplar": true, - "expr": "node_filefd_allocated{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Used", - "refId": "A" - }, - { - "exemplar": true, - "expr": "node:ins:fd_usage{ip=\"$ip\"}", - "hide": false, - "interval": "", - "legendFormat": "Usage", - "refId": "B" - } - ], - "title": "FD Usage", - "type": "timeseries" + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "No Data" + } + }, + "type": "special" } - ], - "title": "Filesystem", - "type": "row" + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "orange", + "value": 0.1 + }, + { + "color": "yellow", + "value": 0.3 + }, + { + "color": "green", + "value": 0.4 + }, + { + "color": "yellow", + "value": 0.6 + }, + { + "color": "orange", + "value": 0.8 + }, + { + "color": "dark-red", + "value": 0.9 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "arc_size" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 2 + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 32 + }, + "id": 281, + "options": { + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_zfs_arc_c_max{ip=\"$ip\"} / node_memory_MemTotal_bytes{ip=\"$ip\"}", + "hide": false, + "instant": false, + "legendFormat": "arc_c_max", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:zfs_arc_memory{ip=\"$ip\"}", + "interval": "", + "legendFormat": "arc_c", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_zfs_arc_size{ip=\"$ip\"} / node_memory_MemTotal_bytes{ip=\"$ip\"}", + "hide": false, + "instant": false, + "legendFormat": "arc_size", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_zfs_arc_c_min{ip=\"$ip\"} / node_memory_MemTotal_bytes{ip=\"$ip\"}", + "hide": false, + "instant": false, + "legendFormat": "arc_c_min", + "range": true, + "refId": "D" + } + ], + "title": "ARC Memory", + "type": "timeseries" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 29 + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineWidth": 0, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc", + "value": null + } + ] + }, + "unit": "bytes" }, - "id": 169, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "custom": { - "align": "center", - "cellOptions": { - "type": "auto" - }, - "filterable": false, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Interface" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "bond0": { - "color": "#3e668f", - "index": 0 - }, - "lo": { - "color": "gray", - "index": 1 - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Duplex" - }, - "properties": [ - { - "id": "custom.width", - "value": 90 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "State" - }, - "properties": [ - { - "id": "custom.width", - "value": 90 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "down": { - "color": "red", - "index": 1, - "text": "Down" - }, - "unknown": { - "color": "gray", - "index": 2, - "text": "Unknown" - }, - "up": { - "color": "#346f36cc", - "index": 0, - "text": "UP" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - } - ] - }, - { - "matcher": { - "id": "byRegexp", - "options": "/Mac|Broadcast/" - }, - "properties": [ - { - "id": "custom.width" - }, - { - "id": "unit", - "value": "string" - }, - { - "id": "custom.cellOptions", - "value": { - "type": "json-view" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Mac" - }, - "properties": [ - { - "id": "custom.width", - "value": 160 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Broadcast" - }, - "properties": [ - { - "id": "custom.width", - "value": 160 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Speed" - }, - "properties": [ - { - "id": "unit", - "value": "bps" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - }, - { - "color": "#f5a673", - "value": 100000000 - }, - { - "color": "#346f36cc", - "value": 1000000000 - }, - { - "color": "dark-green", - "value": 10000000000 - }, - { - "color": "dark-blue", - "value": 25000000000 - }, - { - "color": "dark-purple", - "value": 100000000000 - } - ] - } - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "custom.width", - "value": 86 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "MTU" - }, - "properties": [ - { - "id": "custom.width", - "value": 60 - } - ] - }, - { - "matcher": { - "id": "byRegexp", - "options": "/TX|RX/" - }, - "properties": [ - { - "id": "unit", - "value": "Bps" - }, - { - "id": "custom.width", - "value": 90 - } - ] - }, - { - "matcher": { - "id": "byRegexp", - "options": "/.*PPS/" - }, - "properties": [ - { - "id": "unit", - "value": "pps" - }, - { - "id": "custom.width", - "value": 90 - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 481 - }, - "id": 213, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [ - { - "desc": false, - "displayName": "Interface" - } - ] - }, - "pluginVersion": "10.4.5", - "targets": [ - { - "exemplar": true, - "expr": "node_network_info{ip=\"$ip\"}", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "INFO", - "refId": "A" - }, - { - "exemplar": true, - "expr": "max by (device) (node_network_mtu_bytes{ip=\"$ip\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "MTU", - "refId": "B" - }, - { - "exemplar": true, - "expr": "max by (device) (node_network_speed_bytes{ip=\"$ip\"}) * 8", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Link Speed", - "refId": "C" - }, - { - "exemplar": true, - "expr": "min by (device) (node:dev:network_tx_bytes_rate1m{ip=\"$ip\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Transmit", - "refId": "D" - }, - { - "exemplar": true, - "expr": "min by (device) (node:dev:network_rx_bytes_rate1m{ip=\"$ip\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Receive", - "refId": "E" - }, - { - "exemplar": true, - "expr": "min by (device) (node:dev:network_tx_pps1m{ip=\"$ip\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "TX PPS", - "refId": "F" - }, - { - "exemplar": true, - "expr": "min by (device) (node:dev:network_rx_bytes_rate1m{ip=\"$ip\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "RX PPS", - "refId": "G" - } - ], - "title": "", - "transformations": [ - { - "id": "seriesToColumns", - "options": { - "byField": "device" - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Time 1": true, - "Time 2": true, - "Time 3": true, - "Time 4": true, - "Time 5": true, - "Time 6": true, - "Time 7": true, - "Value #A": true, - "__name__": true, - "broadcast": false, - "cls": true, - "duplex": false, - "ins": true, - "instance": true, - "ip": true, - "job": true, - "node": true, - "role": true, - "svc": true - }, - "indexByName": { - "Time 1": 17, - "Time 2": 18, - "Time 3": 19, - "Time 4": 20, - "Time 5": 21, - "Time 6": 22, - "Time 7": 23, - "Value #A": 4, - "Value #B": 5, - "Value #C": 7, - "Value #D": 8, - "Value #E": 9, - "Value #F": 10, - "Value #G": 11, - "__name__": 12, - "address": 1, - "broadcast": 2, - "cls": 13, - "device": 0, - "duplex": 6, - "ins": 14, - "instance": 15, - "job": 16, - "operstate": 3 - }, - "renameByName": { - "Value #A": "", - "Value #B": "MTU", - "Value #C": "Speed", - "Value #D": "TX", - "Value #E": "RX", - "Value #F": "TX PPS", - "Value #G": "RX PPS", - "address": "Mac", - "broadcast": "Broadcast", - "device": "Interface", - "duplex": "Duplex", - "operstate": "State" - } - } - } - ], - "type": "table" + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Max" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for transmit (out) and \u25bc for receive (in)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "pps" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 488 - }, - "id": 183, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "exemplar": true, - "expr": "node:ins:network_tx_pps1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "\u25b2TX", - "refId": "A" - }, - { - "exemplar": true, - "expr": "- node:ins:network_rx_pps1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "\u25bcRX", - "refId": "B" - } - ], - "title": "Transmit/Receive Packets", - "type": "timeseries" + "properties": [ + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.lineWidth", + "value": 2 + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "color", + "value": { + "fixedColor": "#cc4637d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "data" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for transmit (out) and \u25bc for receive (in)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "Bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 488 - }, - "id": 185, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "exemplar": true, - "expr": "node:ins:network_tx_bytes_rate1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "\u25b2{{ device }}", - "refId": "A" - }, - { - "exemplar": true, - "expr": "- node:ins:network_rx_bytes_rate1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "\u25bc{{ device }}", - "refId": "B" - } - ], - "title": "Transmit/Receive Bandwidth", - "type": "timeseries" + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#b783af", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "anon" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#eab308cc", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "overhead" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f97316", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "hdr" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#ef4444", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "metadata" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#10b981d9", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "dnode" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#8b5cf6", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 39 + }, + "id": 282, + "options": { + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_zfs_arc_c{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "Max", + "range": true, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_zfs_arc_data_size{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "data", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_zfs_arc_metadata_size{ip=\"$ip\"}", + "interval": "", + "legendFormat": "metadata", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_zfs_arc_dnode_size{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "dnode", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_zfs_arc_hdr_size{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "hdr", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_zfs_arc_overhead_size{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "overhead", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_zfs_arc_anon_size{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "anon", + "range": true, + "refId": "F" + } + ], + "title": "ARC Memory Structure: data/meta/dnode/misc", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "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", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for transmit (out) and \u25bc for receive (in)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "pps" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/.*bond.*/" - }, - "properties": [ - { - "id": "custom.drawStyle", - "value": "line" - }, - { - "id": "custom.drawStyle", - "value": "line" - }, - { - "id": "custom.lineWidth", - "value": 1 - }, - { - "id": "custom.gradientMode", - "value": "hue" - }, - { - "id": "custom.lineStyle", - "value": { - "dash": [ - 0, - 10 - ], - "fill": "dot" - } - }, - { - "id": "color", - "value": { - "fixedColor": "", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 494 - }, - "id": 53, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "exemplar": true, - "expr": "node:dev:network_tx_pps1m{ip=\"$ip\", device!=\"lo\"}", - "interval": "", - "legendFormat": "\u25b2{{ device }}", - "refId": "A" - }, - { - "exemplar": true, - "expr": "- node:dev:network_rx_pps1m{ip=\"$ip\", device!=\"lo\"}", - "interval": "", - "legendFormat": "\u25bc{{ device }}", - "refId": "B" - } - ], - "title": "Transmit/Receive Packets (Interface)", - "type": "timeseries" + "title": "Node Instance: ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "-1": { + "color": "gray", + "index": 1, + "text": "N/A" + } + }, + "type": "value" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "\u25b2 for transmit (out) and \u25bc for receive (in)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "Bps" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/.*bond.*/" - }, - "properties": [ - { - "id": "custom.lineWidth", - "value": 1 - }, - { - "id": "custom.lineStyle", - "value": { - "dash": [ - 0, - 10 - ], - "fill": "dot" - } - }, - { - "id": "color", - "value": { - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 20 - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 494 - }, - "id": 178, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "exemplar": true, - "expr": "node:dev:network_tx_bytes_rate1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "\u25b2{{ device }}", - "refId": "A" - }, - { - "exemplar": true, - "expr": "- node:dev:network_rx_bytes_rate1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "\u25bc{{ device }}", - "refId": "B" - } - ], - "title": "Transmit/Receive Bandwidth (Interface)", - "type": "timeseries" + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "No Data" + } + }, + "type": "special" } - ], - "title": "Network", - "type": "row" - }, + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "red", + "value": 0.2 + }, + { + "color": "super-light-red", + "value": 0.5 + }, + { + "color": "orange", + "value": 0.7 + }, + { + "color": "yellow", + "value": 0.8 + }, + { + "color": "green", + "value": 0.9 + }, + { + "color": "semi-dark-green", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 39 + }, + "id": 284, + "options": { + "legend": { + "calcs": [ + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:zfs_arc_hit_ratio{ip=\"$ip\"}", + "hide": false, + "interval": "", + "legendFormat": "hit_ratio", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node:ins:zfs_arc_hit_ratio_rate1m{ip=\"$ip\"}", + "hide": false, + "instant": false, + "legendFormat": "hit_ratio_rate1m", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node:ins:zfs_arc_hit_ratio_rate5m{ip=\"$ip\"}", + "hide": false, + "instant": false, + "legendFormat": "hit_ratio_rate5m", + "range": true, + "refId": "C" + } + ], + "title": "ARC Hit Summary", + "type": "timeseries" + } + ], + "title": "ZFS ARC", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 32 + }, + "id": 241, + "panels": [ { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 30 + "datasource": { + "type": "loki", + "uid": "ds-loki" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#346f36cc", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "none" }, - "id": 197, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 40, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "pps" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "\u25bcin" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "\u25b2out" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 504 - }, - "id": 49, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "exemplar": true, - "expr": "node:ins:tcp_insegs_rate1m{ip=\"$ip\"}", - "interval": "", - "intervalFactor": 2, - "legendFormat": "\u25bcin", - "refId": "A" - }, - { - "exemplar": true, - "expr": "- node:ins:tcp_outsegs_rate1m{ip=\"$ip\"}", - "interval": "", - "intervalFactor": 2, - "legendFormat": "\u25b2out", - "refId": "B" - } - ], - "title": "TCP Segments", - "type": "timeseries" + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "C" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 40, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "pps" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "\u25b2in" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "\u25bcout" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "\u25bcin" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "\u25b2out" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 504 - }, - "id": 93, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "exemplar": true, - "expr": "rate(node_netstat_Udp_InDatagrams{ip=\"$ip\"}[1m])", - "interval": "", - "intervalFactor": 2, - "legendFormat": "\u25bcin", - "refId": "A" - }, - { - "exemplar": true, - "expr": "- rate(node_netstat_Udp_OutDatagrams{ip=\"$ip\"}[1m])", - "interval": "", - "intervalFactor": 2, - "legendFormat": "\u25b2out", - "refId": "B" - } - ], - "title": "UDP Datagrams", - "type": "timeseries" + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 24, + "x": 0, + "y": 54 + }, + "id": 243, + "interval": "1s", + "options": { + "legend": { + "calcs": [ + "mean", + "sum" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "ds-loki" + }, + "editorMode": "code", + "expr": "sum by (src) (count_over_time(({ins=\"$ins\"})[$__interval]))", + "legendFormat": "{{ src }}", + "queryType": "range", + "refId": "A" + } + ], + "title": "Logs per $__interval", + "type": "timeseries" + }, + { + "datasource": { + "type": "loki", + "uid": "ds-loki" + }, + "description": "Recent logs for pgbouncer & patroni & postgres", + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 60 + }, + "id": 245, + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": false, + "showTime": true, + "sortOrder": "Descending", + "wrapLogMessage": false + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "ds-loki" + }, + "expr": "{ins=\"$ins\"}", + "instant": false, + "range": true, + "refId": "A" + } + ], + "title": "Recent Logs", + "type": "logs" + } + ], + "title": "Logs", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 33 + }, + "id": 171, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [], + "mappings": [], + "min": 0, + "noValue": "āˆ…", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "#346f36cc", + "value": 0.05 + }, + { + "color": "#fcdb72", + "value": 0.1 + }, + { + "color": "#f5a673", + "value": 0.5 + }, + { + "color": "#b783af", + "value": 1 + }, + { + "color": "red", + "value": 5 + }, + { + "color": "text", + "value": 10 + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Status Code" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 40, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepAfter", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 510 - }, - "id": 54, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#346f36cc", + "index": 0, + "text": "OK" + } + }, + "type": "value" + } + ] + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "expr": "node_netstat_Tcp_CurrEstab{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Current", - "refId": "A" + "color": "#cc4637d9" } - ], - "title": "TCP Connections", - "type": "timeseries" + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Synced" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 40, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time Wait" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Using" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#346f36cc", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 6, - "x": 12, - "y": 510 - }, - "id": 92, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#cc4637d9", + "index": 1, + "text": "Failed" + }, + "1": { + "color": "#346f36cc", + "index": 0, + "text": "Synced" + } + }, + "type": "value" + } + ] + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "expr": "node_sockstat_TCP_inuse{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Using", - "refId": "B" - }, - { - "exemplar": true, - "expr": "- node_sockstat_TCP_tw{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Time Wait", - "refId": "C" + "color": "#cc4637d9" } - ], - "title": "TCP Socket Stat", - "type": "timeseries" + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Drift" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 70, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 6, - "x": 18, - "y": 510 - }, - "id": 56, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "exemplar": true, - "expr": "rate(node_netstat_Tcp_ActiveOpens{ip=\"$ip\"}[1m])", - "interval": "", - "legendFormat": "active", - "refId": "A" - }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "exemplar": true, - "expr": "- rate(node_netstat_Tcp_PassiveOpens{ip=\"$ip\"}[1m])", - "interval": "", - "legendFormat": "passive", - "refId": "B" - } - ], - "title": "TCP Open", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "TCP retransmission segments and rate", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "bars", - "fillOpacity": 100, - "gradientMode": "opacity", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "pps" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Rate" - }, - "properties": [ - { - "id": "custom.drawStyle", - "value": "line" - }, - { - "id": "custom.lineWidth", - "value": 1 - }, - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "custom.fillOpacity", - "value": 8 - }, - { - "id": "color", - "value": { - "fixedColor": "rgba(255, 120, 10, 0.5)", - "mode": "fixed" - } - }, - { - "id": "custom.lineInterpolation", - "value": "smooth" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Retrans Segs" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "rgba(150, 217, 141, 0.42)", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 517 - }, - "id": 52, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "color": "#3e668f" }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ { - "exemplar": true, - "expr": "node:ins:tcp_retranssegs_rate1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Retrans Segs", - "refId": "A" + "color": "#346f36cc", + "value": -0.001 }, { - "exemplar": true, - "expr": "node:ins:tcp_retrans_ratio1m{ip=\"$ip\"}", - "interval": "", - "legendFormat": "Rate", - "refId": "B" + "color": "#f5a673", + "value": 0.001 } - ], - "title": "TCP Retransmit", - "type": "timeseries" + ] + } + }, + { + "id": "unit", + "value": "s" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Adjust%" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "bars", - "fillOpacity": 100, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 517 - }, - "id": 55, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "expr": "irate(node_netstat_TcpExt_ListenOverflows{ip=\"$ip\"}[1m])", - "hide": false, - "interval": "", - "legendFormat": "Listen Overflows", - "refId": "A" + "color": "#3e668f" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "expr": "irate(node_netstat_TcpExt_ListenDrops{ip=\"$ip\"}[1m])", - "interval": "", - "legendFormat": "Listen Drop", - "refId": "B" + "color": "#346f36cc", + "value": -1e-05 }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "expr": "irate(node_netstat_Tcp_RetransSegs{ip=\"$ip\"}[1m])", - "interval": "", - "legendFormat": "Retrans", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "expr": "irate(node_netstat_Tcp_InErrs{ip=\"$ip\"}[1m])", - "interval": "", - "legendFormat": "In Error", - "refId": "D" + "color": "#f5a673", + "value": 0.001 } - ], - "title": "TCP Errors", - "type": "timeseries" + ] + } + }, + { + "id": "unit", + "value": "percentunit" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Instance" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance : ${__data.fields.Instance}", + "url": "/d/node-instance?var-id=${__data.fields.Instance}&${__url_time_range}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 6, + "x": 0, + "y": 524 + }, + "id": 277, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 16, + "valueSize": 16 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (node_timex_sync_status{ip=\"$ip\"})", + "format": "table", + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (node_timex_status{ip=\"$ip\"})", + "format": "table", + "hide": false, + "interval": "", + "legendFormat": "__auto", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (node_timex_offset_seconds{ip=\"$ip\"})", + "format": "table", + "hide": false, + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ins) (node_timex_frequency_adjustment_ratio{ip=\"$ip\"}) - 1", + "format": "table", + "hide": false, + "interval": "", + "legendFormat": "__auto", + "range": true, + "refId": "D" + } + ], + "title": "", + "transformations": [ + { + "id": "joinByField", + "options": { + "byField": "ins", + "mode": "outer" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time 1": true, + "Time 2": true, + "Time 3": true, + "Time 4": true, + "Time 5": true + }, + "indexByName": { + "Time 1": 5, + "Time 2": 6, + "Time 3": 7, + "Time 4": 8, + "Value #A": 1, + "Value #B": 2, + "Value #C": 3, + "Value #D": 4, + "ins": 0 + }, + "renameByName": { + "Value #A": "Synced", + "Value #B": "Status Code", + "Value #C": "Drift", + "Value #D": "Adjust%", + "Value #E": "Errors", + "ins": "Instance" } - ], - "title": "Protocol", - "type": "row" + } + } + ], + "type": "stat" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 31 + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "node_timex_offset_seconds: This metric represents the current time offset in seconds between the system clock and a reference time source.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#346f36cc", + "mode": "fixed" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": true, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "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", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" }, - "id": 171, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [], - "mappings": [], - "min": 0, - "noValue": "\u2205", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 0.05 - }, - { - "color": "#fcdb72", - "value": 0.1 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "#b783af", - "value": 1 - }, - { - "color": "red", - "value": 5 - }, - { - "color": "text", - "value": 10 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Status Code" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "#346f36cc", - "index": 0, - "text": "OK" - } - }, - "type": "value" - } - ] - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#cc4637d9" - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Synced" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "#cc4637d9", - "index": 1, - "text": "Failed" - }, - "1": { - "color": "#346f36cc", - "index": 0, - "text": "Synced" - } - }, - "type": "value" - } - ] - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#cc4637d9" - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Drift" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": -0.001 - }, - { - "color": "#f5a673", - "value": 0.001 - } - ] - } - }, - { - "id": "unit", - "value": "s" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Adjust%" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": -1e-05 - }, - { - "color": "#f5a673", - "value": 0.001 - } - ] - } - }, - { - "id": "unit", - "value": "percentunit" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Instance" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Instance : ${__data.fields.Instance}", - "url": "/d/node-instance?var-id=${__data.fields.Instance}&${__url_time_range}" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 6, - "x": 0, - "y": 524 - }, - "id": 277, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 16, - "valueSize": 16 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "10.4.5", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (node_timex_sync_status{ip=\"$ip\"})", - "format": "table", - "interval": "", - "legendFormat": "{{ ins }}", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (node_timex_status{ip=\"$ip\"})", - "format": "table", - "hide": false, - "interval": "", - "legendFormat": "__auto", - "range": true, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (node_timex_offset_seconds{ip=\"$ip\"})", - "format": "table", - "hide": false, - "interval": "", - "legendFormat": "{{ ins }}", - "range": true, - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ins) (node_timex_frequency_adjustment_ratio{ip=\"$ip\"}) - 1", - "format": "table", - "hide": false, - "interval": "", - "legendFormat": "__auto", - "range": true, - "refId": "D" - } - ], - "title": "", - "transformations": [ - { - "id": "joinByField", - "options": { - "byField": "ins", - "mode": "outer" - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time 1": true, - "Time 2": true, - "Time 3": true, - "Time 4": true, - "Time 5": true - }, - "indexByName": { - "Time 1": 5, - "Time 2": 6, - "Time 3": 7, - "Time 4": 8, - "Value #A": 1, - "Value #B": 2, - "Value #C": 3, - "Value #D": 4, - "ins": 0 - }, - "renameByName": { - "Value #A": "Synced", - "Value #B": "Status Code", - "Value #C": "Drift", - "Value #D": "Adjust%", - "Value #E": "Errors", - "ins": "Instance" - } - } - } - ], - "type": "stat" + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Adjust" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "node_timex_offset_seconds: This metric represents the current time offset in seconds between the system clock and a reference time source.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#346f36cc", - "mode": "fixed" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": true, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "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", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Adjust" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "custom.axisPlacement", - "value": "auto" - }, - { - "id": "custom.axisCenteredZero", - "value": true - }, - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Synced" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 0 - }, - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 9, - "x": 6, - "y": 524 - }, - "id": 278, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_timex_offset_seconds{ip=\"$ip\"}", - "legendFormat": "Offset", - "range": true, - "refId": "A" - } - ], - "title": "Time Offset (s)", - "type": "timeseries" + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "custom.axisPlacement", + "value": "auto" + }, + { + "id": "custom.axisCenteredZero", + "value": true + }, + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Synced" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "node_timex_sync_status: This metric indicates the synchronization status of the timekeeping system. if != 1 then time out of sync.\n\nnode_timex_frequency_adjustment_ratio: It indicates the ratio of the current frequency adjustment to the nominal frequency, used to keep the system clock synchronized.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "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", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Adjust" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "custom.axisPlacement", - "value": "auto" - }, - { - "id": "custom.axisCenteredZero", - "value": true - }, - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Synced" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 0 - }, - { - "id": "color", - "value": { - "fixedColor": "#3e668f", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 9, - "x": 15, - "y": 524 - }, - "id": 83, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "expr": "node_timex_sync_status{ip=\"$ip\"}", - "legendFormat": "Synced", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "node_timex_frequency_adjustment_ratio{ip=\"$ip\"} - 1", - "legendFormat": "Adjust", - "range": true, - "refId": "B" - } - ], - "title": "Time Sync Status & Clock Freq Adjust%", - "type": "timeseries" + "properties": [ + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 9, + "x": 6, + "y": 524 + }, + "id": 278, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_timex_offset_seconds{ip=\"$ip\"}", + "legendFormat": "Offset", + "range": true, + "refId": "A" + } + ], + "title": "Time Offset (s)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "node_timex_sync_status: This metric indicates the synchronization status of the timekeeping system. if != 1 then time out of sync.\n\nnode_timex_frequency_adjustment_ratio: It indicates the ratio of the current frequency adjustment to the nominal frequency, used to keep the system clock synchronized.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 530 - }, - "id": 87, - "options": { - "legend": { - "calcs": [ - "mean", - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "expr": "node_scrape_collector_duration_seconds{ip=\"$ip\"}", - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{ collector }}", - "refId": "A" - } - ], - "title": "Node Exporter Duration", - "type": "timeseries" + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepBefore", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "line+area" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "transparent" - }, - { - "color": "red", - "value": 100 - } - ] - }, - "unit": "celsius" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 530 - }, - "id": 73, - "options": { - "legend": { - "calcs": [ - "mean", - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "exemplar": true, - "expr": "node_hwmon_temp_celsius{ip=\"$ip\"}", - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{ chip }}", - "refId": "A" - } - ], - "title": "Hardware Temperature", - "type": "timeseries" + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } - ], - "title": "Misc", - "type": "row" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Adjust" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "custom.axisPlacement", + "value": "auto" + }, + { + "id": "custom.axisCenteredZero", + "value": true + }, + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Synced" + }, + "properties": [ + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 9, + "x": 15, + "y": 524 + }, + "id": 83, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "expr": "node_timex_sync_status{ip=\"$ip\"}", + "legendFormat": "Synced", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "node_timex_frequency_adjustment_ratio{ip=\"$ip\"} - 1", + "legendFormat": "Adjust", + "range": true, + "refId": "B" + } + ], + "title": "Time Sync Status & Clock Freq Adjust%", + "type": "timeseries" }, { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 32 + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" }, - "id": 241, - "panels": [ - { - "datasource": { - "type": "loki", - "uid": "ds-loki" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#346f36cc", - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "bars", - "fillOpacity": 100, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byFrameRefID", - "options": "C" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#f5a673", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 5, - "w": 24, - "x": 0, - "y": 537 - }, - "id": 243, - "interval": "1s", - "options": { - "legend": { - "calcs": [ - "mean", - "sum" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0-beta2", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "ds-loki" - }, - "editorMode": "code", - "expr": "sum by (src) (count_over_time(({ins=\"$ins\"})[$__interval]))", - "legendFormat": "{{ src }}", - "queryType": "range", - "refId": "A" - } - ], - "title": "Logs per $__interval", - "type": "timeseries" + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 530 + }, + "id": 87, + "options": { + "legend": { + "calcs": [ + "mean", + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "expr": "node_scrape_collector_duration_seconds{ip=\"$ip\"}", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{ collector }}", + "refId": "A" + } + ], + "title": "Node Exporter Duration", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false }, - { - "datasource": { - "type": "loki", - "uid": "ds-loki" - }, - "description": "Recent logs for pgbouncer & patroni & postgres", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 542 - }, - "id": 245, - "options": { - "dedupStrategy": "none", - "enableLogDetails": true, - "prettifyLogMessage": false, - "showCommonLabels": false, - "showLabels": false, - "showTime": true, - "sortOrder": "Descending", - "wrapLogMessage": false - }, - "pluginVersion": "7.5.4", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "ds-loki" - }, - "expr": "{ins=\"$ins\"}", - "instant": false, - "range": true, - "refId": "A" - } - ], - "title": "Recent Logs", - "type": "logs" + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "line+area" } - ], - "title": "Logs", - "type": "row" - } - ], - "preload": false, - "refresh": "", - "schemaVersion": 40, - "tags": [ - "Pigsty", - "NODE", - "Instance" - ], - "templating": { - "list": [ - { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "definition": "label_values(node:ins, id)", - "description": "IP Address or Hostname", - "includeAll": false, - "label": "Node ID", - "name": "id", - "options": [], - "query": { - "query": "label_values(node:ins, id)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "definition": "label_values(node:ins{id=\"$id\"}, ip)", - "description": "Node IP address", - "hide": 2, - "includeAll": false, - "label": "IP Address", - "name": "ip", - "options": [], - "query": { - "query": "label_values(node:ins{id=\"$id\"}, ip)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "definition": "label_values(node:ins{id=\"$id\"}, nodename)", - "description": "NodeName or hostname", - "hide": 2, - "includeAll": false, - "label": "Hostname", - "name": "node", - "options": [], - "query": { - "query": "label_values(node:ins{id=\"$id\"}, nodename)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "definition": "label_values(node:ins{id=\"$id\"}, ins)", - "description": "Node Instance", - "hide": 2, - "includeAll": false, - "label": "Instance", - "name": "ins", - "options": [], - "query": { - "query": "label_values(node:ins{id=\"$id\"}, ins)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "definition": "label_values(node:ins{id=\"$id\"}, cls)", - "description": "Node Cluster", - "hide": 2, - "includeAll": false, - "label": "Cluster", - "name": "cls", - "options": [], - "query": { - "query": "label_values(node:ins{id=\"$id\"}, cls)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "definition": "label_values(pg_up{ip=\"$ip\"},ins)", - "description": "PG Instance Identifier", - "hide": 2, - "includeAll": false, - "label": "PG Instance", - "name": "pg_ins", - "options": [], - "query": { - "query": "label_values(pg_up{ip=\"$ip\"},ins)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "definition": "label_values(probe_success{ip=\"$ip\"},vip)", - "description": "VIP address", - "hide": 2, - "includeAll": false, - "label": "VIP Address", - "name": "vip", - "options": [], - "query": { - "query": "label_values(probe_success{ip=\"$ip\"},vip)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 1, - "type": "query" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent" + }, + { + "color": "red", + "value": 100 + } + ] + }, + "unit": "celsius" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 530 + }, + "id": 73, + "options": { + "legend": { + "calcs": [ + "mean", + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "2s", - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ] - }, - "timezone": "", - "title": "Node Instance", - "uid": "node-instance", - "version": 1, - "weekStart": "" + }, + "pluginVersion": "8.0.0-beta2", + "targets": [ + { + "exemplar": true, + "expr": "node_hwmon_temp_celsius{ip=\"$ip\"}", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{ chip }}", + "refId": "A" + } + ], + "title": "Hardware Temperature", + "type": "timeseries" + } + ], + "title": "Misc", + "type": "row" + } + ], + "preload": false, + "refresh": "", + "schemaVersion": 40, + "tags": [ + "Pigsty", + "NODE", + "Instance" + ], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "definition": "label_values(node:ins, id)", + "description": "IP Address or Hostname", + "includeAll": false, + "label": "Node ID", + "name": "id", + "options": [], + "query": { + "query": "label_values(node:ins, id)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "definition": "label_values(node:ins{id=\"$id\"}, ip)", + "description": "Node IP address", + "hide": 2, + "includeAll": false, + "label": "IP Address", + "name": "ip", + "options": [], + "query": { + "query": "label_values(node:ins{id=\"$id\"}, ip)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "definition": "label_values(node:ins{id=\"$id\"}, nodename)", + "description": "NodeName or hostname", + "hide": 2, + "includeAll": false, + "label": "Hostname", + "name": "node", + "options": [], + "query": { + "query": "label_values(node:ins{id=\"$id\"}, nodename)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "definition": "label_values(node:ins{id=\"$id\"}, ins)", + "description": "Node Instance", + "hide": 2, + "includeAll": false, + "label": "Instance", + "name": "ins", + "options": [], + "query": { + "query": "label_values(node:ins{id=\"$id\"}, ins)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "definition": "label_values(node:ins{id=\"$id\"}, cls)", + "description": "Node Cluster", + "hide": 2, + "includeAll": false, + "label": "Cluster", + "name": "cls", + "options": [], + "query": { + "query": "label_values(node:ins{id=\"$id\"}, cls)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "definition": "label_values(pg_up{ip=\"$ip\"},ins)", + "description": "PG Instance Identifier", + "hide": 2, + "includeAll": false, + "label": "PG Instance", + "name": "pg_ins", + "options": [], + "query": { + "query": "label_values(pg_up{ip=\"$ip\"},ins)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "definition": "label_values(probe_success{ip=\"$ip\"},vip)", + "description": "VIP address", + "hide": 2, + "includeAll": false, + "label": "VIP Address", + "name": "vip", + "options": [], + "query": { + "query": "label_values(probe_success{ip=\"$ip\"},vip)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + } + ] + }, + "time": { + "from": "now-1h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "2s", + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "Node Instance", + "uid": "node-instance", + "version": 1, + "weekStart": "" } \ No newline at end of file diff --git a/files/grafana/node/node-overview.json b/files/grafana/node/node-overview.json index bb8e8f45c..e92d4754d 100644 --- a/files/grafana/node/node-overview.json +++ b/files/grafana/node/node-overview.json @@ -1,4490 +1,5701 @@ { - "annotations": { - "list": [ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "author": "Ruohang Feng (rh@vonng.com)", + "description": "Node Home Dashboard", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "license": "AGPLv3 @ https://pigsty.io/docs/about/license", + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": false, + "keepTime": true, + "tags": [ + "Pigsty", + "NODE" + ], + "targetBlank": false, + "title": "NODE", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 124, + "panels": [], + "title": "Overview", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ { - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" + "title": "PGSQL Overview", + "url": "/d/pgsql-overview?${__url_time_range}" } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 8, + "x": 0, + "y": 1 + }, + "id": 99, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "1", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "", + "queryType": "measurements", + "refId": "A" + } + ], + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": { + "Time": "", + "Value": "${job}" + } + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 2.5, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Mem|Disk|Data/" + }, + "properties": [ + { + "id": "unit", + "value": "bytes" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Disk" + }, + "properties": [ + { + "id": "decimals", + "value": 1 + } + ] + } ] + }, + "gridPos": { + "h": 3, + "w": 8, + "x": 8, + "y": 1 + }, + "id": 31, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "center", + "orientation": "vertical", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 16, + "valueSize": 14 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "count(count(node_load1{job=\"$job\"}) by (ip))", + "instant": true, + "interval": "", + "legendFormat": "Node", + "queryType": "measurements", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:env:cpu_count{job=\"$job\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Core", + "queryType": "measurements", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:env:mem_total{job=\"$job\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Mem", + "queryType": "measurements", + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "sum(node:env:size_bytes{job=\"$job\"})", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Disk", + "queryType": "measurements", + "refId": "D" + } + ], + "type": "stat" }, - "author": "Ruohang Feng (rh@vonng.com)", - "description": "Node Home Dashboard", - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": null, - "license": "AGPLv3 @ https://pigsty.io/docs/about/license", - "links": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "links": [ + { + "title": "Node Overview: CPU Usage", + "url": "/d/node-overview?viewPanel=110&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "\u2205" + } + }, + "type": "special" + } + ], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.3 + }, + { + "color": "#f5a673", + "value": 0.5 + }, + { + "color": "red", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 16, + "y": 1 + }, + "id": 82, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ { - "asDropdown": true, - "icon": "external link", - "includeVars": false, - "keepTime": true, - "tags": [ - "Pigsty", - "NODE" - ], - "targetBlank": false, - "title": "NODE", - "tooltip": "", - "type": "dashboards", - "url": "" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:env:cpu_usage{job=\"$job\"}", + "interval": "", + "legendFormat": "CPU", + "refId": "A" } - ], - "liveNow": false, - "panels": [ + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "links": [ + { + "title": "Node Overview: Standard Load", + "url": "/d/node-overview?viewPanel=116&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "\u2205" + } + }, + "type": "special" + } + ], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.3 + }, + { + "color": "#f5a673", + "value": 0.5 + }, + { + "color": "red", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 18, + "y": 1 + }, + "id": 107, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:env:stdload1{job=\"$job\"}", + "interval": "", + "legendFormat": "Load", + "refId": "A" + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "Node Overview: Memory", + "url": "/d/node-overview?viewPanel=133&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "\u2205" + } + }, + "type": "special" + } + ], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.3 + }, + { + "color": "#f5a673", + "value": 0.5 + }, + { + "color": "red", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 20, + "y": 1 + }, + "id": 105, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:env:mem_usage{job=\"$job\"}", + "interval": "", + "legendFormat": "Memory", + "range": true, + "refId": "A" + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "links": [ + { + "title": "Node Overview: Space Usage", + "url": "/d/node-overview?viewPanel=111&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "\u2205" + } + }, + "type": "special" + } + ], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.8 + }, + { + "color": "#f5a673", + "value": 0.85 + }, + { + "color": "red", + "value": 0.9 + }, + { + "color": "#b783af", + "value": 0.95 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 22, + "y": 1 + }, + "id": 106, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:env:space_usage{job=\"$job\"}", + "interval": "", + "legendFormat": "Space", + "refId": "A" + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "links": [ + { + "title": "Node Cluster : ${__field.labels.cls}", + "url": "/d/node-cluster?var-cls=${__field.labels.cls}&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "-1": { + "color": "gray", + "index": 1, + "text": "N/A" + } + }, + "type": "value" }, - "id": 124, - "panels": [], - "title": "Overview", - "type": "row" + { + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "No Data" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.3 + }, + { + "color": "#f5a673", + "value": 0.5 + }, + { + "color": "red", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit" }, + "overrides": [] + }, + "gridPos": { + "h": 17, + "w": 8, + "x": 0, + "y": 4 + }, + "id": 40, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "node:cls:cpu_usage{}", + "instant": true, + "interval": "", + "legendFormat": "{{ cls }}", + "refId": "A" + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Yellow : Node\n\nGreen: HAProxy\n\nRed: Promtail Logging Agent\n\nGreen: Docker\n\nPurple: Keepalived", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [], + "mappings": [ + { + "options": { + "match": "null+nan", + "result": { + "index": 0, + "text": "No Instances" + } + }, + "type": "special" + } + ], + "max": 1.1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#aaaaaa", + "value": 1 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "A" }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#68511e", + "value": null }, - "links": [ - { - "title": "PGSQL Overview", - "url": "/d/pgsql-overview?${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - } - ] + { + "color": "#e6b03ee6", + "value": 1 } - }, - "overrides": [] + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "Node Instance : ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" }, - "gridPos": { - "h": 3, - "w": 8, - "x": 0, - "y": 1 + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#1e3346", + "value": null + }, + { + "color": "#5b9cd5", + "value": 1 + } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "Node Proxy : ${__field.labels.ins} @ ${__field.labels.ip}", + "url": "/d/node-haproxy?var-ins=${__field.labels.ins}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "C" }, - "id": 99, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "name", - "wideLayout": true + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#65231b", + "value": null + }, + { + "color": "#cc4637d9", + "value": 1 + } + ] + } + }, + { + "id": "links", + "value": [ + { + "title": "Node Syslog : ${__field.labels.ins}", + "url": "/d/logs-instance?var-ins=${__field.labels.ins}&var-src=syslog&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "D" }, - "pluginVersion": "11.1.4", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#152c16", + "value": null }, - "exemplar": false, - "expr": "1", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "queryType": "measurements", - "refId": "A" + { + "color": "#346f36cc", + "value": 1 + } + ] } - ], - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": { - "Time": "", - "Value": "${job}" - } + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "K" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "NODE VIP : ${__field.labels.vip}", + "url": "/d/node-vip?var-vip=${__field.labels.vip}&${__url_time_range}" + } + ] + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#1f171e", + "value": null + }, + { + "color": "#f5a673", + "value": 1 } + ] } - ], - "type": "stat" + } + ] + } + ] + }, + "gridPos": { + "h": 17, + "w": 16, + "x": 8, + "y": 4 + }, + "id": 136, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, + "showPercentChange": false, + "text": {}, + "textMode": "name", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node_up{job=\"node\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "haproxy_up{job=\"node\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "promtail_up{job=\"node\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "docker_up{job=\"node\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "min by (job,cls,vip) (probe_success{job=\"node-vip\"})", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ cls }} @ {{ vip }}", + "refId": "K" + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "links": [], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "OK", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#fcdb72", + "value": 1 + }, + { + "color": "#f5a673", + "value": 4 + }, + { + "color": "#b783af", + "value": 8 + }, + { + "color": "text", + "value": 16 + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "A" }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 2.5, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - } - ] + "properties": [ + { + "id": "links", + "value": [ + { + "targetBlank": true, + "title": "Pigsty Alertmanager", + "url": "http://a.pigsty" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "PGSQL Alert", + "url": "/d/pgsql-alert?${__url_time_range}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 4, + "x": 0, + "y": 21 + }, + "id": 138, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count(ALERTS{alertstate=\"firing\", job=\"$job\"}) or on() vector(0)", + "interval": "", + "legendFormat": "Firing Alert", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count(ALERTS{alertstate=\"pending\", job=\"$job\"})", + "hide": true, + "interval": "", + "legendFormat": "Pending Alert", + "range": true, + "refId": "B" + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "links": [ + { + "targetBlank": true, + "title": "AlertInfo ${__field.labels.alertname}", + "url": "http://a.pigsty/#/alerts?filter=%7Balertname%3D%22${__field.labels.alertname}%22%7D" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "OK", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#fcdb72", + "value": 1 + }, + { + "color": "#f5a673", + "value": 2 + }, + { + "color": "#b783af", + "value": 4 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 4, + "x": 4, + "y": 21 + }, + "id": 139, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count(ALERTS{alertstate=\"firing\", job=\"$job\"}) by (alertname, severity)", + "interval": "", + "legendFormat": "{{ alertname }}", + "range": true, + "refId": "A" + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "hidden", + "axisSoftMax": 1.2, + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 60, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineWidth": 0, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [ + { + "targetBlank": true, + "title": "AlertInfo ${__field.labels.alertname} on Node ${__field.labels.ins}", + "url": "http://a.pigsty/#/alerts?filter=%7Bins%3D%22${__field.labels.ins}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" + }, + { + "targetBlank": true, + "title": "Silence ${__field.labels.alertname} on Node ${__field.labels.ins}", + "url": "http://a.pigsty/#/silences/new?filter=%7Bins%3D%22${__field.labels.ins}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" + }, + { + "title": "Node Instance for ${__field.labels.ins} : Alerts", + "url": "/d/node-instance?var-id=${__field.labels.ins}&viewPanel=227&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "noValue": "No Alert", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byType", + "options": "time" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "auto" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 16, + "x": 8, + "y": 21 + }, + "id": 90, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "ALERTS{alertstate=\"firing\", job=\"$job\"}", + "interval": "", + "legendFormat": "[{{ severity }}] {{alertname}} @ {{ ins }} @ {{ instance }}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "exemplar": false, + "expr": "0", + "hide": true, + "interval": "", + "legendFormat": "Alert", + "refId": "C" + } + ], + "title": "Firing Alerts", + "type": "timeseries" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 26 + }, + "id": 137, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "max": 1.2, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#e3e3e3e0" + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Hostname" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.Hostname}", + "url": "/d/node-instance?var-id=${__data.fields.Hostname}&${__url_time_range}" + } + ] + }, + { + "id": "custom.minWidth", + "value": 180 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "IP" + }, + "properties": [ + { + "id": "custom.width", + "value": 140 + }, + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.IP}", + "url": "/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}" + } + ] + }, + { + "id": "custom.align", + "value": "center" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Core" + }, + "properties": [ + { + "id": "custom.width", + "value": 40 + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "color-background" } + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue" + }, + { + "color": "#3e668f", + "value": 1 + }, + { + "color": "dark-blue", + "value": 2 + }, + { + "color": "super-light-green", + "value": 4 + }, + { + "color": "#346f36cc", + "value": 8 + }, + { + "color": "dark-green", + "value": 16 + }, + { + "color": "super-light-orange", + "value": 32 + }, + { + "color": "semi-dark-orange", + "value": 48 + }, + { + "color": "super-light-red", + "value": 56 + }, + { + "color": "semi-dark-red", + "value": 64 + } + ] + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "transparent", + "index": 0 + } + }, + "type": "special" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "CPU%" }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/Mem|Disk|Data/" + "properties": [ + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "gauge" + } + }, + { + "id": "color", + "value": { + "mode": "thresholds" + } + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "custom.width", + "value": 120 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" }, - "properties": [ - { - "id": "unit", - "value": "bytes" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Disk" + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.3 + }, + { + "color": "#f5a673", + "value": 0.5 }, - "properties": [ - { - "id": "decimals", - "value": 1 - } - ] + { + "color": "red", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 + }, + { + "color": "text", + "value": 1 + } + ] } + }, + { + "id": "decimals", + "value": 1 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "transparent", + "index": 1 + } + }, + "type": "special" + } + ] + } ] + }, + { + "matcher": { + "id": "byName", + "options": "Mem" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#b3b5b7" + }, + { + "color": "super-light-blue", + "value": 1 + }, + { + "color": "#3275d9c4", + "value": 2 + }, + { + "color": "dark-blue", + "value": 4 + }, + { + "color": "#346f36cc", + "value": 8 + }, + { + "color": "#346f36cc", + "value": 16 + }, + { + "color": "dark-green", + "value": 32 + }, + { + "color": "#fcdb72", + "value": 62 + }, + { + "color": "super-light-orange", + "value": 64 + }, + { + "color": "#f5a673", + "value": 128 + }, + { + "color": "#e02f44bf", + "value": 256 + }, + { + "color": "red", + "value": 512 + } + ] + } + }, + { + "id": "unit", + "value": "gbytes" + }, + { + "id": "custom.width", + "value": 70 + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "transparent", + "index": 0 + } + }, + "type": "special" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Mem%" + }, + "properties": [ + { + "id": "custom.width", + "value": 120 + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "gauge" + } + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#f5a673", + "value": 0.3 + }, + { + "color": "#f5a673", + "value": 0.5 + }, + { + "color": "red", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 + }, + { + "color": "text", + "value": 1 + } + ] + } + }, + { + "id": "decimals", + "value": 1 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Space" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "unit", + "value": "gbytes" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-blue" + }, + { + "color": "#3e668f", + "value": 32 + }, + { + "color": "super-light-green", + "value": 256 + }, + { + "color": "#346f36cc", + "value": 512 + }, + { + "color": "light-yellow", + "value": 1024 + }, + { + "color": "#f5a673", + "value": 4096 + }, + { + "color": "light-red", + "value": 8192 + } + ] + } + }, + { + "id": "decimals", + "value": 1 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "transparent", + "index": 1 + } + }, + "type": "special" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Space%" + }, + "properties": [ + { + "id": "custom.width", + "value": 120 + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "decimals", + "value": 1 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "#346f36cc", + "value": 0.05 + }, + { + "color": "#EAB839", + "value": 0.8 + }, + { + "color": "#f5a673", + "value": 0.85 + }, + { + "color": "red", + "value": 0.9 + }, + { + "color": "#b783af", + "value": 0.95 + }, + { + "color": "text", + "value": 0.99 + } + ] + } + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "gauge" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "OS Release" + }, + "properties": [ + { + "id": "custom.minWidth", + "value": 150 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Targets" + }, + "properties": [ + { + "id": "custom.width", + "value": 66 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Cluster" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Cluster : ${__data.fields.Cluster}", + "url": "/d/node-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Instance" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.Instance}", + "url": "/d/node-instance?var-ins=${__data.fields.Instance}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Ping" + }, + "properties": [ + { + "id": "unit", + "value": "s" + }, + { + "id": "custom.width", + "value": 80 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "#346f36cc", + "value": 0.0002 + }, + { + "color": "#fcdb72", + "value": 0.0005 + }, + { + "color": "#f5a673", + "value": 0.001 + }, + { + "color": "red", + "value": 0.01 + }, + { + "color": "text", + "value": 1 + } + ] + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "from": 7, + "result": { + "color": "text", + "index": 0, + "text": "\u221e" + }, + "to": 9999999 + }, + "type": "range" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "HAProxy" + }, + "properties": [ + { + "id": "custom.width", + "value": 140 + }, + { + "id": "links", + "value": [ + { + "targetBlank": true, + "title": "HAProxy Admin Page : ${__data.fields.Instance}", + "url": "http://h.pigsty/${__data.fields.Instance}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Conn" + }, + "properties": [ + { + "id": "custom.width", + "value": 60 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Alive" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#cc4637d9", + "index": 0, + "text": "Down" + }, + "1": { + "color": "#346f36cc", + "index": 1, + "text": "UP" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "custom.width", + "value": 60 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "TimeX" + }, + "properties": [ + { + "id": "custom.width", + "value": 70 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#cc4637d9", + "index": 1, + "text": "Failed" + }, + "1": { + "color": "#346f36cc", + "index": 0, + "text": "Synced" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + } + ] + } + ] + }, + "gridPos": { + "h": 16, + "w": 24, + "x": 0, + "y": 27 + }, + "id": 142, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node_up{}", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "L" }, - "gridPos": { - "h": 3, - "w": 8, - "x": 8, - "y": 1 + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "group without(ins,cls,instance) (node_uname_info{})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "A" }, - "id": 31, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "center", - "orientation": "vertical", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (node:ins:cpu_usage{})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (node:ins:mem_usage{})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (ip,instance) (node:ins:space_usage_max{})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (node:ins:cpu_count{}) ", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (node_memory_MemTotal_bytes{}) / 1073741824", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(node:fs:size_bytes{}) by (ip) / 1073741824", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count by (ip) (up{ip!=''})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "H" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (ip) (probe_duration_seconds{job=\"ping\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "I" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (ip) (haproxy_backend_current_sessions{})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "J" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "min by (ip) (node_up{})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "K" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "min by (ip) (node_timex_sync_status{})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "M" + } + ], + "title": "All Nodes", + "transformations": [ + { + "id": "seriesToColumns", + "options": { + "byField": "ip" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Time 1": true, + "Time 10": true, + "Time 11": true, + "Time 13": true, + "Time 2": true, + "Time 3": true, + "Time 4": true, + "Time 5": true, + "Time 6": true, + "Time 7": true, + "Time 8": true, + "Time 9": true, + "Value #A": true, + "Value #B": false, + "Value #J": false, + "Value #L": true, + "__name__": true, + "__name__ 1": true, + "__name__ 2": true, + "__name__ 3": true, + "cls": false, + "cls 1": true, + "cls 2": false, + "cls 3": true, + "domainname": true, + "instance": false, + "instance 1": false, + "instance 2": true, + "instance 3": true, + "ip 2": true, + "ip 3": true, + "job": true, + "job 1": true, + "job 2": true, + "job 3": true, + "machine": true, + "maxmemory_policy": true, + "nodename": false, + "os": true, + "process_id": true, + "redis_build_id": true, + "release": false, + "run_id": true, + "sysname": true, + "tcp_port": true, + "version": true }, - "showPercentChange": false, - "text": { - "titleSize": 16, - "valueSize": 14 + "indexByName": { + "Time 1": 18, + "Time 10": 27, + "Time 11": 28, + "Time 12": 32, + "Time 13": 39, + "Time 2": 19, + "Time 3": 20, + "Time 4": 21, + "Time 5": 22, + "Time 6": 23, + "Time 7": 24, + "Time 8": 25, + "Time 9": 26, + "Value #A": 7, + "Value #B": 9, + "Value #C": 11, + "Value #D": 13, + "Value #E": 8, + "Value #F": 10, + "Value #G": 12, + "Value #H": 6, + "Value #I": 14, + "Value #J": 15, + "Value #K": 0, + "Value #L": 30, + "Value #M": 16, + "__name__": 29, + "cls": 2, + "domainname": 34, + "ins": 3, + "instance 1": 4, + "instance 2": 31, + "ip": 1, + "job 1": 33, + "job 2": 35, + "machine": 36, + "nodename": 5, + "release": 17, + "sysname": 37, + "version": 38 }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.1.4", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "count(count(node_load1{job=\"$job\"}) by (ip))", - "instant": true, - "interval": "", - "legendFormat": "Node", - "queryType": "measurements", - "refId": "A" + "renameByName": { + "Time 4": "", + "Value #A": "", + "Value #B": "CPU%", + "Value #C": "Mem%", + "Value #D": "Space%", + "Value #E": "Core", + "Value #F": "Mem", + "Value #G": "Space", + "Value #H": "Targets", + "Value #I": "Ping", + "Value #J": "Conn", + "Value #K": "Alive", + "Value #M": "TimeX", + "cls": "Cluster", + "cls 1": "Cluster", + "cls 2": "Cluster", + "ins": "Instance", + "ins 2": "Instance", + "instance": "HAProxy", + "instance 1": "HAProxy", + "instance 3": "", + "ip": "IP", + "ip 1": "IP", + "job 1": "", + "nodename": "Hostname", + "redis_mode": "Mode", + "redis_version": "Version", + "release": "OS Release", + "role": "Role" + } + } + } + ], + "type": "table" + } + ], + "title": "Members", + "type": "row" + }, + { + "collapsed": true, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 27 + }, + "id": 109, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:env:cpu_count{job=\"$job\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Core", - "queryType": "measurements", - "refId": "B" + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" }, + "thresholdsStyle": { + "mode": "area" + } + }, + "decimals": 1, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:env:mem_total{job=\"$job\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Mem", - "queryType": "measurements", - "refId": "C" + "title": "Node CPU : ${__field.labels.ins} @ ${__field.labels.ip}", + "url": "/d/node-instance?var-ip=${__field.labels.ip}&var-id=${__field.labels.ip}&viewPanel=172&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "-1": { + "color": "gray", + "index": 1, + "text": "N/A" + } + }, + "type": "value" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "sum(node:env:size_bytes{job=\"$job\"})", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Disk", - "queryType": "measurements", - "refId": "D" + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "No Data" + } + }, + "type": "special" } - ], - "type": "stat" + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "green", + "value": 0.1 + }, + { + "color": "orange", + "value": 0.3 + }, + { + "color": "orange", + "value": 0.5 + }, + { + "color": "red", + "value": 0.7 + }, + { + "color": "purple", + "value": 0.9 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit", + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 56 + }, + "id": 110, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg_over_time(node:ins:cpu_usage{job=\"$job\"}[1m])", + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "A" + } + ], + "title": "CPU Usage", + "type": "timeseries" }, { - "datasource": { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Standard node load in last 15 minutes (divide by cpu core number)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "decimals": 1, + "links": [ + { + "title": "Node Load : ${__field.labels.ins} @ ${__field.labels.ip}", + "url": "/d/node-instance?var-ip=${__field.labels.ip}&var-id=${__field.labels.ip}&viewPanel=186&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "-1": { + "color": "gray", + "index": 1, + "text": "N/A" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "No Data" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "green", + "value": 0.1 + }, + { + "color": "yellow", + "value": 0.3 + }, + { + "color": "orange", + "value": 0.5 + }, + { + "color": "#E02F44", + "value": 0.7 + }, + { + "color": "purple", + "value": 0.9 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit", + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 56 + }, + "id": 116, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { "type": "prometheus", "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "links": [ - { - "title": "Node Overview: CPU Usage", - "url": "/d/node-overview?viewPanel=110&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 0, - "text": "\u2205" - } - }, - "type": "special" - } - ], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg_over_time(node:ins:stdload15{job=\"$job\"}[1m])", + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "A" + } + ], + "title": "Load 15", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Memory usage ratio for each nodes:\n(total - avail) / total", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "axisSoftMin": 0, + "barAlignment": 0, + "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", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" }, - "overrides": [] + "thresholdsStyle": { + "mode": "area" + } + }, + "links": [ + { + "title": "Node Memory : ${__field.labels.ins} @ ${__field.labels.ip}", + "url": "/d/node-instance?var-ip=${__field.labels.ip}&var-id=${__field.labels.ip}&viewPanel=33&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "-1": { + "color": "gray", + "index": 1, + "text": "N/A" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "No Data" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "green", + "value": 0.1 + }, + { + "color": "yellow", + "value": 0.3 + }, + { + "color": "orange", + "value": 0.5 + }, + { + "color": "red", + "value": 0.7 + }, + { + "color": "purple", + "value": 0.9 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit", + "unitScale": true }, - "gridPos": { - "h": 3, - "w": 2, - "x": 16, - "y": 1 + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 65 + }, + "id": 133, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Max", + "sortDesc": true }, - "id": 82, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:mem_usage{job=\"$job\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "A" + } + ], + "title": "Memory Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Disk Read/Write Time Total / Disk IOPS in last minute", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "points", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 2, + "scaleDistribution": { + "type": "linear" }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.1.4", - "targets": [ + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:env:cpu_usage{job=\"$job\"}", - "interval": "", - "legendFormat": "CPU", - "refId": "A" + "title": "Node Disk : ${__field.labels.ins}", + "url": "/d/node-instance?var-id=${__field.labels.ins}&viewPanel=29&${__url_time_range}" } - ], - "type": "stat" - }, - { - "datasource": { + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "s", + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 65 + }, + "id": 143, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { "type": "prometheus", "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "links": [ - { - "title": "Node Overview: Standard Load", - "url": "/d/node-overview?viewPanel=116&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 0, - "text": "\u2205" - } - }, - "type": "special" - } - ], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" + }, + "editorMode": "code", + "exemplar": true, + "expr": "node:dev:disk_io_rt_1m{}", + "interval": "", + "legendFormat": "{{ ins }}-{{ device }}", + "range": true, + "refId": "A" + } + ], + "title": "Disk I/O RT (1m)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "total disk bandwidth per node", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 47, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 18, - "y": 1 - }, - "id": 107, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.1.4", - "targets": [ + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:env:stdload1{job=\"$job\"}", - "interval": "", - "legendFormat": "Load", - "refId": "A" + "title": "Node Disk I/O : ${__field.labels.ins} @ ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&var-ip=${__field.labels.ip}&viewPanel=45&${__url_time_range}" } - ], - "type": "stat" - }, - { - "datasource": { + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "Bps", + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 74 + }, + "id": 119, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { "type": "prometheus", "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Node Overview: Memory", - "url": "/d/node-overview?viewPanel=133&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 0, - "text": "\u2205" - } - }, - "type": "special" - } - ], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" + }, + "exemplar": false, + "expr": "node:ins:disk_io_bytes_rate1m{job=\"$job\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "refId": "A" + } + ], + "title": "Disk IO Bandwidth", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "total disk bandwidth per node", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 47, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 20, - "y": 1 - }, - "id": 105, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.1.4", - "targets": [ + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node:env:mem_usage{job=\"$job\"}", - "interval": "", - "legendFormat": "Memory", - "range": true, - "refId": "A" + "title": "Node Network I/O : ${__field.labels.ins} @ ${__field.labels.ip}", + "url": "/d/node-instance?var-ip=${__field.labels.ip}&var-id=${__field.labels.ip}&viewPanel=185&${__url_time_range}" } - ], - "type": "stat" - }, - { - "datasource": { + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + }, + "unit": "Bps", + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 74 + }, + "id": 134, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.0", + "targets": [ + { + "datasource": { "type": "prometheus", "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:ins:network_io_bytes_rate1m{job=\"$job\"}", + "interval": "", + "legendFormat": "{{ ins }}", + "range": true, + "refId": "A" + } + ], + "title": "Network IO Rate1m", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "Node : ${__field.labels.ip} Disks", + "url": "/d/node-instance?var-ip=${__field.labels.ip}&viewPanel=199&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "\u2205" + } + }, + "type": "special" + } + ], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "#346f36cc", + "value": 0.1 + }, + { + "color": "#fcdb72", + "value": 0.8 + }, + { + "color": "#f5a673", + "value": 0.85 + }, + { + "color": "red", + "value": 0.9 + }, + { + "color": "#b783af", + "value": 0.95 + }, + { + "color": "text", + "value": 1 + } + ] + }, + "unit": "percentunit", + "unitScale": true }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "links": [ - { - "title": "Node Overview: Space Usage", - "url": "/d/node-overview?viewPanel=111&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 0, - "text": "\u2205" - } - }, - "type": "special" - } - ], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.8 - }, - { - "color": "#f5a673", - "value": 0.85 - }, - { - "color": "red", - "value": 0.9 - }, - { - "color": "#b783af", - "value": 0.95 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 22, - "y": 1 + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 12, + "x": 0, + "y": 83 + }, + "id": 111, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "id": 106, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "titleSize": 12, - "valueSize": 18 + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.3.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "node:fs:space_usage{job=\"$job\"}", + "instant": true, + "interval": "", + "legendFormat": "{{ ins }}:{{ mountpoint }}", + "refId": "A" + } + ], + "title": "Space Usage", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Network RT in µs ", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "Node : ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ], + "mappings": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "\u2205" + } + }, + "type": "special" }, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.1.4", - "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "options": { + "from": 7, + "result": { + "color": "text", + "index": 1, + "text": "\u221e" }, - "exemplar": false, - "expr": "node:env:space_usage{job=\"$job\"}", - "interval": "", - "legendFormat": "Space", - "refId": "A" + "to": 9999999 + }, + "type": "range" } - ], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + ], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "#346f36cc", + "value": 0.0002 + }, + { + "color": "#fcdb72", + "value": 0.0005 + }, + { + "color": "#f5a673", + "value": 0.001 + }, + { + "color": "red", + "value": 0.01 + }, + { + "color": "text", + "value": 7 + } + ] + }, + "unit": "s", + "unitScale": true }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "links": [ - { - "title": "Node Cluster : ${__field.labels.cls}", - "url": "/d/node-cluster?var-cls=${__field.labels.cls}&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "-1": { - "color": "gray", - "index": 1, - "text": "N/A" - } - }, - "type": "value" - }, - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 0, - "text": "No Data" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit" + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "A" }, - "overrides": [] - }, - "gridPos": { - "h": 17, - "w": 8, - "x": 0, - "y": 4 - }, - "id": 40, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instsance : ${__field.labels.ip}", + "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" }, - "showPercentChange": false, - "text": {}, - "textMode": "value_and_name", - "wideLayout": true + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node VIP : ${__field.labels.vip}", + "url": "/d/node-vip?var-vip=${__field.labels.vip}&${__url_time_range}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 10, + "w": 12, + "x": 12, + "y": 83 + }, + "id": 135, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "pluginVersion": "11.1.4", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:cls:cpu_usage{}", - "instant": true, - "interval": "", - "legendFormat": "{{ cls }}", - "refId": "A" - } - ], - "type": "stat" - }, - { - "datasource": { + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.3.3", + "targets": [ + { + "datasource": { "type": "prometheus", "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "probe_duration_seconds{job=\"ping\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ ins }} @ {{ ip }}", + "refId": "A" }, - "description": "Yellow : Node\n\nGreen: HAProxy\n\nRed: Promtail Logging Agent\n\nGreen: Docker\n\nPurple: Keepalived", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [], - "mappings": [ - { - "options": { - "match": "null+nan", - "result": { - "index": 0, - "text": "No Instances" - } - }, - "type": "special" - } - ], - "max": 1.1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#aaaaaa", - "value": 1 - } - ] + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg by (job,vip) (probe_duration_seconds{job=~\".*vip\"})", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{ job }} @ {{ vip }}", + "refId": "B" + } + ], + "title": "Ping RT", + "type": "stat" + } + ], + "title": "Metrics", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 28 + }, + "id": 126, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Proxy instances\n", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "max": 1.2, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Proxy" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "PGSQL Proxy ${__data.fields.Proxy}", + "url": "/d/pgsql-proxy?var-ins=${__data.fields.Proxy}&var-cls=${cls}&${__url_time_range}" + } + ] + }, + { + "id": "custom.width" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Session" + }, + "properties": [ + { + "id": "custom.width", + "value": 120 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#3e668f", + "index": 0, + "text": "0" + } + }, + "type": "value" + }, + { + "options": { + "from": 1, + "result": { + "color": "#346f36cc", + "index": 1 + }, + "to": 9999999 + }, + "type": "range" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 2, + "text": "N/A" + } + }, + "type": "special" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "basic", + "type": "color-background" } + }, + { + "id": "custom.width", + "value": 70 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Busy" }, - "overrides": [ - { - "matcher": { - "id": "byFrameRefID", - "options": "A" + "properties": [ + { + "id": "min", + "value": 0 + }, + { + "id": "max", + "value": 1 + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "gauge" + } + }, + { + "id": "custom.width", + "value": 162 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#68511e", - "value": null - }, - { - "color": "#e6b03ee6", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "Node Instance : ${__field.labels.ip}", - "url": "/d/node-instance?var-id=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "B" + { + "color": "#346f36cc", + "value": 0.1 }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#1e3346", - "value": null - }, - { - "color": "#5b9cd5", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "Node Proxy : ${__field.labels.ins} @ ${__field.labels.ip}", - "url": "/d/node-haproxy?var-ins=${__field.labels.ins}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "C" + { + "color": "#fcdb72", + "value": 0.3 }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#65231b", - "value": null - }, - { - "color": "#cc4637d9", - "value": 1 - } - ] - } - }, - { - "id": "links", - "value": [ - { - "title": "Node Syslog : ${__field.labels.ins}", - "url": "/d/logs-instance?var-ins=${__field.labels.ins}&var-src=syslog&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "D" + { + "color": "#f5a673", + "value": 0.5 }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#152c16", - "value": null - }, - { - "color": "#346f36cc", - "value": 1 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "K" + { + "color": "red", + "value": 0.7 + }, + { + "color": "#b783af", + "value": 0.9 }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "NODE VIP : ${__field.labels.vip}", - "url": "/d/node-vip?var-vip=${__field.labels.vip}&${__url_time_range}" - } - ] - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#1f171e", - "value": null - }, - { - "color": "#f5a673", - "value": 1 - } - ] - } - } - ] + { + "color": "text", + "value": 1 + } + ] } + } ] - }, - "gridPos": { - "h": 17, - "w": 16, - "x": 8, - "y": 4 - }, - "id": 136, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + }, + { + "matcher": { + "id": "byName", + "options": "Admin" }, - "showPercentChange": false, - "text": {}, - "textMode": "name", - "wideLayout": true + "properties": [ + { + "id": "links", + "value": [ + { + "targetBlank": true, + "title": "HAProxy Admin Page: ${__data.fields.Proxy}", + "url": "http://h.pigsty/${__data.fields.Proxy}/" + } + ] + }, + { + "id": "custom.align", + "value": "center" + } + ] + } + ] + }, + "gridPos": { + "h": 10, + "w": 8, + "x": 0, + "y": 94 + }, + "id": 130, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false }, - "pluginVersion": "11.1.4", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node_up{job=\"node\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "haproxy_up{job=\"node\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "promtail_up{job=\"node\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "C" + "showHeader": true, + "sortBy": [ + { + "desc": false, + "displayName": "Proxy" + } + ] + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (ins,instance) (haproxy_server_current_sessions{})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Time 1": true, + "Time 2": true }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "docker_up{job=\"node\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "D" + "indexByName": { + "Time 1": 3, + "Time 2": 4, + "Value #A": 2, + "Value #B": 1, + "ins": 0 }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "min by (job,cls,vip) (probe_success{job=\"node-vip\"})", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ cls }} @ {{ vip }}", - "refId": "K" + "renameByName": { + "Value": "Session", + "Value #A": "Session", + "Value #B": "Route", + "ins": "Proxy", + "instance": "Admin" } - ], - "type": "stat" + } + } + ], + "type": "table" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "Services powered by this proxy instance", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#346f36cc" + } + ] + } }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "links": [], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "OK", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#fcdb72", - "value": 1 - }, - { - "color": "#f5a673", - "value": 4 - }, - { - "color": "#b783af", - "value": 8 - }, - { - "color": "text", - "value": 16 - } - ] - }, - "unit": "none" + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Session" }, - "overrides": [ - { - "matcher": { - "id": "byFrameRefID", - "options": "A" + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#3e668f", + "index": 0, + "text": "\u23fb" + }, + "1": { + "color": "#346f36cc", + "index": 1, + "text": "9999999" + } }, - "properties": [ - { - "id": "links", - "value": [ - { - "targetBlank": true, - "title": "Pigsty Alertmanager", - "url": "http://a.pigsty" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "B" + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 2, + "text": "N/A" + } }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "PGSQL Alert", - "url": "/d/pgsql-alert?${__url_time_range}" - } - ] - } - ] + "type": "special" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "color-background" } + }, + { + "id": "custom.width", + "value": 70 + } ] - }, - "gridPos": { - "h": 5, - "w": 4, - "x": 0, - "y": 21 - }, - "id": 138, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false + }, + { + "matcher": { + "id": "byName", + "options": "Service" }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.1.4", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "count(ALERTS{alertstate=\"firing\", job=\"$job\"}) or on() vector(0)", - "interval": "", - "legendFormat": "Firing Alert", - "range": true, - "refId": "A" + "properties": [ + { + "id": "links", + "value": [ + { + "title": "PGSQL Service: ${__data.fields.Service}", + "url": "/d/pgsql-service?var-svc=${__data.fields.Service}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Route" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "count(ALERTS{alertstate=\"pending\", job=\"$job\"})", - "hide": true, - "interval": "", - "legendFormat": "Pending Alert", - "range": true, - "refId": "B" - } - ], - "type": "stat" - }, - { - "datasource": { + "properties": [ + { + "id": "custom.cellOptions", + "value": { + "mode": "basic", + "type": "color-background" + } + }, + { + "id": "custom.width", + "value": 70 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#3e668f", + "index": 1, + "text": "0" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "gray", + "index": 0, + "text": "N/A" + } + }, + "type": "special" + }, + { + "options": { + "from": 1, + "result": { + "color": "#346f36cc", + "index": 2 + }, + "to": 9999999 + }, + "type": "range" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 10, + "w": 8, + "x": 8, + "y": 94 + }, + "id": 128, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "Session" + } + ] + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { "type": "prometheus", "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (proxy) (haproxy_backend_current_sessions{proxy!=\"stats\"})", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "A" }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "links": [ - { - "targetBlank": true, - "title": "AlertInfo ${__field.labels.alertname}", - "url": "http://a.pigsty/#/alerts?filter=%7Balertname%3D%22${__field.labels.alertname}%22%7D" - } - ], - "mappings": [], - "max": 1, - "min": 0, - "noValue": "OK", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f", - "value": null - }, - { - "color": "#fcdb72", - "value": 1 - }, - { - "color": "#f5a673", - "value": 2 - }, - { - "color": "#b783af", - "value": 4 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 4, - "x": 4, - "y": 21 + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (proxy) (haproxy_server_status{})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "B" + } + ], + "transformations": [ + { + "id": "seriesToColumns", + "options": { + "byField": "proxy" + } }, - "id": 139, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Time 1": true, + "Time 2": true, + "Value": false }, - "showPercentChange": false, - "text": { - "titleSize": 12 + "indexByName": { + "Time 1": 3, + "Time 2": 4, + "Value #A": 2, + "Value #B": 1, + "proxy": 0 }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.1.4", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "count(ALERTS{alertstate=\"firing\", job=\"$job\"}) by (alertname, severity)", - "interval": "", - "legendFormat": "{{ alertname }}", - "range": true, - "refId": "A" + "renameByName": { + "Time": "", + "Value": "Session", + "Value #A": "Session", + "Value #B": "Route", + "proxy": "Service" } - ], - "type": "stat" + } + } + ], + "type": "table" }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "hidden", - "axisSoftMax": 1.2, - "axisSoftMin": 0, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 60, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepBefore", - "lineWidth": 0, - "pointSize": 1, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "links": [ - { - "targetBlank": true, - "title": "AlertInfo ${__field.labels.alertname} on Node ${__field.labels.ins}", - "url": "http://a.pigsty/#/alerts?filter=%7Bins%3D%22${__field.labels.ins}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" - }, - { - "targetBlank": true, - "title": "Silence ${__field.labels.alertname} on Node ${__field.labels.ins}", - "url": "http://a.pigsty/#/silences/new?filter=%7Bins%3D%22${__field.labels.ins}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" - }, - { - "title": "Node Instance for ${__field.labels.ins} : Alerts", - "url": "/d/node-instance?var-id=${__field.labels.ins}&viewPanel=227&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "noValue": "No Alert", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byType", - "options": "time" - }, - "properties": [ - { - "id": "custom.axisPlacement", - "value": "auto" - } - ] - } + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "title": "PGSQL Service: ${__field.labels.proxy}", + "url": "/d/pgsql-service?var-svc=${__field.labels.proxy}&${__url_time_range}" + } + ], + "mappings": [], + "noValue": "No Active Services", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f" + }, + { + "color": "#346f36cc", + "value": 1 + } ] + } }, - "gridPos": { - "h": 5, - "w": 16, - "x": 8, - "y": 21 + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 8, + "x": 16, + "y": 94 + }, + "id": 132, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "id": 90, - "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "targets": [ + "textMode": "auto" + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (proxy) (haproxy_backend_current_sessions{proxy!=\"stats\"})", + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "fillOpacity": 60, + "lineWidth": 0, + "spanNulls": false + }, + "links": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "ALERTS{alertstate=\"firing\", job=\"$job\"}", - "interval": "", - "legendFormat": "[{{ severity }}] {{alertname}} @ {{ ins }} @ {{ instance }}", - "range": true, - "refId": "A" - }, + "title": "PGSQL Service : ${__field.labels.proxy}", + "url": "/d/pgsql-service?var-svc=${__field.labels.proxy}&${__url_time_range}" + } + ], + "mappings": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "0", - "hide": true, - "interval": "", - "legendFormat": "Alert", - "refId": "C" + "options": { + "match": "null+nan", + "result": { + "color": "#808080", + "index": 1 + } + }, + "type": "special" } - ], - "title": "Firing Alerts", - "type": "timeseries" - }, + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#cc4637d9" + }, + { + "color": "#346f36cc", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 17, + "w": 24, + "x": 0, + "y": 104 + }, + "id": 141, + "options": { + "alignValue": "left", + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "mergeValues": true, + "rowHeight": 0.9, + "showValue": "never", + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "sum by (cls,proxy) (haproxy_server_status{state=\"UP\"}) > bool 0", + "instant": false, + "legendFormat": "{{ proxy }}", + "range": true, + "refId": "A" + } + ], + "title": "Service Health", + "type": "state-timeline" + } + ], + "title": "Services", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 29 + }, + "id": 144, + "panels": [ { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 26 + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" + }, + "filterable": false, + "inspect": false + }, + "mappings": [], + "max": 1.2, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#e3e3e3e0", + "value": null + } + ] + } }, - "id": 137, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "center", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "max": 1.2, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#e3e3e3e0" - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Hostname" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Instance: ${__data.fields.Hostname}", - "url": "/d/node-instance?var-id=${__data.fields.Hostname}&${__url_time_range}" - } - ] - }, - { - "id": "custom.minWidth", - "value": 180 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "IP" - }, - "properties": [ - { - "id": "custom.width", - "value": 140 - }, - { - "id": "links", - "value": [ - { - "title": "Node Instance: ${__data.fields.IP}", - "url": "/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}" - } - ] - }, - { - "id": "custom.align", - "value": "center" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Core" - }, - "properties": [ - { - "id": "custom.width", - "value": 40 - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "color-background" - } - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "super-light-blue" - }, - { - "color": "#3e668f", - "value": 1 - }, - { - "color": "dark-blue", - "value": 2 - }, - { - "color": "super-light-green", - "value": 4 - }, - { - "color": "#346f36cc", - "value": 8 - }, - { - "color": "dark-green", - "value": 16 - }, - { - "color": "super-light-orange", - "value": 32 - }, - { - "color": "semi-dark-orange", - "value": 48 - }, - { - "color": "super-light-red", - "value": 56 - }, - { - "color": "semi-dark-red", - "value": 64 - } - ] - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "transparent", - "index": 0 - } - }, - "type": "special" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "CPU%" - }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "gauge" - } - }, - { - "id": "color", - "value": { - "mode": "thresholds" - } - }, - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "custom.width", - "value": 120 - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - } - }, - { - "id": "decimals", - "value": 1 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "transparent", - "index": 1 - } - }, - "type": "special" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Mem" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#b3b5b7" - }, - { - "color": "super-light-blue", - "value": 1 - }, - { - "color": "#3275d9c4", - "value": 2 - }, - { - "color": "dark-blue", - "value": 4 - }, - { - "color": "#346f36cc", - "value": 8 - }, - { - "color": "#346f36cc", - "value": 16 - }, - { - "color": "dark-green", - "value": 32 - }, - { - "color": "#fcdb72", - "value": 62 - }, - { - "color": "super-light-orange", - "value": 64 - }, - { - "color": "#f5a673", - "value": 128 - }, - { - "color": "#e02f44bf", - "value": 256 - }, - { - "color": "red", - "value": 512 - } - ] - } - }, - { - "id": "unit", - "value": "gbytes" - }, - { - "id": "custom.width", - "value": 70 - }, - { - "id": "decimals", - "value": 0 - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "transparent", - "index": 0 - } - }, - "type": "special" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Mem%" - }, - "properties": [ - { - "id": "custom.width", - "value": 120 - }, - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "gauge" - } - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#f5a673", - "value": 0.3 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - } - }, - { - "id": "decimals", - "value": 1 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Space" - }, - "properties": [ - { - "id": "custom.width", - "value": 80 - }, - { - "id": "unit", - "value": "gbytes" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "super-light-blue" - }, - { - "color": "#3e668f", - "value": 32 - }, - { - "color": "super-light-green", - "value": 256 - }, - { - "color": "#346f36cc", - "value": 512 - }, - { - "color": "light-yellow", - "value": 1024 - }, - { - "color": "#f5a673", - "value": 4096 - }, - { - "color": "light-red", - "value": 8192 - } - ] - } - }, - { - "id": "decimals", - "value": 1 - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "transparent", - "index": 1 - } - }, - "type": "special" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Space%" - }, - "properties": [ - { - "id": "custom.width", - "value": 120 - }, - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "decimals", - "value": 1 - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 0.05 - }, - { - "color": "#EAB839", - "value": 0.8 - }, - { - "color": "#f5a673", - "value": 0.85 - }, - { - "color": "red", - "value": 0.9 - }, - { - "color": "#b783af", - "value": 0.95 - }, - { - "color": "text", - "value": 0.99 - } - ] - } - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "gauge" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "OS Release" - }, - "properties": [ - { - "id": "custom.minWidth", - "value": 150 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Targets" - }, - "properties": [ - { - "id": "custom.width", - "value": 66 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Cluster" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Cluster : ${__data.fields.Cluster}", - "url": "/d/node-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Instance" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Instance: ${__data.fields.Instance}", - "url": "/d/node-instance?var-ins=${__data.fields.Instance}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Ping" - }, - "properties": [ - { - "id": "unit", - "value": "s" - }, - { - "id": "custom.width", - "value": 80 - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 0.0002 - }, - { - "color": "#fcdb72", - "value": 0.0005 - }, - { - "color": "#f5a673", - "value": 0.001 - }, - { - "color": "red", - "value": 0.01 - }, - { - "color": "text", - "value": 1 - } - ] - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "from": 7, - "result": { - "color": "text", - "index": 0, - "text": "\u221e" - }, - "to": 9999999 - }, - "type": "range" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "HAProxy" - }, - "properties": [ - { - "id": "custom.width", - "value": 140 - }, - { - "id": "links", - "value": [ - { - "targetBlank": true, - "title": "HAProxy Admin Page : ${__data.fields.Instance}", - "url": "http://h.pigsty/${__data.fields.Instance}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Conn" - }, - "properties": [ - { - "id": "custom.width", - "value": 60 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Alive" - }, - "properties": [ - { - "id": "custom.width", - "value": 100 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "#cc4637d9", - "index": 0, - "text": "Down" - }, - "1": { - "color": "#346f36cc", - "index": 1, - "text": "UP" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - }, - { - "id": "custom.width", - "value": 60 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "TimeX" - }, - "properties": [ - { - "id": "custom.width", - "value": 70 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "#cc4637d9", - "index": 1, - "text": "Failed" - }, - "1": { - "color": "#346f36cc", - "index": 0, - "text": "Synced" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-background" - } - } - ] - } - ] - }, - "gridPos": { - "h": 16, - "w": 24, - "x": 0, - "y": 27 - }, - "id": 142, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "10.4.5", - "targets": [ + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "IP" + }, + "properties": [ + { + "id": "custom.width", + "value": 85 + }, + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.IP}", + "url": "/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}" + } + ] + }, + { + "id": "custom.align", + "value": "center" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Space" + }, + "properties": [ + { + "id": "custom.width", + "value": 90 + }, + { + "id": "unit", + "value": "gbytes" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node_up{}", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "L" + "color": "#adadad", + "value": null }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "group without(ins,cls,instance) (node_uname_info{})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" + "color": "super-light-orange", + "value": 256 }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (node:ins:cpu_usage{})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "B" + "color": "light-yellow", + "value": 1024 }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (node:ins:mem_usage{})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "C" + "color": "super-light-purple", + "value": 4096 }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum by (ip,instance) (node:ins:space_usage_max{})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "D" + "color": "light-purple", + "value": 8192 }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (node:ins:cpu_count{}) ", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "E" + "color": "purple", + "value": 20480 + } + ] + } + }, + { + "id": "decimals" + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "transparent", + "index": 1 + } }, + "type": "special" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Space%" + }, + "properties": [ + { + "id": "custom.width", + "value": 120 + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (node_memory_MemTotal_bytes{}) / 1073741824", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "F" + "color": "super-light-green", + "value": null }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum(node:fs:size_bytes{}) by (ip) / 1073741824", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "G" + "color": "#346f36cc", + "value": 0.4 }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "count by (ip) (up{ip!=''})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "H" + "color": "super-light-blue", + "value": 0.5 }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max by (ip) (probe_duration_seconds{job=\"ping\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "I" + "color": "yellow", + "value": 0.6 }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum by (ip) (haproxy_backend_current_sessions{})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "J" + "color": "orange", + "value": 0.7 }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "min by (ip) (node_up{})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "K" + "color": "red", + "value": 0.8 }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "min by (ip) (node_timex_sync_status{})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "M" + "color": "dark-red", + "value": 0.9 } - ], - "title": "All Nodes", - "transformations": [ + ] + } + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "gauge" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Free" + }, + "properties": [ + { + "id": "unit", + "value": "mbytes" + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "id": "seriesToColumns", - "options": { - "byField": "ip" - } + "color": "transparent", + "value": null }, { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Time 1": true, - "Time 10": true, - "Time 11": true, - "Time 13": true, - "Time 2": true, - "Time 3": true, - "Time 4": true, - "Time 5": true, - "Time 6": true, - "Time 7": true, - "Time 8": true, - "Time 9": true, - "Value #A": true, - "Value #B": false, - "Value #J": false, - "Value #L": true, - "__name__": true, - "__name__ 1": true, - "__name__ 2": true, - "__name__ 3": true, - "cls": false, - "cls 1": true, - "cls 2": false, - "cls 3": true, - "domainname": true, - "instance": false, - "instance 1": false, - "instance 2": true, - "instance 3": true, - "ip 2": true, - "ip 3": true, - "job": true, - "job 1": true, - "job 2": true, - "job 3": true, - "machine": true, - "maxmemory_policy": true, - "nodename": false, - "os": true, - "process_id": true, - "redis_build_id": true, - "release": false, - "run_id": true, - "sysname": true, - "tcp_port": true, - "version": true - }, - "indexByName": { - "Time 1": 18, - "Time 10": 27, - "Time 11": 28, - "Time 12": 32, - "Time 13": 39, - "Time 2": 19, - "Time 3": 20, - "Time 4": 21, - "Time 5": 22, - "Time 6": 23, - "Time 7": 24, - "Time 8": 25, - "Time 9": 26, - "Value #A": 7, - "Value #B": 9, - "Value #C": 11, - "Value #D": 13, - "Value #E": 8, - "Value #F": 10, - "Value #G": 12, - "Value #H": 6, - "Value #I": 14, - "Value #J": 15, - "Value #K": 0, - "Value #L": 30, - "Value #M": 16, - "__name__": 29, - "cls": 2, - "domainname": 34, - "ins": 3, - "instance 1": 4, - "instance 2": 31, - "ip": 1, - "job 1": 33, - "job 2": 35, - "machine": 36, - "nodename": 5, - "release": 17, - "sysname": 37, - "version": 38 - }, - "renameByName": { - "Time 4": "", - "Value #A": "", - "Value #B": "CPU%", - "Value #C": "Mem%", - "Value #D": "Space%", - "Value #E": "Core", - "Value #F": "Mem", - "Value #G": "Space", - "Value #H": "Targets", - "Value #I": "Ping", - "Value #J": "Conn", - "Value #K": "Alive", - "Value #M": "TimeX", - "cls": "Cluster", - "cls 1": "Cluster", - "cls 2": "Cluster", - "ins": "Instance", - "ins 2": "Instance", - "instance": "HAProxy", - "instance 1": "HAProxy", - "instance 3": "", - "ip": "IP", - "ip 1": "IP", - "job 1": "", - "nodename": "Hostname", - "redis_mode": "Mode", - "redis_version": "Version", - "release": "OS Release", - "role": "Role" - } - } - } - ], - "type": "table" - } - ], - "title": "Members", - "type": "row" - }, - { - "collapsed": true, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 27 - }, - "id": 109, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "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", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "decimals": 1, - "links": [ - { - "title": "Node CPU : ${__field.labels.ins} @ ${__field.labels.ip}", - "url": "/d/node-instance?var-ip=${__field.labels.ip}&var-id=${__field.labels.ip}&viewPanel=172&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "-1": { - "color": "gray", - "index": 1, - "text": "N/A" - } - }, - "type": "value" - }, - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 0, - "text": "No Data" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "green", - "value": 0.1 - }, - { - "color": "orange", - "value": 0.3 - }, - { - "color": "orange", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "purple", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit", - "unitScale": true - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 44 - }, - "id": 110, - "options": { - "legend": { - "calcs": [ - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "sortBy": "Max", - "sortDesc": true + "color": "dark-red", + "value": 512 }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "avg_over_time(node:ins:cpu_usage{job=\"$job\"}[1m])", - "interval": "", - "legendFormat": "{{ ins }}", - "range": true, - "refId": "A" - } - ], - "title": "CPU Usage", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Standard node load in last 15 minutes (divide by cpu core number)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "decimals": 1, - "links": [ - { - "title": "Node Load : ${__field.labels.ins} @ ${__field.labels.ip}", - "url": "/d/node-instance?var-ip=${__field.labels.ip}&var-id=${__field.labels.ip}&viewPanel=186&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "-1": { - "color": "gray", - "index": 1, - "text": "N/A" - } - }, - "type": "value" - }, - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 0, - "text": "No Data" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "green", - "value": 0.1 - }, - { - "color": "yellow", - "value": 0.3 - }, - { - "color": "orange", - "value": 0.5 - }, - { - "color": "#E02F44", - "value": 0.7 - }, - { - "color": "purple", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit", - "unitScale": true - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 44 - }, - "id": 116, - "options": { - "legend": { - "calcs": [ - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "sortBy": "Max", - "sortDesc": true + "color": "red", + "value": 1024 }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "avg_over_time(node:ins:stdload15{job=\"$job\"}[1m])", - "interval": "", - "legendFormat": "{{ ins }}", - "range": true, - "refId": "A" - } - ], - "title": "Load 15", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Memory usage ratio for each nodes:\n(total - avail) / total", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "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", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "area" - } - }, - "links": [ - { - "title": "Node Memory : ${__field.labels.ins} @ ${__field.labels.ip}", - "url": "/d/node-instance?var-ip=${__field.labels.ip}&var-id=${__field.labels.ip}&viewPanel=33&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "-1": { - "color": "gray", - "index": 1, - "text": "N/A" - } - }, - "type": "value" - }, - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 0, - "text": "No Data" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "green", - "value": 0.1 - }, - { - "color": "yellow", - "value": 0.3 - }, - { - "color": "orange", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "purple", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit", - "unitScale": true - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 53 - }, - "id": 133, - "options": { - "legend": { - "calcs": [ - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "sortBy": "Max", - "sortDesc": true + "color": "dark-orange", + "value": 5120 }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node:ins:mem_usage{job=\"$job\"}", - "interval": "", - "legendFormat": "{{ ins }}", - "range": true, - "refId": "A" - } - ], - "title": "Memory Usage", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Disk Read/Write Time Total / Disk IOPS in last minute", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "points", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 2, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Disk : ${__field.labels.ins}", - "url": "/d/node-instance?var-id=${__field.labels.ins}&viewPanel=29&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "s", - "unitScale": true + "color": "orange", + "value": 10240 }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 53 - }, - "id": 143, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": true, - "expr": "node:dev:disk_io_rt_1m{}", - "interval": "", - "legendFormat": "{{ ins }}-{{ device }}", - "range": true, - "refId": "A" - } - ], - "title": "Disk I/O RT (1m)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "total disk bandwidth per node", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 47, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepBefore", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Disk I/O : ${__field.labels.ins} @ ${__field.labels.ip}", - "url": "/d/node-instance?var-id=${__field.labels.ip}&var-ip=${__field.labels.ip}&viewPanel=45&${__url_time_range}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "Bps", - "unitScale": true - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 62 - }, - "id": 119, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true + "color": "light-orange", + "value": 51200 }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "exemplar": false, - "expr": "node:ins:disk_io_bytes_rate1m{job=\"$job\"}", - "interval": "", - "legendFormat": "{{ ins }}", - "refId": "A" - } - ], - "title": "Disk IO Bandwidth", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "total disk bandwidth per node", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 47, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepBefore", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "title": "Node Network I/O : ${__field.labels.ins} @ ${__field.labels.ip}", - "url": "/d/node-instance?var-ip=${__field.labels.ip}&var-id=${__field.labels.ip}&viewPanel=185&${__url_time_range}" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - }, - "unit": "Bps", - "unitScale": true + "color": "super-light-orange", + "value": 102400 }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 62 - }, - "id": 134, - "options": { - "legend": { - "calcs": [ - "mean" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true + { + "color": "light-green", + "value": 512000 }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.0.0", - "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node:ins:network_io_bytes_rate1m{job=\"$job\"}", - "interval": "", - "legendFormat": "{{ ins }}", - "range": true, - "refId": "A" + "color": "super-light-green", + "value": 1024000 } - ], - "title": "Network IO Rate1m", - "type": "timeseries" + ] + } + }, + { + "id": "custom.width", + "value": 85 + }, + { + "id": "decimals" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Frag" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Node : ${__field.labels.ip} Disks", - "url": "/d/node-instance?var-ip=${__field.labels.ip}&viewPanel=199&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 0, - "text": "\u2205" - } - }, - "type": "special" - } - ], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.8 - }, - { - "color": "#f5a673", - "value": 0.85 - }, - { - "color": "red", - "value": 0.9 - }, - { - "color": "#b783af", - "value": 0.95 - }, - { - "color": "text", - "value": 1 - } - ] - }, - "unit": "percentunit", - "unitScale": true + "properties": [ + { + "id": "custom.width", + "value": 70 + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 12, - "x": 0, - "y": 71 - }, - "id": 111, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + { + "color": "#eae8cd", + "value": 0.1 }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "10.3.3", - "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "node:fs:space_usage{job=\"$job\"}", - "instant": true, - "interval": "", - "legendFormat": "{{ ins }}:{{ mountpoint }}", - "refId": "A" - } - ], - "title": "Space Usage", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Network RT in \u00b5s ", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "Node : ${__field.labels.ip}", - "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 0, - "text": "\u2205" - } - }, - "type": "special" - }, - { - "options": { - "from": 7, - "result": { - "color": "text", - "index": 1, - "text": "\u221e" - }, - "to": 9999999 - }, - "type": "range" - } - ], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 0.0002 - }, - { - "color": "#fcdb72", - "value": 0.0005 - }, - { - "color": "#f5a673", - "value": 0.001 - }, - { - "color": "red", - "value": 0.01 - }, - { - "color": "text", - "value": 7 - } - ] - }, - "unit": "s", - "unitScale": true + "color": "dark-yellow", + "value": 0.2 }, - "overrides": [ - { - "matcher": { - "id": "byFrameRefID", - "options": "A" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node Instsance : ${__field.labels.ip}", - "url": "/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byFrameRefID", - "options": "B" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "Node VIP : ${__field.labels.vip}", - "url": "/d/node-vip?var-vip=${__field.labels.vip}&${__url_time_range}" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 10, - "w": 12, - "x": 12, - "y": 71 - }, - "id": 135, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + { + "color": "yellow", + "value": 0.3 }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "10.3.3", - "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "probe_duration_seconds{job=\"ping\"}", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ ins }} @ {{ ip }}", - "refId": "A" + "color": "orange", + "value": 0.5 }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "avg by (job,vip) (probe_duration_seconds{job=~\".*vip\"})", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{ job }} @ {{ vip }}", - "refId": "B" + "color": "red", + "value": 0.8 } - ], - "title": "Ping RT", - "type": "stat" - } - ], - "title": "Metrics", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 28 - }, - "id": 126, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Proxy instances\n", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "center", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "max": 1.2, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Proxy" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "PGSQL Proxy ${__data.fields.Proxy}", - "url": "/d/pgsql-proxy?var-ins=${__data.fields.Proxy}&var-cls=${cls}&${__url_time_range}" - } - ] - }, - { - "id": "custom.width" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Session" - }, - "properties": [ - { - "id": "custom.width", - "value": 120 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "#3e668f", - "index": 0, - "text": "0" - } - }, - "type": "value" - }, - { - "options": { - "from": 1, - "result": { - "color": "#346f36cc", - "index": 1 - }, - "to": 9999999 - }, - "type": "range" - }, - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 2, - "text": "N/A" - } - }, - "type": "special" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "basic", - "type": "color-background" - } - }, - { - "id": "custom.width", - "value": 70 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Busy" - }, - "properties": [ - { - "id": "min", - "value": 0 - }, - { - "id": "max", - "value": 1 - }, - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "gauge" - } - }, - { - "id": "custom.width", - "value": 162 - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 0.1 - }, - { - "color": "#fcdb72", - "value": 0.3 - }, - { - "color": "#f5a673", - "value": 0.5 - }, - { - "color": "red", - "value": 0.7 - }, - { - "color": "#b783af", - "value": 0.9 - }, - { - "color": "text", - "value": 1 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Admin" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "targetBlank": true, - "title": "HAProxy Admin Page: ${__data.fields.Proxy}", - "url": "http://h.pigsty/${__data.fields.Proxy}/" - } - ] - }, - { - "id": "custom.align", - "value": "center" - } - ] - } - ] - }, - "gridPos": { - "h": 10, - "w": 8, - "x": 0, - "y": 82 - }, - "id": 130, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false + ] + } + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Instance" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.Instance}", + "url": "/d/node-instance?var-ins=${__data.fields.Instance}&${__url_time_range}" + } + ] + }, + { + "id": "custom.width", + "value": 139 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "State" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#346f36cc", + "index": 0, + "text": "Online" + }, + "1": { + "color": "yellow", + "index": 1, + "text": "Degraded" + }, + "2": { + "color": "red", + "index": 2, + "text": "Faulted" + }, + "3": { + "color": "purple", + "index": 3, + "text": "Offline" + }, + "4": { + "color": "semi-dark-purple", + "index": 4, + "text": "Unavail" + }, + "5": { + "color": "#99a9a8", + "index": 5, + "text": "Removed" + }, + "6": { + "color": "super-light-orange", + "index": 6, + "text": "Suspended" + } }, - "showHeader": true, - "sortBy": [ - { - "desc": false, - "displayName": "Proxy" - } - ] - }, - "pluginVersion": "10.0.3", - "targets": [ + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "custom.width", + "value": 80 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Pool" + }, + "properties": [ + { + "id": "custom.width", + "value": 105 + }, + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.IP}", + "url": "/d/zfs-overview/node-zfs?var-id=${__data.fields.IP}&${__url_time_range}&var-pool=${__data.fields.Pool}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Leaked" + }, + "properties": [ + { + "id": "custom.width", + "value": 82 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "unit", + "value": "kbytes" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum by (ins,instance) (haproxy_server_current_sessions{})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "transformations": [ + "color": "transparent", + "value": null + }, { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Time 1": true, - "Time 2": true - }, - "indexByName": { - "Time 1": 3, - "Time 2": 4, - "Value #A": 2, - "Value #B": 1, - "ins": 0 - }, - "renameByName": { - "Value": "Session", - "Value #A": "Session", - "Value #B": "Route", - "ins": "Proxy", - "instance": "Admin" - } - } + "color": "orange", + "value": 1 } - ], - "type": "table" + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Freeing" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "Services powered by this proxy instance", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "center", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#346f36cc" - } - ] - } + "properties": [ + { + "id": "custom.width", + "value": 82 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "auto" + } + }, + { + "id": "unit", + "value": "kbytes" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Session" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "#3e668f", - "index": 0, - "text": "\u23fb" - }, - "1": { - "color": "#346f36cc", - "index": 1, - "text": "9999999" - } - }, - "type": "value" - }, - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 2, - "text": "N/A" - } - }, - "type": "special" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "mode": "gradient", - "type": "color-background" - } - }, - { - "id": "custom.width", - "value": 70 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Service" - }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "PGSQL Service: ${__data.fields.Service}", - "url": "/d/pgsql-service?var-svc=${__data.fields.Service}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Route" - }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "mode": "basic", - "type": "color-background" - } - }, - { - "id": "custom.width", - "value": 70 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "#3e668f", - "index": 1, - "text": "0" - } - }, - "type": "value" - }, - { - "options": { - "match": "null+nan", - "result": { - "color": "gray", - "index": 0, - "text": "N/A" - } - }, - "type": "special" - }, - { - "options": { - "from": 1, - "result": { - "color": "#346f36cc", - "index": 2 - }, - "to": 9999999 - }, - "type": "range" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 10, - "w": 8, - "x": 8, - "y": 82 - }, - "id": 128, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false + { + "color": "super-light-green", + "value": 1000 }, - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "Session" - } - ] - }, - "pluginVersion": "10.0.3", - "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum by (proxy) (haproxy_backend_current_sessions{proxy!=\"stats\"})", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" + "color": "yellow", + "value": 10000 }, { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum by (proxy) (haproxy_server_status{})", - "format": "table", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "B" - } - ], - "transformations": [ + "color": "light-orange", + "value": 100000 + }, { - "id": "seriesToColumns", - "options": { - "byField": "proxy" - } + "color": "orange", + "value": 1000000 }, { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Time 1": true, - "Time 2": true, - "Value": false - }, - "indexByName": { - "Time 1": 3, - "Time 2": 4, - "Value #A": 2, - "Value #B": 1, - "proxy": 0 - }, - "renameByName": { - "Time": "", - "Value": "Session", - "Value #A": "Session", - "Value #B": "Route", - "proxy": "Service" - } - } + "color": "red", + "value": 10000000 } - ], - "type": "table" + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ROnly" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [ - { - "title": "PGSQL Service: ${__field.labels.proxy}", - "url": "/d/pgsql-service?var-svc=${__field.labels.proxy}&${__url_time_range}" - } - ], - "mappings": [], - "noValue": "No Active Services", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#3e668f" - }, - { - "color": "#346f36cc", - "value": 1 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 8, - "x": 16, - "y": 82 - }, - "id": 132, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + "properties": [ + { + "id": "custom.width", + "value": 75 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "transparent", + "index": 0, + "text": "F" + }, + "1": { + "color": "yellow", + "index": 1, + "text": "T" + } }, - "textMode": "auto" - }, - "pluginVersion": "10.0.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum by (proxy) (haproxy_backend_current_sessions{proxy!=\"stats\"})", - "instant": true, - "legendFormat": "__auto", - "range": false, - "refId": "A" - } - ], - "type": "stat" + "type": "value" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Autotrim" }, - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "fillOpacity": 60, - "lineWidth": 0, - "spanNulls": false - }, - "links": [ - { - "title": "PGSQL Service : ${__field.labels.proxy}", - "url": "/d/pgsql-service?var-svc=${__field.labels.proxy}&${__url_time_range}" - } - ], - "mappings": [ - { - "options": { - "match": "null+nan", - "result": { - "color": "#808080", - "index": 1 - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#cc4637d9" - }, - { - "color": "#346f36cc", - "value": 1 - } - ] - } + "properties": [ + { + "id": "custom.width", + "value": 82 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "index": 0, + "text": "F" + }, + "1": { + "color": "super-light-blue", + "index": 1, + "text": "T" + } }, - "overrides": [] - }, - "gridPos": { - "h": 17, - "w": 24, - "x": 0, - "y": 92 - }, - "id": 141, - "options": { - "alignValue": "left", - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": false + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "AShift" + }, + "properties": [ + { + "id": "decimals", + "value": 0 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "index": 0, + "text": "Auto" + }, + "11": { + "index": 4, + "text": "2k" + }, + "12": { + "index": 1, + "text": "4k" + }, + "13": { + "index": 2, + "text": "8k" + }, + "14": { + "index": 3, + "text": "16k" + } }, - "mergeValues": true, - "rowHeight": 0.9, - "showValue": "never", - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" - }, - "editorMode": "code", - "expr": "sum by (cls,proxy) (haproxy_server_status{state=\"UP\"}) > bool 0", - "instant": false, - "legendFormat": "{{ proxy }}", - "range": true, - "refId": "A" - } - ], - "title": "Service Health", - "type": "state-timeline" + "type": "value" + } + ] + }, + { + "id": "custom.width", + "value": 82 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Dedup" + }, + "properties": [ + { + "id": "custom.width", + "value": 82 + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "unit", + "value": "x" + } + ] + } + ] + }, + "gridPos": { + "h": 10, + "w": 16, + "x": 0, + "y": 30 + }, + "id": 145, + "interval": "5s", + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"size_gib\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"capacity\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"free_mib\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"fragmentation_ratio\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"leaked_kib\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"freeing_kib\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"readonly\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"health\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "H" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"autotrim\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "I" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"ashift\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "J" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"dedupratio\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "K" + } + ], + "title": "Pools", + "transformations": [ + { + "id": "joinByLabels", + "options": { + "join": [ + "ip", + "ins", + "pool" + ], + "value": "metric_type" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Time 1": true, + "Time 2": true, + "Time 3": true, + "Time 4": true, + "Time 5": true, + "Time 6": true, + "Time 7": true, + "__name__ 1": true, + "__name__ 2": true, + "__name__ 3": true, + "__name__ 4": true, + "__name__ 5": true, + "__name__ 6": true, + "__name__ 7": true, + "__name__ 8": true, + "cls 1": true, + "cls 2": true, + "cls 3": true, + "cls 4": true, + "cls 5": true, + "cls 6": true, + "cls 7": true, + "cls 8": true, + "ins 2": true, + "ins 3": true, + "ins 4": true, + "ins 5": true, + "ins 6": true, + "ins 7": true, + "ins 8": true, + "instance 1": true, + "instance 2": true, + "instance 3": true, + "instance 4": true, + "instance 5": true, + "instance 6": true, + "instance 7": true, + "instance 8": true, + "ip 1": false, + "ip 2": true, + "ip 3": true, + "ip 4": true, + "ip 5": true, + "ip 6": true, + "ip 7": true, + "ip 8": true, + "job 1": true, + "job 2": true, + "job 3": true, + "job 4": true, + "job 5": true, + "job 6": true, + "job 7": true, + "job 8": true, + "metric_type 1": true, + "metric_type 2": true, + "metric_type 3": true, + "metric_type 4": true, + "metric_type 5": true, + "metric_type 6": true, + "metric_type 7": true, + "pool 2": true, + "pool 3": true, + "pool 4": true, + "pool 5": true, + "pool 6": true, + "pool 7": true, + "pool 8": true + }, + "includeByName": {}, + "indexByName": { + "ashift": 11, + "autotrim": 10, + "capacity": 5, + "dedupratio": 12, + "fragmentation_ratio": 7, + "free_mib": 6, + "freeing_kib": 9, + "health": 0, + "ins": 2, + "ip": 1, + "leaked_kib": 8, + "pool": 3, + "readonly": 13, + "size_gib": 4 + }, + "renameByName": { + "Value #A": "Space", + "Value #B": "Space%", + "Value #C": "Free", + "Value #D": "Frag", + "Value #E": "Leaked", + "Value #F": "Freeing", + "Value #G": "Readonly", + "Value #L": "State", + "ashift": "AShift", + "autotrim": "Autotrim", + "capacity": "Space%", + "dedupratio": "Dedup", + "fragmentation_ratio": "Frag", + "free_mib": "Free", + "freeing_kib": "Freeing", + "health": "State", + "ins": "Instance", + "ins 1": "Instance", + "ip": "IP", + "ip 1": "IP", + "leaked_kib": "Leaked", + "pool": "Pool", + "pool 1": "Pool Name", + "pool 3": "", + "pool 4": "", + "pool 5": "", + "pool 6": "", + "pool 7": "", + "pool 8": "", + "readonly": "ROnly", + "size_gib": "Space" } - ], - "title": "Services", - "type": "row" - } - ], - "refresh": "", - "revision": 1, - "schemaVersion": 39, - "tags": [ - "Pigsty", - "NODE", - "Overview", - "HOME" - ], - "templating": { - "list": [ + } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "desc": false, + "field": "Instance" + } + ] + } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "field": "Pool" + } + ] + } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "field": "IP" + } + ] + } + }, { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "ds-prometheus" + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "desc": true, + "field": "ROnly" + } + ] + } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "desc": true, + "field": "State" + } + ] + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "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": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepAfter", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [], + "mappings": [ + { + "options": { + "0": { + "index": 0, + "text": "Dead" + }, + "1": { + "index": 1, + "text": "UP" + } + }, + "type": "value" + } + ], + "max": 1.2, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "pgbouncer" }, - "definition": "label_values(node_load1, job)", - "description": "Environment identifier (nodes by default)", - "hide": 2, - "includeAll": false, - "label": "Environment", - "multi": false, - "name": "job", - "options": [], - "query": { - "query": "label_values(node_load1, job)", - "refId": "StandardVariableQuery" + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "postgres" }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query" + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 10, + "w": 8, + "x": 16, + "y": 30 + }, + "id": 146, + "options": { + "legend": { + "calcs": [ + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Min", + "sortDesc": false + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Node Overview", - "uid": "node-overview", - "version": 1, - "weekStart": "" + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "zfs_exporter_up{}", + "legendFormat": "{{ instance }}", + "range": true, + "refId": "A" + } + ], + "title": "Aliveness", + "type": "timeseries" + } + ], + "title": "ZFS Pools", + "type": "row" + } + ], + "preload": false, + "refresh": "", + "revision": 1, + "schemaVersion": 40, + "tags": [ + "Pigsty", + "NODE", + "Overview", + "HOME" + ], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "definition": "label_values(node_load1, job)", + "description": "Environment identifier (nodes by default)", + "hide": 2, + "includeAll": false, + "label": "Environment", + "multi": false, + "name": "job", + "options": [], + "query": { + "query": "label_values(node_load1, job)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-1h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Node Overview", + "uid": "node-overview", + "version": 1, + "weekStart": "" } \ No newline at end of file diff --git a/files/grafana/node/node-zfs.json b/files/grafana/node/node-zfs.json new file mode 100644 index 000000000..5c86bbe4b --- /dev/null +++ b/files/grafana/node/node-zfs.json @@ -0,0 +1,3184 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "author": "waiting (1661926154@qq.com)", + "description": "ZFS Pool Dashboard", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "license": "AGPLv3 @ https://pigsty.io/docs/about/license", + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": false, + "keepTime": true, + "tags": [ + "Pigsty", + "NODE" + ], + "targetBlank": false, + "title": "NODE", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 124, + "panels": [], + "title": "Overview", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "links": [], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "OK", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#fcdb72", + "value": 1 + }, + { + "color": "#f5a673", + "value": 4 + }, + { + "color": "#b783af", + "value": 8 + }, + { + "color": "text", + "value": 16 + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "A" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "targetBlank": true, + "title": "Pigsty Alertmanager", + "url": "http://a.pigsty" + } + ] + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "PGSQL Alert", + "url": "/d/pgsql-alert?${__url_time_range}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 4, + "x": 0, + "y": 1 + }, + "id": 138, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "(count(ALERTS{alertstate=\"firing\", job=\"$job\", alertname=~\"^Z[ADP]\\\\w+\"}) or on() vector(0))\n+ (count(ALERTS{alertstate=\"firing\", job=\"$job\", fstype=\"zfs\"}) or on() vector(0))\n", + "interval": "", + "legendFormat": "Firing Alert", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count(ALERTS{alertstate=\"pending\", job=\"$job\", alertname=~\"^Z[ADP]\\\\w+\"})", + "hide": true, + "interval": "", + "legendFormat": "Pending Alert", + "range": true, + "refId": "B" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "links": [ + { + "targetBlank": true, + "title": "AlertInfo ${__field.labels.alertname}", + "url": "http://a.pigsty/#/alerts?filter=%7Balertname%3D%22${__field.labels.alertname}%22%7D" + } + ], + "mappings": [], + "max": 1, + "min": 0, + "noValue": "OK", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#3e668f", + "value": null + }, + { + "color": "#fcdb72", + "value": 1 + }, + { + "color": "#f5a673", + "value": 2 + }, + { + "color": "#b783af", + "value": 4 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 4, + "x": 4, + "y": 1 + }, + "id": 139, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 12 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count(ALERTS{alertstate=\"firing\", job=\"$job\", alertname=~\"^ZPool.+\"}) by (alertname, severity)\nor\ncount(ALERTS{alertstate=\"firing\", job=\"$job\", fstype=\"zfs\"}) by (alertname, severity)", + "hide": false, + "interval": "", + "legendFormat": "{{ alertname }}", + "range": true, + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "hidden", + "axisSoftMax": 1.2, + "axisSoftMin": 0, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 60, + "gradientMode": "none", + "hideFrom": { + "graph": false, + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineWidth": 0, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [ + { + "targetBlank": true, + "title": "AlertInfo ${__field.labels.alertname} on Node ${__field.labels.ins}", + "url": "http://a.pigsty/#/alerts?filter=%7Bins%3D%22${__field.labels.ins}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" + }, + { + "targetBlank": true, + "title": "Silence ${__field.labels.alertname} on Node ${__field.labels.ins}", + "url": "http://a.pigsty/#/silences/new?filter=%7Bins%3D%22${__field.labels.ins}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" + }, + { + "title": "Node Instance for ${__field.labels.ins} : Alerts", + "url": "/d/node-instance?var-id=${__field.labels.ins}&viewPanel=227&${__url_time_range}" + } + ], + "mappings": [], + "min": 0, + "noValue": "No Alert", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byType", + "options": "time" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "auto" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 16, + "x": 8, + "y": 1 + }, + "id": 90, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "ALERTS{alertstate=\"firing\", job=\"$job\",alertname=~\"^Z[ADP]\\\\w+\"}\nor\nALERTS{alertstate=\"firing\", job=\"$job\",fstype=\"zfs\"}\n", + "interval": "", + "legendFormat": "[{{ severity }}] {{alertname}} @ {{ ins }} @ {{ instance }}", + "range": true, + "refId": "A" + } + ], + "title": "Firing Alerts", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" + }, + "filterable": false, + "inspect": false + }, + "mappings": [], + "max": 1.2, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#e3e3e3e0", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "IP" + }, + "properties": [ + { + "id": "custom.width", + "value": 85 + }, + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.IP}", + "url": "/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}" + } + ] + }, + { + "id": "custom.align", + "value": "center" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Space" + }, + "properties": [ + { + "id": "custom.width", + "value": 90 + }, + { + "id": "unit", + "value": "gbytes" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#adadad", + "value": null + }, + { + "color": "super-light-orange", + "value": 256 + }, + { + "color": "light-yellow", + "value": 1024 + }, + { + "color": "super-light-purple", + "value": 4096 + }, + { + "color": "light-purple", + "value": 8192 + }, + { + "color": "purple", + "value": 20480 + } + ] + } + }, + { + "id": "decimals" + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "transparent", + "index": 1 + } + }, + "type": "special" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Space%" + }, + "properties": [ + { + "id": "custom.width", + "value": 120 + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-green", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.4 + }, + { + "color": "super-light-blue", + "value": 0.5 + }, + { + "color": "yellow", + "value": 0.6 + }, + { + "color": "orange", + "value": 0.7 + }, + { + "color": "red", + "value": 0.8 + }, + { + "color": "dark-red", + "value": 0.9 + } + ] + } + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "gauge" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Free" + }, + "properties": [ + { + "id": "unit", + "value": "mbytes" + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + }, + { + "color": "dark-red", + "value": 512 + }, + { + "color": "red", + "value": 1024 + }, + { + "color": "dark-orange", + "value": 5120 + }, + { + "color": "orange", + "value": 10240 + }, + { + "color": "light-orange", + "value": 51200 + }, + { + "color": "super-light-orange", + "value": 102400 + }, + { + "color": "light-green", + "value": 512000 + }, + { + "color": "super-light-green", + "value": 1024000 + } + ] + } + }, + { + "id": "custom.width", + "value": 85 + }, + { + "id": "decimals" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Frag" + }, + "properties": [ + { + "id": "custom.width", + "value": 70 + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + }, + { + "color": "#eae8cd", + "value": 0.1 + }, + { + "color": "dark-yellow", + "value": 0.2 + }, + { + "color": "yellow", + "value": 0.3 + }, + { + "color": "orange", + "value": 0.5 + }, + { + "color": "red", + "value": 0.8 + } + ] + } + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Instance" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.Instance}", + "url": "/d/node-instance?var-ins=${__data.fields.Instance}&${__url_time_range}" + } + ] + }, + { + "id": "custom.width", + "value": 139 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "State" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#346f36cc", + "index": 0, + "text": "Online" + }, + "1": { + "color": "yellow", + "index": 1, + "text": "Degraded" + }, + "2": { + "color": "red", + "index": 2, + "text": "Faulted" + }, + "3": { + "color": "purple", + "index": 3, + "text": "Offline" + }, + "4": { + "color": "semi-dark-purple", + "index": 4, + "text": "Unavail" + }, + "5": { + "color": "#99a9a8", + "index": 5, + "text": "Removed" + }, + "6": { + "color": "super-light-orange", + "index": 6, + "text": "Suspended" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "custom.width", + "value": 80 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Pool" + }, + "properties": [ + { + "id": "custom.width", + "value": 105 + }, + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.IP}", + "url": "/d/zfs-overview/node-zfs?var-id=${__data.fields.IP}&${__url_time_range}&var-pool=${__data.fields.Pool}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Leaked" + }, + "properties": [ + { + "id": "custom.width", + "value": 82 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "unit", + "value": "kbytes" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + }, + { + "color": "orange", + "value": 1 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Freeing" + }, + "properties": [ + { + "id": "custom.width", + "value": 82 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "auto" + } + }, + { + "id": "unit", + "value": "kbytes" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "super-light-green", + "value": 1000 + }, + { + "color": "yellow", + "value": 10000 + }, + { + "color": "light-orange", + "value": 100000 + }, + { + "color": "orange", + "value": 1000000 + }, + { + "color": "red", + "value": 10000000 + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ROnly" + }, + "properties": [ + { + "id": "custom.width", + "value": 75 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "transparent", + "index": 0, + "text": "F" + }, + "1": { + "color": "yellow", + "index": 1, + "text": "T" + } + }, + "type": "value" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Autotrim" + }, + "properties": [ + { + "id": "custom.width", + "value": 82 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "index": 0, + "text": "F" + }, + "1": { + "color": "super-light-blue", + "index": 1, + "text": "T" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "AShift" + }, + "properties": [ + { + "id": "decimals", + "value": 0 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "index": 0, + "text": "Auto" + }, + "11": { + "index": 4, + "text": "2k" + }, + "12": { + "index": 1, + "text": "4k" + }, + "13": { + "index": 2, + "text": "8k" + }, + "14": { + "index": 3, + "text": "16k" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.width", + "value": 82 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Dedup" + }, + "properties": [ + { + "id": "custom.width", + "value": 82 + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "unit", + "value": "x" + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 16, + "x": 0, + "y": 6 + }, + "id": 142, + "interval": "5s", + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"size_gib\", ip=~\"$ip\", pool=~\"$pool\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"capacity\", ip=~\"$ip\", pool=~\"$pool\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"free_mib\", ip=~\"$ip\", pool=~\"$pool\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"fragmentation_ratio\", ip=~\"$ip\", pool=~\"$pool\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"leaked_kib\", ip=~\"$ip\", pool=~\"$pool\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"freeing_kib\", ip=~\"$ip\", pool=~\"$pool\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"readonly\", ip=~\"$ip\", pool=~\"$pool\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"health\", ip=~\"$ip\", pool=~\"$pool\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "H" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"autotrim\", ip=~\"$ip\", pool=~\"$pool\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "I" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"ashift\", ip=~\"$ip\", pool=~\"$pool\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "J" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_pool_metrics{metric_type=\"dedupratio\", ip=~\"$ip\", pool=~\"$pool\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "K" + } + ], + "title": "Pools", + "transformations": [ + { + "id": "joinByLabels", + "options": { + "join": [ + "ip", + "ins", + "pool" + ], + "value": "metric_type" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Time 1": true, + "Time 2": true, + "Time 3": true, + "Time 4": true, + "Time 5": true, + "Time 6": true, + "Time 7": true, + "__name__ 1": true, + "__name__ 2": true, + "__name__ 3": true, + "__name__ 4": true, + "__name__ 5": true, + "__name__ 6": true, + "__name__ 7": true, + "__name__ 8": true, + "cls 1": true, + "cls 2": true, + "cls 3": true, + "cls 4": true, + "cls 5": true, + "cls 6": true, + "cls 7": true, + "cls 8": true, + "ins 2": true, + "ins 3": true, + "ins 4": true, + "ins 5": true, + "ins 6": true, + "ins 7": true, + "ins 8": true, + "instance 1": true, + "instance 2": true, + "instance 3": true, + "instance 4": true, + "instance 5": true, + "instance 6": true, + "instance 7": true, + "instance 8": true, + "ip 1": false, + "ip 2": true, + "ip 3": true, + "ip 4": true, + "ip 5": true, + "ip 6": true, + "ip 7": true, + "ip 8": true, + "job 1": true, + "job 2": true, + "job 3": true, + "job 4": true, + "job 5": true, + "job 6": true, + "job 7": true, + "job 8": true, + "metric_type 1": true, + "metric_type 2": true, + "metric_type 3": true, + "metric_type 4": true, + "metric_type 5": true, + "metric_type 6": true, + "metric_type 7": true, + "pool 2": true, + "pool 3": true, + "pool 4": true, + "pool 5": true, + "pool 6": true, + "pool 7": true, + "pool 8": true + }, + "includeByName": {}, + "indexByName": { + "ashift": 11, + "autotrim": 10, + "capacity": 5, + "dedupratio": 12, + "fragmentation_ratio": 7, + "free_mib": 6, + "freeing_kib": 9, + "health": 0, + "ins": 2, + "ip": 1, + "leaked_kib": 8, + "pool": 3, + "readonly": 13, + "size_gib": 4 + }, + "renameByName": { + "Value #A": "Space", + "Value #B": "Space%", + "Value #C": "Free", + "Value #D": "Frag", + "Value #E": "Leaked", + "Value #F": "Freeing", + "Value #G": "Readonly", + "Value #L": "State", + "ashift": "AShift", + "autotrim": "Autotrim", + "capacity": "Space%", + "dedupratio": "Dedup", + "fragmentation_ratio": "Frag", + "free_mib": "Free", + "freeing_kib": "Freeing", + "health": "State", + "ins": "Instance", + "ins 1": "Instance", + "ip": "IP", + "ip 1": "IP", + "leaked_kib": "Leaked", + "pool": "Pool", + "pool 1": "Pool Name", + "pool 3": "", + "pool 4": "", + "pool 5": "", + "pool 6": "", + "pool 7": "", + "pool 8": "", + "readonly": "ROnly", + "size_gib": "Space" + } + } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "desc": false, + "field": "Instance" + } + ] + } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "field": "Pool" + } + ] + } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "field": "IP" + } + ] + } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "desc": true, + "field": "ROnly" + } + ] + } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "desc": true, + "field": "State" + } + ] + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "", + "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": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepAfter", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [], + "mappings": [ + { + "options": { + "0": { + "index": 0, + "text": "Dead" + }, + "1": { + "index": 1, + "text": "UP" + } + }, + "type": "value" + } + ], + "max": 1.2, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "pgbouncer" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#f5a673", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "postgres" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3e668f", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 16, + "y": 6 + }, + "id": 145, + "options": { + "legend": { + "calcs": [ + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Min", + "sortDesc": false + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "expr": "zfs_exporter_up{ip=~\"$ip\"}", + "legendFormat": "{{ instance }}", + "range": true, + "refId": "A" + } + ], + "title": "Aliveness", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ZFS Datasets", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" + }, + "filterable": false, + "inspect": false + }, + "mappings": [], + "max": 1.2, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#e3e3e3e0", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Hostname" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.Hostname}", + "url": "/d/node-instance?var-id=${__data.fields.Hostname}&${__url_time_range}" + } + ] + }, + { + "id": "custom.minWidth", + "value": 180 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "IP" + }, + "properties": [ + { + "id": "custom.width", + "value": 100 + }, + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.IP}", + "url": "/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}" + } + ] + }, + { + "id": "custom.align", + "value": "center" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Space" + }, + "properties": [ + { + "id": "custom.width", + "value": 90 + }, + { + "id": "unit", + "value": "gbytes" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#adadad", + "value": null + }, + { + "color": "super-light-orange", + "value": 256 + }, + { + "color": "super-light-yellow", + "value": 1024 + }, + { + "color": "super-light-purple", + "value": 4096 + }, + { + "color": "light-purple", + "value": 8192 + }, + { + "color": "purple", + "value": 20480 + } + ] + } + }, + { + "id": "decimals" + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null+nan", + "result": { + "color": "transparent", + "index": 1 + } + }, + "type": "special" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Space%" + }, + "properties": [ + { + "id": "custom.width", + "value": 120 + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "decimals", + "value": 0 + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "super-light-green", + "value": null + }, + { + "color": "#346f36cc", + "value": 0.4 + }, + { + "color": "super-light-blue", + "value": 0.5 + }, + { + "color": "yellow", + "value": 0.6 + }, + { + "color": "orange", + "value": 0.7 + }, + { + "color": "red", + "value": 0.8 + }, + { + "color": "#000000", + "value": 0.95 + } + ] + } + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "gradient", + "type": "gauge" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Avail" + }, + "properties": [ + { + "id": "unit", + "value": "mbytes" + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + }, + { + "color": "dark-red", + "value": 512 + }, + { + "color": "red", + "value": 1024 + }, + { + "color": "dark-orange", + "value": 5120 + }, + { + "color": "orange", + "value": 10240 + }, + { + "color": "light-orange", + "value": 51200 + }, + { + "color": "super-light-orange", + "value": 102400 + }, + { + "color": "light-green", + "value": 512000 + }, + { + "color": "super-light-green", + "value": 1024000 + } + ] + } + }, + { + "id": "custom.width", + "value": 85 + }, + { + "id": "decimals" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Cluster" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Cluster : ${__data.fields.Cluster}", + "url": "/d/node-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Instance" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "Node Instance: ${__data.fields.Instance}", + "url": "/d/node-instance?var-ins=${__data.fields.Instance}&${__url_time_range}" + } + ] + }, + { + "id": "custom.width", + "value": 160 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Pool" + }, + "properties": [ + { + "id": "custom.width", + "value": 110 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Used" + }, + "properties": [ + { + "id": "custom.width", + "value": 85 + }, + { + "id": "unit", + "value": "mbytes" + }, + { + "id": "decimals" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Dataset" + }, + "properties": [ + { + "id": "custom.align", + "value": "left" + }, + { + "id": "custom.width", + "value": 150 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Written" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "unit", + "value": "mbytes" + }, + { + "id": "decimals" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "LUsed" + }, + "properties": [ + { + "id": "custom.width", + "value": 85 + }, + { + "id": "unit", + "value": "mbytes" + }, + { + "id": "decimals" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Quota" + }, + "properties": [ + { + "id": "custom.width", + "value": 85 + }, + { + "id": "unit", + "value": "mbytes" + }, + { + "id": "decimals" + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "index": 0, + "text": "none" + }, + "0.0": { + "index": 1, + "text": "none" + } + }, + "type": "value" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Refer" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "unit", + "value": "bytes" + }, + { + "id": "decimals" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "atime" + }, + "properties": [ + { + "id": "custom.width", + "value": 65 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "index": 0, + "text": "F" + }, + "1": { + "color": "super-light-blue", + "index": 1, + "text": "T" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "applyToRow": false, + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "creation" + }, + "properties": [ + { + "id": "unit", + "value": "dateTimeAsLocal" + }, + { + "id": "custom.minWidth", + "value": 160 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "exec" + }, + "properties": [ + { + "id": "custom.width", + "value": 65 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "super-light-orange", + "index": 1, + "text": "F" + }, + "1": { + "color": "transparent", + "index": 0, + "text": "T" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "applyToRow": false, + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "mounted" + }, + "properties": [ + { + "id": "custom.width", + "value": 76 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "super-light-orange", + "index": 1, + "text": "F" + }, + "1": { + "color": "transparent", + "index": 0, + "text": "T" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "applyToRow": false, + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RAtime" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "index": 1, + "text": "F" + }, + "1": { + "color": "super-light-blue", + "index": 0, + "text": "T" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.width", + "value": 65 + }, + { + "id": "custom.cellOptions", + "value": { + "applyToRow": false, + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RecSize" + }, + "properties": [ + { + "id": "custom.width", + "value": 75 + }, + { + "id": "unit", + "value": "kbytes" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + }, + { + "color": "transparent", + "value": 128 + }, + { + "color": "semi-dark-orange", + "value": 1024 + } + ] + } + }, + { + "id": "custom.cellOptions", + "value": { + "applyToRow": false, + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Compress" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#eaeaea", + "index": 0, + "text": "Off" + }, + "1": { + "color": "light-green", + "index": 1, + "text": "On" + }, + "2": { + "color": "light-green", + "index": 2, + "text": "lz4" + }, + "3": { + "color": "super-light-green", + "index": 3, + "text": "zstd" + }, + "4": { + "color": "super-light-blue", + "index": 4, + "text": "zst-fast" + }, + "undefined": { + "color": "super-light-red", + "index": 7, + "text": "invalid" + } + }, + "type": "value" + }, + { + "options": { + "pattern": "^30*(\\d{1,2})$", + "result": { + "color": "super-light-green", + "index": 5, + "text": "zst-$1" + } + }, + "type": "regex" + }, + { + "options": { + "pattern": "^40*(\\d{1,2})$", + "result": { + "color": "super-light-blue", + "index": 6, + "text": "zst-f-$1" + } + }, + "type": "regex" + } + ] + }, + { + "id": "custom.minWidth", + "value": 78 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "compressratio" + }, + "properties": [ + { + "id": "custom.width", + "value": 75 + }, + { + "id": "unit", + "value": "x" + }, + { + "id": "decimals", + "value": 2 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "sync" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "#bfbfbf", + "index": 2, + "text": "disabled" + }, + "1": { + "color": "transparent", + "index": 0, + "text": "standard" + }, + "2": { + "color": "super-light-orange", + "index": 1, + "text": "always" + } + }, + "type": "value" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "logbias" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "1": { + "color": "transparent", + "index": 0, + "text": "latency" + }, + "2": { + "color": "transparent", + "index": 1, + "text": "Tput" + } + }, + "type": "value" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "primarycache" + }, + "properties": [ + { + "id": "custom.width", + "value": 78 + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-background" + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "super-light-yellow", + "index": 2, + "text": "none" + }, + "1": { + "color": "transparent", + "index": 0, + "text": "all" + }, + "2": { + "color": "super-light-blue", + "index": 1, + "text": "metadata" + } + }, + "type": "value" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 15 + }, + "id": 143, + "interval": "5s", + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"used_mib\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"avail_mib\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"logical_used_mib\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"quota_mib\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"written_mib\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"capacity\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"refer_bytes\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "H" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"size_gib\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"atime\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "I" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"creation\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "J" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"exec\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "K" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"mounted\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "L" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"recordsize_kib\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "M" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"relatime\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "N" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"compression\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "O" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"compressratio\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "P" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"sync\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "Q" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"logbias\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "R" + }, + { + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "last_over_time(node:ins:zfs_dataset_metrics{metric_type=\"primarycache\", ip=~\"$ip\", pool=~\"$pool\", name=~\"$dataset\"}[$__range])", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "S" + } + ], + "title": "Datasets", + "transformations": [ + { + "id": "joinByLabels", + "options": { + "join": [ + "ip", + "ins", + "pool", + "name" + ], + "value": "metric_type" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Time 1": true, + "Time 2": true, + "Time 3": true, + "Time 4": true, + "Time 5": true, + "Time 6": true, + "Time 7": true, + "__name__ 1": true, + "__name__ 2": true, + "__name__ 3": true, + "__name__ 4": true, + "__name__ 5": true, + "__name__ 6": true, + "__name__ 7": true, + "__name__ 8": true, + "cls 1": true, + "cls 2": true, + "cls 3": true, + "cls 4": true, + "cls 5": true, + "cls 6": true, + "cls 7": true, + "cls 8": true, + "ins 2": true, + "ins 3": true, + "ins 4": true, + "ins 5": true, + "ins 6": true, + "ins 7": true, + "ins 8": true, + "instance 1": true, + "instance 2": true, + "instance 3": true, + "instance 4": true, + "instance 5": true, + "instance 6": true, + "instance 7": true, + "instance 8": true, + "ip 1": false, + "ip 2": true, + "ip 3": true, + "ip 4": true, + "ip 5": true, + "ip 6": true, + "ip 7": true, + "ip 8": true, + "job 1": true, + "job 2": true, + "job 3": true, + "job 4": true, + "job 5": true, + "job 6": true, + "job 7": true, + "job 8": true, + "metric_type 1": true, + "metric_type 2": true, + "metric_type 3": true, + "metric_type 4": true, + "metric_type 5": true, + "metric_type 6": true, + "metric_type 7": true, + "pool": true, + "pool 2": true, + "pool 3": true, + "pool 4": true, + "pool 5": true, + "pool 6": true, + "pool 7": true, + "pool 8": true + }, + "includeByName": {}, + "indexByName": { + "atime": 18, + "avail_mib": 5, + "capacity": 4, + "compression": 14, + "compressratio": 7, + "creation": 22, + "exec": 20, + "ins": 1, + "ip": 0, + "logbias": 16, + "logical_used_mib": 8, + "mounted": 21, + "name": 2, + "pool": 12, + "primarycache": 17, + "quota_mib": 9, + "recordsize_kib": 13, + "refer_bytes": 11, + "relatime": 19, + "size_gib": 3, + "sync": 15, + "used_mib": 6, + "written_mib": 10 + }, + "renameByName": { + "Value #A": "Space", + "Value #B": "Space%", + "Value #C": "Free", + "Value #D": "Frag", + "Value #E": "Leaked", + "Value #F": "Freeing", + "Value #G": "Readonly", + "Value #L": "State", + "atime": "Atime", + "avail_mib": "Avail", + "capacity": "Space%", + "compression": "Compress", + "compressratio": "CRatio", + "creation": "Creation", + "exec": "Exec", + "fragmentation_ratio": "Frag", + "free_mib": "Free", + "freeing_kib": "Freeing", + "health": "State", + "ins": "Instance", + "ins 1": "Instance", + "ip": "IP", + "ip 1": "IP", + "leaked_kib": "Leaked", + "logbias": "Logbias", + "logical_used_mib": "LUsed", + "mounted": "Mounted", + "name": "Dataset", + "pool": "Pool", + "pool 1": "Pool Name", + "pool 3": "", + "pool 4": "", + "pool 5": "", + "pool 6": "", + "pool 7": "", + "pool 8": "", + "primarycache": "PriCache", + "quota_mib": "Quota", + "readonly": "ROnly", + "recordsize_kib": "RecSize", + "refer_bytes": "Refer", + "relatime": "RAtime", + "size_gib": "Space", + "sync": "Sync", + "used_gib": "Used", + "used_mib": "Used", + "written_mib": "Written" + } + } + }, + { + "disabled": true, + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "desc": false, + "field": "Instance" + } + ] + } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "desc": false, + "field": "Dataset" + } + ] + } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "field": "IP" + } + ] + } + }, + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "Compress" + } + ], + "fields": {} + } + } + ], + "type": "table" + } + ], + "preload": false, + "refresh": "30s", + "schemaVersion": 40, + "tags": [ + "ZFS", + "POOL", + "Dataset", + "NODE", + "Pigsty" + ], + "templating": { + "list": [ + { + "current": { + "text": "node", + "value": "node" + }, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "definition": "label_values(node_load1, job)", + "description": "Environment identifier (nodes by default)", + "hide": 2, + "includeAll": false, + "label": "Environment", + "name": "job", + "options": [], + "query": { + "query": "label_values(node_load1, job)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "type": "query" + }, + { + "current": { + "text": "All", + "value": "$__all" + }, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "IP Address or Hostname", + "includeAll": true, + "label": "Node ID", + "multi": true, + "name": "id", + "options": [], + "query": { + "query": "label_values(node:ins, id)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "current": { + "text": "All", + "value": "$__all" + }, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "definition": "label_values(node:ins{id=~\"$id\"}, ip)", + "description": "Node IP address", + "hide": 2, + "includeAll": true, + "label": "IP Address", + "multi": true, + "name": "ip", + "options": [], + "query": { + "query": "label_values(node:ins{id=~\"$id\"}, ip)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "allValue": ".*", + "current": { + "text": "All", + "value": "$__all" + }, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "definition": "label_values(node:ins:zfs_pool_metrics{metric_type=\"health\", pool=~\"$pool\"}, pool)", + "description": "ZFS Pool", + "includeAll": true, + "label": "Pool", + "multi": true, + "name": "pool", + "options": [], + "query": { + "query": "label_values(node:ins:zfs_pool_metrics{metric_type=\"health\", pool=~\"$pool\"}, pool)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "allValue": ".*", + "current": { + "text": "All", + "value": "$__all" + }, + "datasource": { + "type": "prometheus", + "uid": "ds-prometheus" + }, + "description": "ZFS Dataset", + "includeAll": true, + "label": "Dataset", + "name": "dataset", + "options": [], + "refresh": 1, + "regex": "", + "sort": 1, + "type": "query" + } + ] + }, + "time": { + "from": "now-1h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Node ZFS", + "uid": "zfs-overview", + "version": 1, + "weekStart": "" +} diff --git a/files/prometheus/rules/node.yml b/files/prometheus/rules/node.yml index 46fac0b9b..666a30e60 100644 --- a/files/prometheus/rules/node.yml +++ b/files/prometheus/rules/node.yml @@ -99,7 +99,7 @@ groups: - record: node:cpu:time_irate1m expr: irate(node_cpu_seconds_total[1m]) - # {cpu} total time spent per second on single cpu + # {cpu} total time spent per second on single cpu - record: node:cpu:total_time_irate1m expr: sum without (mode) (node:cpu:time_irate1m) @@ -247,7 +247,7 @@ groups: node_memory_HardwareCorrupted_bytes + node_memory_PageTables_bytes + node_memory_Slab_bytes + - node_memory_PageTables_bytes) - + node_memory_PageTables_bytes) - node_memory_Buffers_bytes - (node_memory_Hugepagesize_bytes * node_memory_HugePages_Total) - (node_memory_Cached_bytes - node_memory_Mapped_bytes ) - @@ -443,6 +443,93 @@ groups: - record: node:dev:disk_io_batch_1m expr: node:dev:disk_io_bytes_rate1m / node:dev:disk_iops_1m + #--------------------------------# + # ZFS # + #--------------------------------# + # health [0: ONLINE, 1: DEGRADED, 2: FAULTED, 3: OFFLINE, 4: UNAVAIL, 5: REMOVED, 6: SUSPENDED]. + - record: node:ins:zfs_pool_metrics + expr: | + label_replace(zfs_pool_ashift, "metric_type", "ashift", "", "") or + label_replace(zfs_pool_allocated_bytes / 1048576, "metric_type", "allocated_mib", "", "") or + label_replace(zfs_pool_autoexpand, "metric_type", "autoexpand", "", "") or + label_replace(zfs_pool_autoreplace, "metric_type", "autoreplace", "", "") or + label_replace(zfs_pool_autotrim, "metric_type", "autotrim", "", "") or + label_replace( + ceil( (zfs_pool_allocated_bytes / clamp_min(zfs_pool_size_bytes, 1) ) * 1000 ) / 1000, + "metric_type", "capacity", "", "" + ) or + label_replace(zfs_pool_dedupratio, "metric_type", "dedupratio", "", "") or + label_replace(zfs_pool_free_bytes / 1048576, "metric_type", "free_mib", "", "") or + label_replace(zfs_pool_health, "metric_type", "health", "", "") or + label_replace(zfs_pool_leaked_bytes / 1024, "metric_type", "leaked_kib", "", "") or + label_replace(zfs_pool_fragmentation_ratio, "metric_type", "fragmentation_ratio", "", "") or + label_replace(zfs_pool_freeing_bytes / 1024, "metric_type", "freeing_kib", "", "") or + label_replace(zfs_pool_readonly, "metric_type", "readonly", "", "") or + label_replace(zfs_pool_size_bytes / 1073741824, "metric_type", "size_gib", "", "") + + - record: node:ins:zfs_dataset_metrics + expr: | + label_replace(zfs_dataset_atime, "metric_type", "atime", "", "") or + label_replace(zfs_dataset_available_bytes / 1048576, "metric_type", "avail_mib", "", "") or + label_replace( + ceil( (zfs_dataset_used_bytes / clamp_min(zfs_dataset_used_bytes + zfs_dataset_available_bytes, 1) ) * 1000 ) / 1000, + "metric_type", "capacity", "", "" + ) or + label_replace(zfs_dataset_compression, "metric_type", "compression", "", "") or + label_replace(zfs_dataset_compressratio, "metric_type", "compressratio", "", "") or + label_replace(zfs_dataset_creation * 1000, "metric_type", "creation", "", "") or + label_replace(zfs_dataset_exec, "metric_type", "exec", "", "") or + label_replace(zfs_dataset_logbias, "metric_type", "logbias", "", "") or + label_replace(zfs_dataset_logical_used_bytes / 1048576, "metric_type", "logical_used_mib", "", "") or + label_replace(zfs_dataset_mounted, "metric_type", "mounted", "", "") or + label_replace(zfs_dataset_primarycache, "metric_type", "primarycache", "", "") or + label_replace(zfs_dataset_quota_bytes / 1048576, "metric_type", "quota_mib", "", "") or + label_replace(zfs_dataset_recordsize / 1024, "metric_type", "recordsize_kib", "", "") or + label_replace(zfs_dataset_referenced_bytes, "metric_type", "refer_bytes", "", "") or + label_replace(zfs_dataset_relatime, "metric_type", "relatime", "", "") or + label_replace(zfs_dataset_sync, "metric_type", "sync", "", "") or + label_replace((zfs_dataset_used_bytes + zfs_dataset_available_bytes) / 1073741824, "metric_type", "size_gib", "", "") or + label_replace(zfs_dataset_used_bytes / 1048576, "metric_type", "used_mib", "", "") or + label_replace(zfs_dataset_written_bytes / 1048576, "metric_type", "written_mib", "", "") + + - record: node:ins:zfs_arc_utilization + expr: node_zfs_arc_c / node_zfs_arc_c_max + + - record: node:ins:zfs_arc_usage_ratio + expr: node_zfs_arc_size / node_zfs_arc_c + + - record: node:ins:zfs_arc_memory_ratio + expr: node_zfs_arc_size / node_memory_MemTotal_bytes + + - record: node:ins:zfs_arc_meta_usage + expr: node_zfs_arc_arc_meta_used / node_zfs_arc_arc_meta_limit + + - record: node:ins:zfs_arc_hit_ratio + expr: node_zfs_arc_hits / (node_zfs_arc_hits + node_zfs_arc_misses) + + - record: node:ins:zfs_arc_hit_ratio_rate1m + expr: rate(node_zfs_arc_hits[1m]) / (rate(node_zfs_arc_hits[1m]) + rate(node_zfs_arc_misses[1m])) + + - record: node:ins:zfs_arc_hit_ratio_rate5m + expr: rate(node_zfs_arc_hits[5m]) / (rate(node_zfs_arc_hits[5m]) + rate(node_zfs_arc_misses[5m])) + + # Immediate intervention and adjustment are required if value > 0.8 + # Monitor trends and prepare for scaling plans if value > 0.6 + # The formula is a weighted sum of the following metrics: + # - capacity pressure: 40% weight + # - mem pressure: 30% weight + # - hit ratio pressure: 20% weight + # - evict failure pressure: 10% weight + - record: node:ins:zfs_arc_pressure_ratio + expr: | + ( + clamp_max(node:ins:zfs_arc_usage_ratio / 0.8, 1) * 0.4 + + (1 - node:ins:mem_usage) * 0.3 + + (1 - node:ins:zfs_arc_hit_ratio_rate5m) * 0.2 + + (rate(node_zfs_arc_evict_skip[1h]) / (rate(node_zfs_arc_evict_skip[1h]) + 1)) * 0.1 + ) * 1.0 + + #--------------------------------# # Filesystem # #--------------------------------# @@ -777,7 +864,7 @@ groups: keepalived_up[ins={{ $labels.ins }}, instance={{ $labels.instance }}] = {{ $value }} < 1 http://g.pigsty/d/node-instance?var-ins={{ $labels.ins }} - + #==============================================================# # Node : CPU # @@ -855,7 +942,7 @@ groups: # filesystem usage > 90% - alert: NodeFsSpaceFull - expr: node:fs:space_usage > 0.90 + expr: node:fs:space_usage{fstype!="zfs"} > 0.90 for: 1m labels: { level: 1, severity: WARN, category: node } annotations: @@ -883,6 +970,93 @@ groups: description: | node:ins:fd_usage[ins={{ $labels.ins }}] = {{ $value | printf "%.2f" }} > 90% + #==============================================================# + # Node : ZFS POOL # + #==============================================================# + # 0: ONLINE, 1: DEGRADED, 2: FAULTED, 3: OFFLINE, 4: UNAVAIL, 5: REMOVED, 6: SUSPENDED + - alert: ZPoolDegraded + expr: node:ins:zfs_pool_metrics{metric_type="health"} == 1 + labels: { level: 0, severity: CRIT, category: node } + annotations: + summary: "CRIT ZFS Pool Degraded {{ $labels.pool }} {{ $labels.ins }}@{{ $labels.instance }}" + + - alert: ZPoolFaulted + expr: node:ins:zfs_pool_metrics{metric_type="health"} == 2 + labels: { level: 0, severity: CRIT, category: node } + annotations: + summary: "CRIT ZFS Pool Faulted {{ $labels.pool }} {{ $labels.ins }}@{{ $labels.instance }}" + + - alert: ZPoolOffline + expr: node:ins:zfs_pool_metrics{metric_type="health"} == 3 + labels: { level: 0, severity: CRIT, category: node } + annotations: + summary: "CRIT ZFS Pool Offline {{ $labels.pool }} {{ $labels.ins }}@{{ $labels.instance }}" + + - alert: ZPoolUnavail + expr: node:ins:zfs_pool_metrics{metric_type="health"} == 4 + labels: { level: 0, severity: CRIT, category: node } + annotations: + summary: "CRIT ZFS Pool Unavail {{ $labels.pool }} {{ $labels.ins }}@{{ $labels.instance }}" + + - alert: ZPoolRemoved + expr: node:ins:zfs_pool_metrics{metric_type="health"} == 5 + labels: { level: 0, severity: WARN, category: node } + annotations: + summary: "CRIT ZFS Pool Removed {{ $labels.pool }} {{ $labels.ins }}@{{ $labels.instance }}" + + - alert: ZPoolSuspended + expr: node:ins:zfs_pool_metrics{metric_type="health"} == 6 + labels: { level: 0, severity: CRIT, category: node } + annotations: + summary: "CRIT ZFS Pool Suspended {{ $labels.pool }} {{ $labels.ins }}@{{ $labels.instance }}" + + - alert: ZPoolReadonly + expr: node:ins:zfs_pool_metrics{metric_type="readonly"} == 1 + labels: { level: 0, severity: CRIT, category: node } + annotations: + summary: "WARN ZPool Readonly {{ $labels.pool }} {{ $labels.ins }}@{{ $labels.instance }}" + + # > 85% according to https://openzfs.github.io/openzfs-docs/Performance%20and%20Tuning/Workload%20Tuning.html#free-space + - alert: ZPoolSpaceFull + expr: node:ins:zfs_pool_metrics{metric_type="capacity"} > 0.85 + for: 1m + labels: { level: 0, severity: CRIT, category: node } + annotations: + summary: 'WARN ZFS Pool SpaceFull {{ $labels.pool }} {{ $labels.ins }}@{{ $labels.instance }} {{ $value | printf "%.2f" }}' + description: | + node:ins:zfs_pool_metrics[metric_type=capacity, pool={{ $labels.pool }}, ins={{ $labels.ins }}] = {{ $value | printf "%.2f" }} > 85% + + # > 85% according to https://openzfs.github.io/openzfs-docs/Performance%20and%20Tuning/Workload%20Tuning.html#free-space + - alert: ZDatasetSpaceFull + expr: node:ins:zfs_dataset_metrics{metric_type="capacity"} > 0.85 + for: 1m + labels: { level: 1, severity: WARN, category: node } + annotations: + summary: 'WARN ZFS Dataset SpaceFull {{ $labels.name }} {{ $labels.ins }}@{{ $labels.instance }} {{ $value | printf "%.2f" }}' + description: | + node:ins:zfs_dataset_metrics[metric_type=capacity, name={{ $labels.name }}, ins={{ $labels.ins }}] = {{ $value | printf "%.2f" }} > 85% + + # zfs_arc_pressure_ratio > 0.75: means ARC is not effective + # zfs_arc_usage_ratio > 0.95: means ARC usage almost full + # zfs_arc_hit_ratio < 0.3: means ARC hits are very low + # rate(node_zfs_arc_evict_skip[10m]) > 50: means evict failures are high + - alert: ZARCCachePressure + expr: | + node:ins:zfs_arc_pressure_ratio > 0.75 + or ( + node:ins:zfs_arc_usage_ratio > 0.95 + and node:ins:zfs_arc_hit_ratio < 0.3 + and rate(node_zfs_arc_evict_skip[10m]) > 50 + ) + for: 10m + labels: { level: 1, severity: WARN, category: node } + annotations: + summary: 'WARN ZFS ARC Pressure {{ $labels.ins }}@{{ $labels.instance }} is high' + description: | + Check values of node:ins:zfs_arc_pressure_ratio, node:ins:zfs_arc_usage_ratio, node:ins:zfs_arc_hit_ratio and rate(node_zfs_arc_evict_skip[10m]), + link: http://g.pigsty/d/node-instance/node-instance?var-id={{ $labels.ip }}&viewPanel=panel-283 + + # OPTIONAL: space predict 1d # OPTIONAL: filesystem read-only # OPTIONAL: fast release on disk space diff --git a/roles/infra/templates/prometheus/agent.yml.j2 b/roles/infra/templates/prometheus/agent.yml.j2 index d4f72d6d4..e6b5645fc 100644 --- a/roles/infra/templates/prometheus/agent.yml.j2 +++ b/roles/infra/templates/prometheus/agent.yml.j2 @@ -62,4 +62,8 @@ groups: # KAFKA - record: kafka_exporter_up expr: up{job="kafka"} + + # ZFS + - record: zfs_exporter_up + expr: up{instance=~".*:{{ zfs_exporter_port|default('9134') }}"} ... \ No newline at end of file diff --git a/roles/node_monitor/defaults/main.yml b/roles/node_monitor/defaults/main.yml index ce2cbfb5b..227bd145f 100644 --- a/roles/node_monitor/defaults/main.yml +++ b/roles/node_monitor/defaults/main.yml @@ -6,6 +6,16 @@ node_exporter_enabled: true # setup node_exporter on this node? node_exporter_port: 9100 # node exporter listen port, 9100 by default node_exporter_options: '--no-collector.softnet --no-collector.nvme --collector.tcpstat --collector.processes' #--------------------------------------------------------------# +# ZFS EXPORTER +#--------------------------------------------------------------# +zfs_exporter_enabled: false # setup zfs_exporter on this node? +zfs_exporter_version: 3.8.1 +zfs_exporter_port: 9134 # zfs exporter listen port, 9134 by default +zfs_exporter_options: > + --deadline=5s + --properties.pool='allocated,ashift,autoexpand,autoreplace,autotrim,capacity,dedupratio,fragmentation,free,freeing,health,leaked,readonly,size' + --properties.dataset-filesystem='atime,available,compression,compressratio,creation,exec,logbias,logicalused,mounted,primarycache,quota,recordsize,referenced,relatime,sync,used,usedbydataset,volsize,written' +#--------------------------------------------------------------# # PROMTAIL #--------------------------------------------------------------# promtail_enabled: true # enable promtail logging collector? diff --git a/roles/node_monitor/files/zfs_exporter.service b/roles/node_monitor/files/zfs_exporter.service new file mode 100644 index 000000000..a78da0dad --- /dev/null +++ b/roles/node_monitor/files/zfs_exporter.service @@ -0,0 +1,20 @@ +[Unit] +Description=Prometheus zfs exporter for machine metrics +Documentation=https://github.com/waitingsong/zfs_exporter/ +After=network.target + +[Service] +EnvironmentFile=-/etc/default/zfs_exporter +User=root +ExecStart=/usr/bin/zfs_exporter $ZFS_EXPORTER_OPTS +Restart=on-failure +RestartSec=5s + +# deprecated +MemoryLimit=200M + +CPUQuota=30% +MemoryMax=200M + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/roles/node_monitor/tasks/main.yml b/roles/node_monitor/tasks/main.yml index 12fc2f1f0..0fbbc6358 100644 --- a/roles/node_monitor/tasks/main.yml +++ b/roles/node_monitor/tasks/main.yml @@ -104,6 +104,33 @@ wait_for: host=127.0.0.1 port={{ node_exporter_port }} state=started timeout=10 +#--------------------------------------------------------------# +# Config zfs_exporter [zfs_exporter_config] +#--------------------------------------------------------------# +- name: config zfs_exporter + tags: [ node_exporter, node_exporter_config, zfs_exporter, zfs_exporter_config ] + when: zfs_exporter_enabled|bool + block: + - name: config default zfs_exporter options + copy: + dest: /etc/default/zfs_exporter + content: | + ZFS_EXPORTER_OPTS="--web.listen-address=':{{ zfs_exporter_port }}' --web.telemetry-path='{{ exporter_metrics_path }}' {{ zfs_exporter_options }}" + + +#--------------------------------------------------------------# +# Launch zfs_exporter [zfs_exporter_launch] +#--------------------------------------------------------------# +- name: launch zfs_exporter + tags: [ node_exporter, node_exporter_launch, zfs_exporter, zfs_exporter_launch ] + when: zfs_exporter_enabled|bool and zfs_exporter_version is defined and zfs_exporter_version|length > 0 + block: + - name: launch zfs_exporter systemd service + systemd: name=zfs_exporter state=restarted enabled=yes daemon_reload=yes + - name: wait for zfs_exporter service online + wait_for: host=127.0.0.1 port={{ zfs_exporter_port }} state=started timeout=10 + + #--------------------------------------------------------------# # Config keepalived_exporter [vip_exporter_config] #--------------------------------------------------------------# @@ -151,13 +178,16 @@ # {{ inventory_hostname }} # node, haproxy, promtail - labels: { ip: {{ inventory_hostname }} , ins: {{ nodename }} , cls: {{ node_cluster|default('nodes') }} } - targets: {% if not node_exporter_enabled|bool and not haproxy_enabled|bool and not promtail_enabled|bool %}[]{% endif %} + targets: {% if not node_exporter_enabled|bool and not zfs_exporter_enabled|bool and not haproxy_enabled|bool and not promtail_enabled|bool %}[]{% endif %} + {% if node_exporter_enabled|bool %}- {{ inventory_hostname }}:{{ node_exporter_port }}{% endif %} - + {% if haproxy_enabled|bool %}- {{ inventory_hostname }}:{{ haproxy_exporter_port }}{% endif %} - + {% if promtail_enabled|bool %}- {{ inventory_hostname }}:{{ promtail_port }}{% endif %} - + + {% if zfs_exporter_enabled|bool %}- {{ inventory_hostname }}:{{ zfs_exporter_port }}{% endif %} + {% if vip_enabled|bool and vip_address is defined and vip_address != '' %} # keepalived - labels: { ip: {{ inventory_hostname }} , ins: {{ nodename }} , cls: {{ node_cluster|default('nodes') }}, vip: {{ vip_address }} }