diff --git a/grafana/dashboard/A-Ops Home Page-1684289333350.json b/grafana/dashboard/A-Ops Home Page-1684289333350.json new file mode 100644 index 0000000000000000000000000000000000000000..b9eef40c149bf7cf5d58b14bce7a43a8a1f6cd06 --- /dev/null +++ b/grafana/dashboard/A-Ops Home Page-1684289333350.json @@ -0,0 +1,3843 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "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" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 27, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "Topo Graph APP Offical" + ], + "targetBlank": false, + "title": "Topo Graph ", + "tooltip": "", + "type": "dashboards", + "url": "" + }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "IO Full Stack - Official" + ], + "targetBlank": false, + "title": "IO Full Stack", + "tooltip": "", + "type": "dashboards", + "url": "" + }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "System Performance Diagnose Offical" + ], + "targetBlank": false, + "title": "System Performance Diagnose", + "tooltip": "", + "type": "dashboards", + "url": "" + }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "App Performance Diagnose Offical" + ], + "targetBlank": false, + "title": "App Performance Diagnose", + "tooltip": "", + "type": "dashboards", + "url": "" + }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "System Flame Offical" + ], + "targetBlank": false, + "title": "System Flame", + "tooltip": "", + "type": "dashboards", + "url": "" + }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "ThreadProfiling Offical" + ], + "targetBlank": false, + "title": "ThreadProfiling", + "tooltip": "", + "type": "dashboards", + "url": "" + }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "JVM Metrics Offical" + ], + "targetBlank": false, + "title": "JVM Metrics", + "tooltip": "", + "type": "dashboards", + "url": "" + }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "System Inspection Offical" + ], + "targetBlank": false, + "title": "System Inspection", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 5, + "panels": [], + "title": "System Overview", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 2, + "x": 0, + "y": 1 + }, + "id": 2, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "exemplar": false, + "expr": "count(gala_gopher_host_value{job=~\"$instance\"})", + "format": "time_series", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "设备数量", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 2, + "y": 1 + }, + "id": 8, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "exemplar": false, + "expr": "max(gala_gopher_cpu_total_used_per{job=~\"$instance\"})", + "format": "time_series", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "CPU使用率", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 5, + "y": 1 + }, + "id": 9, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "exemplar": false, + "expr": "max(gala_gopher_mem_util{job=~\"$instance\"})", + "format": "time_series", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "内存使用率", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 8, + "y": 1 + }, + "id": 13, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "exemplar": false, + "expr": "avg(gala_gopher_disk_util{job=~\"$instance\"})", + "format": "time_series", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "磁盘使用率", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "align": "auto", + "displayMode": "auto", + "filterable": false, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Value" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "__name__" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "hostname" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "instance" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "memory_MB" + }, + "properties": [ + { + "id": "unit", + "value": "mbytes" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "job" + }, + "properties": [ + { + "id": "displayName", + "value": "machine" + }, + { + "id": "custom.align", + "value": "auto" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "cpu_num" + }, + "properties": [ + { + "id": "custom.width", + "value": 94 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "host_type" + }, + "properties": [ + { + "id": "custom.width", + "value": 106 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "machine_id" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ip_addr" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + } + ] + }, + "gridPos": { + "h": 10, + "w": 13, + "x": 11, + "y": 1 + }, + "id": 3, + "options": { + "footer": { + "enablePagination": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "exemplar": false, + "expr": "gala_gopher_host_value{job=~\"$instance\"}", + "format": "table", + "instant": false, + "interval": "1d", + "legendFormat": "__auto", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_cpu_total_used_per{job=\"$instance\"}", + "format": "table", + "hide": true, + "interval": "", + "legendFormat": "__auto", + "range": true, + "refId": "B" + } + ], + "title": "主机信息", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": { + "Time": 7, + "Value": 12, + "__name__": 8, + "cpu_num": 2, + "host_type": 1, + "hostname": 9, + "instance": 10, + "ip_addr": 6, + "job": 0, + "kversion": 4, + "machine_id": 11, + "memory_MB": 3, + "os_version": 5 + }, + "renameByName": { + "cpu_num": "cpu", + "host_type": "type", + "ip_addr": "", + "job": "machine", + "kversion": "", + "memory_MB": "memory", + "os_version": "" + } + } + }, + { + "id": "joinByField", + "options": {} + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 11, + "x": 0, + "y": 6 + }, + "id": 7, + "options": { + "displayMode": "lcd", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_cpu_total_used_per{job=~\"$instance\"})", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "CPU使用率", + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 11, + "x": 0, + "y": 11 + }, + "id": 10, + "options": { + "displayMode": "lcd", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "avg by(job) (gala_gopher_mem_util{job=~\"$instance\"})", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "内存使用率", + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "上行(-)/ 下行(+)", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 19, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 13, + "x": 11, + "y": 11 + }, + "id": 11, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "avg by(job) (gala_gopher_nic_rx_bytes{job=~\"$instance\"}) * -1", + "legendFormat": "{{job}}-rx", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "avg by(job) (gala_gopher_nic_rx_bytes{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-tx", + "range": true, + "refId": "B" + } + ], + "title": "网络流量", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 11, + "x": 0, + "y": 16 + }, + "id": 12, + "options": { + "displayMode": "lcd", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "avg by(job) (gala_gopher_disk_util{job=~\"$instance\"})", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "磁盘使用率", + "transformations": [], + "type": "bargauge" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 21 + }, + "id": 15, + "panels": [], + "title": "CPU Info", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "linear", + "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": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 22 + }, + "id": 57, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_cpu_total_used_per{job=~\"$instance\"})", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "CPU Util", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "linear", + "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": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 22 + }, + "id": 18, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_cpu_system_msec{job=~\"$instance\"}) + avg by(job) (gala_gopher_cpu_iowait_msec{job=~\"$instance\"}) + avg by(job) (gala_gopher_cpu_irq_msec{job=~\"$instance\"}) + avg by(job) (gala_gopher_cpu_softirq_msec{job=~\"$instance\"}) ", + "format": "time_series", + "hide": false, + "legendFormat": "{{job}}", + "range": true, + "refId": "A" + } + ], + "title": "内核态时间", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "linear", + "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": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 30 + }, + "id": 17, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_cpu_user_msec{job=~\"$instance\"}) + avg by(job) (gala_gopher_cpu_nice_msec{job=~\"$instance\"})", + "format": "time_series", + "hide": false, + "legendFormat": "{{job}}", + "range": true, + "refId": "A" + } + ], + "title": "用户态时间", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "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": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 30 + }, + "id": 21, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "sum by(job) (gala_gopher_cpu_rcu{job=~\"$instance\"})", + "legendFormat": "{{job}}-rcu", + "range": true, + "refId": "A" + } + ], + "title": "RCU锁软中断次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "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": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 38 + }, + "id": 24, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "sum by(job) (gala_gopher_cpu_sched{job=~\"$instance\"})", + "legendFormat": "{{job}}-rcu", + "range": true, + "refId": "A" + } + ], + "title": "调度中断次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 2, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "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": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 38 + }, + "id": 22, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "sum by(job) (gala_gopher_cpu_timer{job=~\"$instance\"})", + "hide": false, + "legendFormat": "{{job}}-timer", + "range": true, + "refId": "B" + } + ], + "title": "定时器软中断次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": -1, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "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": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 46 + }, + "id": 20, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_cpu_net_rx{job=~\"$instance\"})", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "网卡收包中断次数", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 54 + }, + "id": 26, + "panels": [], + "title": "Memory Info", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 15, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 55 + }, + "id": 27, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_mem_util{job=~\"$instance\"})", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "内存使用率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 15, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 55 + }, + "id": 29, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_mem_swap_util{job=~\"$instance\"})", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Swap使用率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "displayMode": "auto", + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "kbytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Value #A" + }, + "properties": [ + { + "id": "displayName", + "value": "mem_total" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #B" + }, + "properties": [ + { + "id": "displayName", + "value": "mem_free" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #C" + }, + "properties": [ + { + "id": "displayName", + "value": "mem_available" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #D" + }, + "properties": [ + { + "id": "displayName", + "value": "mem_util" + }, + { + "id": "custom.displayMode", + "value": "lcd-gauge" + }, + { + "id": "unit", + "value": "percent" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #E" + }, + "properties": [ + { + "id": "displayName", + "value": "swap_total" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #F" + }, + "properties": [ + { + "id": "displayName", + "value": "swap_free" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #G" + }, + "properties": [ + { + "id": "displayName", + "value": "swap_util" + }, + { + "id": "custom.displayMode", + "value": "lcd-gauge" + }, + { + "id": "unit", + "value": "percent" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #H" + }, + "properties": [ + { + "id": "displayName", + "value": "mem_buffers" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #I" + }, + "properties": [ + { + "id": "displayName", + "value": "mem_cache" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #J" + }, + "properties": [ + { + "id": "displayName", + "value": "mem_active" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #K" + }, + "properties": [ + { + "id": "displayName", + "value": "mem_inactive" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "job" + }, + "properties": [ + { + "id": "displayName", + "value": "host" + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 24, + "x": 0, + "y": 63 + }, + "id": 33, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 0, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_mem_total_kB{job=~\"$instance\"})", + "format": "table", + "hide": false, + "interval": "1d", + "legendFormat": "{{job}}-total", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_mem_free_kB{job=~\"$instance\"})", + "format": "table", + "hide": false, + "interval": "1d", + "legendFormat": "{{job}}-free", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_mem_available_kB{job=~\"$instance\"})", + "format": "table", + "hide": false, + "interval": "1d", + "legendFormat": "{{job}}-free", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_mem_util{job=~\"$instance\"})", + "format": "table", + "hide": false, + "interval": "1d", + "legendFormat": "{{job}}-mem_util", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_mem_swap_total_kB{job=~\"$instance\"})", + "format": "table", + "hide": false, + "interval": "1d", + "legendFormat": "__auto", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_mem_swap_free_kB{job=~\"$instance\"})", + "format": "table", + "hide": false, + "interval": "1d", + "legendFormat": "__auto", + "range": true, + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_mem_swap_util{job=~\"$instance\"})", + "format": "table", + "hide": false, + "interval": "1d", + "legendFormat": "__auto", + "range": true, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_mem_buffers_kB{job=~\"$instance\"})", + "format": "table", + "hide": false, + "interval": "1d", + "legendFormat": "__auto", + "range": true, + "refId": "H" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_mem_cache_kB{job=~\"$instance\"})", + "format": "table", + "hide": false, + "interval": "1d", + "legendFormat": "__auto", + "range": true, + "refId": "I" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_mem_active_kB{job=~\"$instance\"})", + "format": "table", + "hide": false, + "interval": "1d", + "legendFormat": "__auto", + "range": true, + "refId": "J" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_mem_inactive_kB{job=~\"$instance\"})", + "format": "table", + "hide": false, + "interval": "1d", + "legendFormat": "__auto", + "range": true, + "refId": "K" + } + ], + "title": "内存信息", + "transformations": [ + { + "id": "merge", + "options": {} + } + ], + "type": "table" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 74 + }, + "id": 31, + "panels": [], + "title": "Disk Info", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 15, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 75 + }, + "id": 32, + "options": { + "legend": { + "calcs": [ + "mean", + "last" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_disk_util{job=~\"$instance\"})", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "磁盘使用率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 15, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 75 + }, + "id": 37, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "mean", + "last" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_disk_rareq{job=~\"$instance\"})", + "legendFormat": "{{job}}-rareq", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_disk_wareq{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-wareq", + "range": true, + "refId": "B" + } + ], + "title": "磁盘饱和度", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 15, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "binBps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 83 + }, + "id": 35, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_disk_rspeed{job=~\"$instance\"})", + "legendFormat": "{{job}}-rspeed", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_disk_wspeed{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-wspeed", + "range": true, + "refId": "B" + } + ], + "title": "磁盘读写速率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 15, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 83 + }, + "id": 36, + "interval": "5", + "options": { + "legend": { + "calcs": [ + "mean", + "last" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_disk_r_await{job=~\"$instance\"})", + "legendFormat": "{{job}}-rawait", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_disk_w_await{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-wawait", + "range": true, + "refId": "B" + } + ], + "title": "磁盘读写响应时间", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "displayMode": "auto", + "inspect": false + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Util" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "basic" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "host" + }, + "properties": [ + { + "id": "custom.width", + "value": 226 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "disk_name" + }, + "properties": [ + { + "id": "custom.width", + "value": 226 + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 12, + "x": 0, + "y": 91 + }, + "id": 34, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 0, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "Util" + } + ] + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg by(job, disk_name) (gala_gopher_disk_util{job=~\"$instance\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "磁盘信息", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": { + "Time": 2, + "Value": 3, + "disk_name": 1, + "job": 0 + }, + "renameByName": { + "Value": "Util", + "job": "host" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 15, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 12, + "y": 91 + }, + "id": 38, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_disk_aqu{job=~\"$instance\"})", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "平均队列深度", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 15, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 96 + }, + "id": 39, + "options": { + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(job) (gala_gopher_block_latency_req_max{job=~\"$instance\"})", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Block 时延", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 102 + }, + "id": 41, + "panels": [], + "title": "Network Info", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 103 + }, + "id": 43, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_nic_rx_bytes{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-rx", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_nic_tx_bytes{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-tx", + "range": true, + "refId": "B" + } + ], + "title": "Nic -- Rx/Tx Bytes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 103 + }, + "id": 45, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_nic_rx_errs{job=~\"$instance\"}) * 1 + sum by(job) (gala_gopher_nic_rx_dropped{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-rx_err_bytes", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_nic_tx_errs{job=~\"$instance\"}) * 1 + sum by(job) (gala_gopher_nic_tx_dropped{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-tx_err_bytes", + "range": true, + "refId": "B" + } + ], + "title": "Nic -- Rx/Tx Err Bytes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 111 + }, + "id": 47, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_syn_srtt{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-syn_srtt", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_srtt{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-srtt", + "range": true, + "refId": "B" + } + ], + "title": "Tcp -- RTT", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 111 + }, + "id": 49, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_notsent_bytes{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-tcp_nosent_bytes", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_notack_bytes{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-tcp_notack_bytes", + "range": true, + "refId": "B" + } + ], + "title": "Tcp -- Unprocessed Bytes ", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 119 + }, + "id": 51, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_retran_packets{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-retran_packets", + "range": true, + "refId": "A" + } + ], + "title": "Tcp -- Retran Packets", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 119 + }, + "id": 53, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_backlog_drops{job=~\"$instance\"}) * 1 + sum by(job) (gala_gopher_tcp_link_sk_drops{job=~\"$instance\"}) * 1 + sum by(job) (gala_gopher_tcp_link_lost_out{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-drop_packets", + "range": true, + "refId": "A" + } + ], + "title": "TCP -- Drop Packets", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 127 + }, + "id": 55, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_tcp_oom{job=~\"$instance\"}) * 1 ", + "hide": false, + "legendFormat": "{{job}}-oom", + "range": true, + "refId": "A" + } + ], + "title": "TCP -- OOM", + "type": "timeseries" + } + ], + "refresh": false, + "schemaVersion": 37, + "style": "dark", + "tags": [ + "A-Ops Home Page" + ], + "templating": { + "list": [ + { + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "definition": "label_values(gala_gopher_host_value{}, job)", + "hide": 0, + "includeAll": true, + "multi": true, + "name": "instance", + "options": [], + "query": { + "query": "label_values(gala_gopher_host_value{}, job)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "/(host-10.137.18.11|vm8001-10.137.18.11|vm8002-10.137.18.11|vm8003-10.137.18.11)$/", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "A-Ops Home Page", + "uid": "ohGo-o2Vz", + "version": 39, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/App Performance Diagnose-1684289340987.json b/grafana/dashboard/App Performance Diagnose-1684289340987.json new file mode 100644 index 0000000000000000000000000000000000000000..641f43d9cefa11207ad1c251aebd48d85ae66b88 --- /dev/null +++ b/grafana/dashboard/App Performance Diagnose-1684289340987.json @@ -0,0 +1,3202 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "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" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 62, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "A-Ops Home Page" + ], + "targetBlank": false, + "title": "A-Ops Home Page", + "tooltip": "", + "type": "dashboards", + "url": "" + }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "System Flame - Redis" + ], + "targetBlank": false, + "title": "System Flame", + "tooltip": "", + "type": "dashboards", + "url": "" + }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "Topo Graph - Host - Official" + ], + "targetBlank": false, + "title": "Topo Graph - Host", + "tooltip": "", + "type": "dashboards", + "url": "" + }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "Topo Graph - App - Official" + ], + "targetBlank": false, + "title": "Topo Graph - App", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 9, + "panels": [], + "title": "应用性能观测", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 1 + }, + "id": 2, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "avg by(app, job, server_ip, server_port, tgid, method) (gala_gopher_sli_rtt_nsec{job=~\"$instance\", app=~\"REDIS\", client_port!~\"3742\", client_port!~\"3746\", method!=\"REP\"})", + "hide": false, + "legendFormat": "__auto", + "range": true, + "refId": "B" + } + ], + "title": "Redis应用性能(Sli)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "hue", + "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" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 1 + }, + "id": 48, + "options": { + "legend": { + "calcs": [ + "lastNotNull", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(app, job, server_ip, server_port, tgid) (gala_gopher_sli_tps{job=~\"$instance\"})", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "openGauss应用性能(Tps)", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 10 + }, + "id": 50, + "panels": [], + "title": "Network Metrics", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 11 + }, + "id": 32, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_syn_srtt{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-syn_srtt", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_srtt{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-srtt", + "range": true, + "refId": "B" + } + ], + "title": "TCP -- RTT", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 11 + }, + "id": 38, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_backlog_drops{job=~\"$instance\"}) * 1 + sum by(job) (gala_gopher_tcp_link_sk_drops{job=~\"$instance\"}) * 1 + sum by(job) (gala_gopher_tcp_link_lost_out{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-drop_packets", + "range": true, + "refId": "A" + } + ], + "title": "TCP -- Drop Packets", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 20 + }, + "id": 40, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_tcp_oom{job=~\"$instance\"}) * 1 ", + "hide": false, + "legendFormat": "{{job}}-oom", + "range": true, + "refId": "A" + } + ], + "title": "TCP -- OOM", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 20 + }, + "id": 34, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_notsent_bytes{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-tcp_nosent_bytes", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_notack_bytes{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-tcp_notack_bytes", + "range": true, + "refId": "B" + } + ], + "title": "Tcp -- Unprocessed Bytes ", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 29 + }, + "id": 36, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_retran_packets{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-retran_packets", + "range": true, + "refId": "A" + } + ], + "title": "Tcp -- Retran Packets", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 29 + }, + "id": 63, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_lost_out{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-lost", + "range": true, + "refId": "A" + } + ], + "title": "Tcp -- Lost Segs", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 38 + }, + "id": 56, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_nic_rx_errs{job=~\"$instance\"}) * 1 + sum by(job) (gala_gopher_nic_rx_dropped{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-rx_err_bytes", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_nic_tx_errs{job=~\"$instance\"}) * 1 + sum by(job) (gala_gopher_nic_tx_dropped{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-tx_err_bytes", + "range": true, + "refId": "B" + } + ], + "title": "Nic -- Rx/Tx Err Bytes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 38 + }, + "id": 54, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_nic_rx_bytes{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-rx", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_nic_tx_bytes{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-tx", + "range": true, + "refId": "B" + } + ], + "title": "Nic -- Rx/Tx Bytes", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 47 + }, + "id": 52, + "panels": [], + "title": "Proc Metrics", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": [ + "backend2-71.76.55.110-java-2703546-write" + ], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": false + } + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 48 + }, + "id": 20, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm, tgid) (gala_gopher_proc_write_bytes{job=~\"$instance\", comm!=\"python3\", comm!=\"gala-gopher\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-{{comm}}-{{tgid}}-write", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm, tgid) (gala_gopher_proc_read_bytes{job=~\"$instance\", comm!=\"python3\", comm!=\"gala-gopher\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-{{comm}}-{{tgid}}-read", + "range": true, + "refId": "B" + } + ], + "title": "PROC -- Write/Read Bytes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 48 + }, + "id": 22, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_less_4k_io_write{job=~\"$instance\", comm!=\"python3\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-{{comm}}-write(<4k)", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_greater_4k_io_write{job=~\"$instance\", comm!=\"python3\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-{{comm}}-write(>4k)", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_less_4k_io_read{job=~\"$instance\", comm!=\"python3\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-{{comm}}-read(<4k)", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_greate_4k_io_read{job=~\"$instance\", comm!=\"python3\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-{{comm}}-read(>4k)", + "range": true, + "refId": "D" + } + ], + "title": "Proc -- Number of I/O Operations", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 57 + }, + "id": 59, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_bio_err_count{job=~\"$instance\", comm!=\"python3\"})", + "hide": false, + "legendFormat": "{{job}}-{{comm}}", + "range": true, + "refId": "B" + } + ], + "title": "Proc -- Bio Error", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 57 + }, + "id": 12, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_bio_latency{job=~\"$instance\", comm!=\"python3\"})", + "hide": false, + "legendFormat": "{{job}}-{{comm}}", + "range": true, + "refId": "B" + } + ], + "title": "Proc -- Bio Latency", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 66 + }, + "id": 60, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_hang_count{job=~\"$instance\", comm!=\"python3\"})", + "hide": false, + "legendFormat": "{{job}}-{{comm}}", + "range": true, + "refId": "A" + } + ], + "title": "Proc -- I/O Hang Count", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 66 + }, + "id": 61, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_syscall_failed{job=~\"$instance\", comm!=\"python3\"})", + "hide": false, + "legendFormat": "{{job}}-{{comm}}", + "range": true, + "refId": "A" + } + ], + "title": "Proc --Syscall Failed", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 75 + }, + "id": 58, + "panels": [], + "title": "Block IO Metrics", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 76 + }, + "id": 24, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_block_read_bytes{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-write", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_block_read_bytes{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-read", + "range": true, + "refId": "B" + } + ], + "title": "Block -- Write/Read Bytes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 76 + }, + "id": 65, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_block_latency_req_max{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-req", + "range": true, + "refId": "A" + } + ], + "title": "Block -- Latency Req Max", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "r3WqfVA4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 85 + }, + "id": 67, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "r3WqfVA4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_block_latency_device_max{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-device", + "range": true, + "refId": "B" + } + ], + "title": "Block -- Latency Device Max", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 85 + }, + "id": 69, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_block_latency_driver_max{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-driver", + "range": true, + "refId": "C" + } + ], + "title": "Block -- Latency Driver Max", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 94 + }, + "id": 11, + "panels": [], + "title": "故障发现与定位", + "type": "row" + }, + { + "datasource": { + "type": "elasticsearch", + "uid": "vJz6alKVz" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 52, + "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": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "app" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "vm02-10.109.56.215 app" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 95 + }, + "id": 4, + "options": { + "legend": { + "calcs": [ + "last", + "sum" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "alias": "", + "bucketAggs": [ + { + "field": "Resource.labels.job.keyword", + "id": "2", + "settings": { + "min_doc_count": "1", + "order": "desc", + "orderBy": "_term", + "size": "10" + }, + "type": "terms" + }, + { + "field": "keywords.keyword", + "id": "3", + "settings": { + "min_doc_count": "1", + "order": "desc", + "orderBy": "_term", + "size": "10" + }, + "type": "terms" + }, + { + "field": "@timestamp", + "id": "4", + "settings": { + "interval": "auto", + "min_doc_count": "0", + "timeZone": "utc", + "trimEdges": "0" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "elasticsearch", + "uid": "vJz6alKVz" + }, + "metrics": [ + { + "id": "1", + "type": "count" + } + ], + "query": "Attributes.event_type.keyword:app AND Resource.labels.job.keyword:$instance", + "refId": "A", + "timeField": "@timestamp" + } + ], + "title": "故障发现(数量)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "r3WqfVA4z" + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 95 + }, + "id": 28, + "options": { + "alertInstanceLabelFilter": "", + "alertName": "", + "dashboardAlerts": false, + "folder": { + "id": 46, + "title": "openEuler A-Ops" + }, + "groupBy": [], + "groupMode": "default", + "maxItems": 20, + "sortOrder": 1, + "stateFilter": { + "error": true, + "firing": true, + "noData": false, + "normal": false, + "pending": true + }, + "viewMode": "list" + }, + "title": "告警", + "type": "alertlist" + }, + { + "datasource": { + "type": "elasticsearch", + "uid": "vJz6alKVz" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "displayMode": "auto", + "inspect": false + }, + "mappings": [ + { + "options": { + "sli tps 异常": { + "color": "red", + "index": 4, + "text": "sli tps 异常" + } + }, + "type": "value" + }, + { + "options": { + "pattern": "/^.*(disk\\w+).*$/g", + "result": { + "color": "yellow", + "index": 0, + "text": "$1" + } + }, + "type": "regex" + }, + { + "options": { + "pattern": "/^.*(block\\w+).*$/g", + "result": { + "color": "yellow", + "index": 1, + "text": "$1" + } + }, + "type": "regex" + }, + { + "options": { + "pattern": "/^.*(proc\\w+).*$/g", + "result": { + "color": "yellow", + "index": 2, + "text": "$1" + } + }, + "type": "regex" + }, + { + "options": { + "pattern": "/^.*(tcp_link\\w+).*$/g", + "result": { + "color": "yellow", + "index": 3, + "text": "$1" + } + }, + "type": "regex" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "@timestamp" + }, + "properties": [ + { + "id": "custom.width", + "value": 143 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "host" + }, + "properties": [ + { + "id": "custom.width", + "value": 168 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "entity_id" + }, + "properties": [ + { + "id": "custom.width", + "value": 456 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "event_id" + }, + "properties": [ + { + "id": "custom.width", + "value": 690 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "description" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "color-text" + }, + { + "id": "custom.width", + "value": 164 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "EventId" + }, + "properties": [ + { + "id": "custom.width", + "value": 582 + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 103 + }, + "id": 5, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 2, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "@timestamp" + } + ] + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "alias": "", + "bucketAggs": [], + "datasource": { + "type": "elasticsearch", + "uid": "vJz6alKVz" + }, + "metrics": [ + { + "id": "1", + "settings": { + "size": "500" + }, + "type": "raw_data" + } + ], + "query": "Attributes.event_type.keyword:app AND Resource.labels.job.keyword:$instance", + "refId": "A", + "timeField": "@timestamp" + } + ], + "title": "故障发现", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "@version": true, + "Attributes.cause_metric.description": true, + "Attributes.cause_metric.labels.Blocks": true, + "Attributes.cause_metric.labels.Fsname": true, + "Attributes.cause_metric.labels.Fstype": true, + "Attributes.cause_metric.labels.Inodes": true, + "Attributes.cause_metric.labels.MountOn": true, + "Attributes.cause_metric.labels.blk_name": true, + "Attributes.cause_metric.labels.comm": true, + "Attributes.cause_metric.labels.disk_name": true, + "Attributes.cause_metric.labels.first_minor": true, + "Attributes.cause_metric.labels.instance": true, + "Attributes.cause_metric.labels.job": true, + "Attributes.cause_metric.labels.machine_id": true, + "Attributes.cause_metric.labels.major": true, + "Attributes.cause_metric.labels.origin": true, + "Attributes.cause_metric.labels.tgid": true, + "Attributes.cause_metric.metric": true, + "Attributes.cause_metric.score": true, + "Attributes.entity_id": true, + "Attributes.event_source": true, + "Attributes.event_type": true, + "Attributes.keywords": true, + "Body": true, + "Resource.cause_metrics": true, + "Resource.labels.app": true, + "Resource.labels.client_ip": true, + "Resource.labels.client_port": true, + "Resource.labels.ins_id": true, + "Resource.labels.instance": true, + "Resource.labels.job": true, + "Resource.labels.machine_id": true, + "Resource.labels.method": true, + "Resource.labels.server_ip": true, + "Resource.labels.server_port": true, + "Resource.labels.tgid": true, + "Resource.metric": true, + "Resource.score": true, + "SeverityNumber": true, + "SeverityText": true, + "Timestamp": true, + "_id": true, + "_index": true, + "_type": true, + "event.original": true, + "event_id": true, + "highlight": true, + "keywords": true, + "message": true, + "sort": true + }, + "indexByName": { + "@timestamp": 0, + "@version": 5, + "Attributes.cause_metric.description": 6, + "Attributes.cause_metric.labels.comm": 7, + "Attributes.cause_metric.labels.instance": 8, + "Attributes.cause_metric.labels.job": 1, + "Attributes.cause_metric.labels.machine_id": 9, + "Attributes.cause_metric.labels.origin": 10, + "Attributes.cause_metric.labels.tgid": 11, + "Attributes.cause_metric.metric": 12, + "Attributes.cause_metric.score": 13, + "Attributes.entity_id": 3, + "Attributes.event_id": 4, + "Attributes.event_source": 14, + "Attributes.event_type": 15, + "Attributes.keywords": 16, + "Body": 17, + "Resource.cause_metrics": 18, + "Resource.description": 2, + "Resource.labels.app": 19, + "Resource.labels.client_ip": 20, + "Resource.labels.client_port": 21, + "Resource.labels.ins_id": 22, + "Resource.labels.instance": 23, + "Resource.labels.job": 24, + "Resource.labels.machine_id": 25, + "Resource.labels.method": 26, + "Resource.labels.server_ip": 27, + "Resource.labels.server_port": 28, + "Resource.labels.tgid": 29, + "Resource.metric": 30, + "Resource.score": 31, + "SeverityNumber": 32, + "SeverityText": 33, + "Timestamp": 34, + "_id": 35, + "_index": 36, + "_type": 37, + "event.original": 38, + "event_id": 39, + "highlight": 40, + "keywords": 41, + "message": 42, + "sort": 43 + }, + "renameByName": { + "@version": "", + "Attributes.cause_metric.description": "", + "Attributes.cause_metric.labels.job": "host", + "Attributes.entity_id": "entity_id", + "Attributes.event_id": "EventId", + "Resource.description": "description", + "Resource.labels.app": "app", + "Resource.labels.client_ip": "" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "elasticsearch", + "uid": "AR7pYlF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "displayMode": "auto", + "inspect": false + }, + "mappings": [ + { + "options": { + "sli tps 异常": { + "color": "red", + "index": 4, + "text": "sli tps 异常" + } + }, + "type": "value" + }, + { + "options": { + "pattern": "/^.*(disk\\w+).*$/g", + "result": { + "color": "yellow", + "index": 0, + "text": "$1" + } + }, + "type": "regex" + }, + { + "options": { + "pattern": "/^.*(block\\w+).*$/g", + "result": { + "color": "yellow", + "index": 1, + "text": "$1" + } + }, + "type": "regex" + }, + { + "options": { + "pattern": "/^.*(proc\\w+).*$/g", + "result": { + "color": "yellow", + "index": 2, + "text": "$1" + } + }, + "type": "regex" + }, + { + "options": { + "pattern": "/^.*(tcp_link\\w+).*$/g", + "result": { + "color": "yellow", + "index": 3, + "text": "$1" + } + }, + "type": "regex" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Root Cause" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "color-text" + }, + { + "id": "links", + "value": [ + { + "targetBlank": true, + "title": "故障传播详情", + "url": "http://71.76.55.210:3000/d/1mG4JNc4e/topo-graph-app-diagnose?orgId=1&from=${__data.fields.TimestampShift}&to=${__data.fields.Timestamp}&var-EventId=${__data.fields.EventId}" + } + ] + }, + { + "id": "custom.width", + "value": 1030 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "@timestamp" + }, + "properties": [ + { + "id": "custom.width", + "value": 165 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "host" + }, + "properties": [ + { + "id": "custom.width", + "value": 178 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "event_id" + }, + "properties": [ + { + "id": "custom.width", + "value": 579 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "desc" + }, + "properties": [ + { + "id": "custom.width", + "value": 845 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "desc" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "color-text" + }, + { + "id": "links", + "value": [ + { + "targetBlank": true, + "title": "故障传播详情", + "url": "http://10.137.16.161:3000/d/1mG4JNc4e/topo-graph-app-diagnose?orgId=1&from=${__data.fields.TimestampShift}&to=${__data.fields.Timestamp}&var-EventId=${__data.fields.EventId}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 103 + }, + "id": 46, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 2, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "@timestamp" + } + ] + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "alias": "", + "bucketAggs": [], + "datasource": { + "type": "elasticsearch", + "uid": "AR7pYlF4z" + }, + "metrics": [ + { + "id": "1", + "settings": { + "size": "500" + }, + "type": "raw_data" + } + ], + "query": "Resource.abnormal_kpi.metric_labels.job.keyword:$instance", + "refId": "A", + "timeField": "@timestamp" + } + ], + "title": "根因定位", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "@version": true, + "Body": true, + "Resource.abnormal_kpi.desc": true, + "Resource.abnormal_kpi.entity_id": true, + "Resource.abnormal_kpi.metric_id": true, + "Resource.abnormal_kpi.metric_labels.app": true, + "Resource.abnormal_kpi.metric_labels.client_ip": true, + "Resource.abnormal_kpi.metric_labels.client_port": true, + "Resource.abnormal_kpi.metric_labels.ins_id": true, + "Resource.abnormal_kpi.metric_labels.instance": true, + "Resource.abnormal_kpi.metric_labels.job": true, + "Resource.abnormal_kpi.metric_labels.machine_id": true, + "Resource.abnormal_kpi.metric_labels.method": true, + "Resource.abnormal_kpi.metric_labels.server_ip": true, + "Resource.abnormal_kpi.metric_labels.server_port": true, + "Resource.abnormal_kpi.metric_labels.tgid": true, + "Resource.abnormal_kpi.timestamp": true, + "Resource.cause_metrics": true, + "Resource.desc": false, + "Resource.top1": true, + "Resource.top2": true, + "Resource.top3": true, + "SeverityNumber": true, + "SeverityText": true, + "Timestamp": false, + "_id": true, + "_index": true, + "_type": true, + "event.original": true, + "event_id": true, + "highlight": true, + "keywords": true, + "message": true, + "sort": true + }, + "indexByName": { + "@timestamp": 0, + "@version": 4, + "Attributes.event_id": 2, + "Body": 5, + "Resource.abnormal_kpi.desc": 6, + "Resource.abnormal_kpi.entity_id": 7, + "Resource.abnormal_kpi.metric_id": 8, + "Resource.abnormal_kpi.metric_labels.app": 9, + "Resource.abnormal_kpi.metric_labels.client_ip": 10, + "Resource.abnormal_kpi.metric_labels.client_port": 11, + "Resource.abnormal_kpi.metric_labels.ins_id": 12, + "Resource.abnormal_kpi.metric_labels.instance": 13, + "Resource.abnormal_kpi.metric_labels.job": 3, + "Resource.abnormal_kpi.metric_labels.machine_id": 14, + "Resource.abnormal_kpi.metric_labels.method": 15, + "Resource.abnormal_kpi.metric_labels.server_ip": 16, + "Resource.abnormal_kpi.metric_labels.server_port": 17, + "Resource.abnormal_kpi.metric_labels.tgid": 18, + "Resource.abnormal_kpi.timestamp": 19, + "Resource.cause_metrics": 20, + "Resource.desc": 1, + "Resource.top1": 21, + "Resource.top2": 22, + "SeverityNumber": 23, + "SeverityText": 24, + "Timestamp": 25, + "_id": 26, + "_index": 27, + "_type": 28, + "event.original": 29, + "event_id": 30, + "highlight": 31, + "keywords": 32, + "message": 33, + "sort": 34 + }, + "renameByName": { + "Attributes.event_id": "EventId", + "Resource.abnormal_kpi.metric_labels.job": "host", + "Resource.desc": "desc", + "Resource.top2": "" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "TimestampShift", + "binary": { + "left": "Timestamp", + "operator": "-", + "reducer": "sum", + "right": "120000" + }, + "mode": "binary", + "reduce": { + "include": [ + "Timestamp" + ], + "reducer": "sum" + } + } + } + ], + "type": "table" + } + ], + "refresh": "10s", + "schemaVersion": 37, + "style": "dark", + "tags": [ + "App Performance Diagnose Offical" + ], + "templating": { + "list": [ + { + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "definition": "label_values(gala_gopher_host_value{}, job)", + "hide": 0, + "includeAll": true, + "multi": true, + "name": "instance", + "options": [], + "query": { + "query": "label_values(gala_gopher_host_value{}, job)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "filters": [], + "hide": 0, + "label": "", + "name": "filter", + "skipUrlSync": false, + "type": "adhoc" + } + ] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "App Performance Diagnose", + "uid": "6Vc0aThVz", + "version": 10, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/IO Full Stack - Block and Proc Metrics-1684289354249.json b/grafana/dashboard/IO Full Stack - Block and Proc Metrics-1684289354249.json new file mode 100644 index 0000000000000000000000000000000000000000..3e0129e7efeb6c138bc2317110c36ee261151a21 --- /dev/null +++ b/grafana/dashboard/IO Full Stack - Block and Proc Metrics-1684289354249.json @@ -0,0 +1,1151 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "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" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 22, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "A-Ops Home Page" + ], + "targetBlank": false, + "title": "A-Ops Home Page", + "tooltip": "", + "type": "dashboards", + "url": "" + }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "IO Full Stack - Official" + ], + "targetBlank": false, + "title": "IO Full Stack", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 14, + "panels": [], + "title": "主机数据", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 1 + }, + "id": 6, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_block_read_bytes{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-write", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_block_read_bytes{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-read", + "range": true, + "refId": "B" + } + ], + "title": "Block -- Write/Read Bytes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 1 + }, + "id": 8, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_block_latency_req_max{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-req", + "range": true, + "refId": "A" + } + ], + "title": "Block -- Latency Req Max", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 9 + }, + "id": 20, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_block_latency_device_max{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-device", + "range": true, + "refId": "B" + } + ], + "title": "Block -- Latency Device Max", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 9 + }, + "id": 18, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_block_latency_driver_max{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-driver", + "range": true, + "refId": "C" + } + ], + "title": "Block -- Latency Driver Max", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 17 + }, + "id": 16, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_less_4k_io_read{job=~\"$instance\", comm!=\"python3\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-{{comm}}-read", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_less_4k_io_write{job=~\"$instance\", comm!=\"python3\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-{{comm}}-write", + "range": true, + "refId": "B" + } + ], + "title": "Proc -- number of io(less than 4k) operations", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 17 + }, + "id": 22, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_greater_4k_io_read{job=~\"$instance\", comm!=\"python3\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-{{comm}}-read", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_greater_4k_io_write{job=~\"$instance\", comm!=\"python\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-{{comm}}-write", + "range": true, + "refId": "B" + } + ], + "title": "Proc -- number of io(greater than 4k) operations", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 25 + }, + "id": 24, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_bio_latency{job=~\"$instance\", comm!=\"python\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-{{comm}}-bio_latency", + "range": true, + "refId": "A" + } + ], + "title": "Proc -- Bio Latency", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 25 + }, + "id": 26, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_bio_err_count{job=~\"$instance\", comm != \"python\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-{{comm}}-bio_err_count", + "range": true, + "refId": "A" + } + ], + "title": "Proc -- Bio Err Count", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 33 + }, + "id": 28, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "sum by(job, comm) (gala_gopher_proc_rchar_bytes{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-{{comm}}-read", + "range": true, + "refId": "A" + } + ], + "title": "Proc -- Read", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 33 + }, + "id": 30, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "sum by(job, comm) (gala_gopher_proc_wchar_bytes{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-{{comm}}-read", + "range": true, + "refId": "A" + } + ], + "title": "Proc -- Write", + "type": "timeseries" + } + ], + "schemaVersion": 37, + "style": "dark", + "tags": [ + "IO Full Stack - Block and Proc Metrics - Official" + ], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "definition": "label_values(gala_gopher_host_value{}, job)", + "hide": 0, + "includeAll": true, + "multi": true, + "name": "instance", + "options": [], + "query": { + "query": "label_values(gala_gopher_host_value{}, job)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "/(host-10.137.18.11|vm8001-10.137.18.11|vm8002-10.137.18.11|vm8003-10.137.18.11)$/", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "IO Full Stack - Block and Proc Metrics", + "uid": "DvEKm72Vk", + "version": 45, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/IO Full Stack - Tcp Metrics-1684289362212.json b/grafana/dashboard/IO Full Stack - Tcp Metrics-1684289362212.json new file mode 100644 index 0000000000000000000000000000000000000000..46fc981b12126890dfa7dfad8570e206fecf01cc --- /dev/null +++ b/grafana/dashboard/IO Full Stack - Tcp Metrics-1684289362212.json @@ -0,0 +1,431 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "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" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 47, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "A-Ops Home Page" + ], + "targetBlank": false, + "title": "A-Ops Home Page", + "tooltip": "", + "type": "dashboards", + "url": "" + }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "IO Full Stack - Official" + ], + "targetBlank": false, + "title": "IO Full Stack", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 14, + "panels": [], + "title": "主机数据", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 1 + }, + "id": 6, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_nic_rx_bytes{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-rx", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_nic_tx_bytes{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-tx", + "range": true, + "refId": "B" + } + ], + "title": "Nic -- Rx/Tx Bytes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 1 + }, + "id": 8, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_lost_out{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-lost", + "range": true, + "refId": "A" + } + ], + "title": "Tcp -- Lost Segs", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 9 + }, + "id": 20, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_sacked_out{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-sacked_out", + "range": true, + "refId": "B" + } + ], + "title": "Tcp -- Sacked Out", + "type": "timeseries" + } + ], + "schemaVersion": 37, + "style": "dark", + "tags": [ + "IO Full Stack - Tcp Metrics" + ], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "definition": "label_values(gala_gopher_host_value{}, job)", + "hide": 0, + "includeAll": true, + "multi": true, + "name": "instance", + "options": [], + "query": { + "query": "label_values(gala_gopher_host_value{}, job)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "IO Full Stack - Tcp Metrics", + "uid": "DEPeG724e", + "version": 3, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/IO Full Stack-1684289347450.json b/grafana/dashboard/IO Full Stack-1684289347450.json new file mode 100644 index 0000000000000000000000000000000000000000..31fb7ee712f7f0de33e509148fce5710fa8e2821 --- /dev/null +++ b/grafana/dashboard/IO Full Stack-1684289347450.json @@ -0,0 +1,289 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "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" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 33, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "A-Ops Home Page" + ], + "targetBlank": false, + "title": "A-Ops Home Page", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 12, + "panels": [], + "title": "主机拓扑", + "type": "row" + }, + { + "datasource": { + "type": "elasticsearch", + "uid": "57b5IjF4z" + }, + "gridPos": { + "h": 24, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 4, + "options": { + "appPerfDiagnoseUrl": "", + "dataMapping": { + "aggregationType": "service", + "baselineRtUpper": "threshold", + "errorRateColumn": "error-rate", + "errorRateOutgoingColumn": "error-rate-out", + "extOrigin": "external_origin", + "extTarget": "external_target", + "requestRateColumn": "request-rate", + "requestRateOutgoingColumn": "request-rate-out", + "responseTimeColumn": "response-time", + "responseTimeOutgoingColumn": "response-time-out", + "showDummyData": false, + "sourceColumn": "origin_service", + "targetColumn": "target_service", + "type": "type" + }, + "drillDownLink": "", + "externalIcons": [ + { + "filename": "web", + "pattern": "web" + }, + { + "filename": "message", + "pattern": "jms" + }, + { + "filename": "database", + "pattern": "jdbc" + }, + { + "filename": "http", + "pattern": "http" + } + ], + "filterEmptyConnections": true, + "flameGraphUrl": "http://10.137.16.161:3000/d/slaOE024k/system-flame-redis?orgId=1&var-instance=All&var-machine_id=", + "graphSourceUrl": "", + "icons": [ + { + "filename": "java", + "pattern": "java" + }, + { + "filename": "star_trek", + "pattern": "spok|star trek" + }, + { + "filename": "tcp", + "pattern": "tcp_link" + }, + { + "filename": "app", + "pattern": "appinstance" + }, + { + "filename": "block", + "pattern": "block" + }, + { + "filename": "database", + "pattern": "gaussdb_proc" + }, + { + "filename": "thread", + "pattern": "thread" + }, + { + "filename": "process", + "pattern": "proc" + }, + { + "filename": "disk", + "pattern": "disk" + }, + { + "filename": "vm", + "pattern": "vm" + }, + { + "filename": "pm", + "pattern": "computer" + }, + { + "filename": "ceph", + "pattern": "ceph" + }, + { + "filename": "pm", + "pattern": "host" + } + ], + "ioStackBlockAndProcMetricsUrl": "http://10.137.16.161:3000/d/DvEKm72Vk/io-full-stack-block-and-proc-metrics?orgId=1&var-instance=", + "ioStackTcpMetricsUrl": "http://10.137.16.161:3000/d/DEPeG724e/io-full-stack-tcp-metrics?orgId=1&var-instance=", + "showAppPerfDiagnose": false, + "showBaselines": false, + "showConnectionStats": true, + "showDebugInformation": false, + "showFlameGraph": true, + "showIOStackData": true, + "showSourceGraph": false, + "showSysPerfDiagnose": false, + "style": { + "dangerColor": "rgb(196, 22, 42)", + "healthyColor": "rgb(87, 148, 242)", + "noDataColor": "rgb(123, 123, 138)" + }, + "sumTimings": true, + "systemPerfDiagnoseUrl": "", + "timeFormat": "m" + }, + "pluginVersion": "4.0.2", + "targets": [ + { + "alias": "", + "bucketAggs": [ + { + "field": "timestamp", + "id": "2", + "settings": { + "interval": "auto" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "elasticsearch", + "uid": "57b5IjF4z" + }, + "metrics": [ + { + "id": "1", + "type": "logs" + } + ], + "query": "(src_type.keyword:host AND !src_comm:qemu AND !dst_comm:qemu AND !edge_type:connect) OR (src_comm:vhost AND !dst_type.keyword:appinstance)", + "refId": "A", + "timeField": "timestamp" + }, + { + "alias": "", + "bucketAggs": [ + { + "field": "timestamp", + "id": "2", + "settings": { + "interval": "auto" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "elasticsearch", + "uid": "57b5IjF4z" + }, + "hide": true, + "metrics": [ + { + "id": "1", + "type": "logs" + } + ], + "query": "(src_type.keyword:host AND dst_type.keyword:host) OR src_type.keyword:proc", + "refId": "B", + "timeField": "timestamp" + }, + { + "alias": "", + "bucketAggs": [ + { + "field": "timestamp", + "id": "2", + "settings": { + "interval": "auto" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "elasticsearch", + "uid": "57b5IjF4z" + }, + "hide": false, + "metrics": [ + { + "id": "1", + "type": "count" + } + ], + "query": "", + "refId": "C", + "timeField": "timestamp" + } + ], + "title": "IO 拓扑", + "type": "aops-sdg-panel" + } + ], + "schemaVersion": 37, + "style": "dark", + "tags": [ + "IO Full Stack - Official" + ], + "templating": { + "list": [] + }, + "time": { + "from": "now-15m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "IO Full Stack", + "uid": "fGCDWAh4z", + "version": 13, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/JVM Metrics-1684289369017.json b/grafana/dashboard/JVM Metrics-1684289369017.json new file mode 100644 index 0000000000000000000000000000000000000000..a2846dd4a5965316b7087f3b337547428966fdf8 --- /dev/null +++ b/grafana/dashboard/JVM Metrics-1684289369017.json @@ -0,0 +1,2153 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "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" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 59, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "A-Ops Home Page" + ], + "targetBlank": false, + "title": "A-Ops Home Page", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 39, + "panels": [], + "title": "JVM Overview", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 3, + "x": 0, + "y": 1 + }, + "id": 33, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "count(gala_gopher_jvm_info{job=~\"$instance\", tgid=~\"$tgid\"})", + "format": "table", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "JVM 进程数量", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [] + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 6, + "x": 3, + "y": 1 + }, + "id": 37, + "options": { + "displayLabels": [ + "value" + ], + "legend": { + "displayMode": "list", + "placement": "right", + "showLegend": true, + "values": [] + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "sum by(tgid) (gala_gopher_jvm_memory_bytes_used{job=~\"$instance\", tgid=~\"$tgid\"}) / 1000000000", + "legendFormat": "Process - {{tgid}}", + "range": true, + "refId": "A" + } + ], + "title": "JVM 内存占用(GB)", + "transformations": [], + "type": "piechart" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "align": "center", + "displayMode": "auto", + "filterable": false, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "tgid" + }, + "properties": [ + { + "id": "custom.width", + "value": 86 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "machine" + }, + "properties": [ + { + "id": "custom.width", + "value": 117 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "machine_id" + }, + "properties": [ + { + "id": "custom.width", + "value": 293 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "vendor" + }, + "properties": [ + { + "id": "custom.width", + "value": 236 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "runtime" + }, + "properties": [ + { + "id": "custom.width", + "value": 205 + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 15, + "x": 9, + "y": 1 + }, + "id": 35, + "options": { + "footer": { + "enablePagination": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 0, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "exemplar": false, + "expr": "gala_gopher_jvm_info{job=~\"$instance\", tgid=~\"$tgid\"}", + "format": "table", + "instant": false, + "interval": "", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "JVM 详细信息", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Value": true, + "__name__": true, + "instance": true + }, + "indexByName": { + "Time": 0, + "Value": 9, + "__name__": 1, + "instance": 2, + "job": 3, + "machine_id": 4, + "runtime": 6, + "tgid": 5, + "vendor": 7, + "version": 8 + }, + "renameByName": { + "job": "machine" + } + } + }, + { + "id": "joinByField", + "options": { + "mode": "outer" + } + }, + { + "id": "groupBy", + "options": { + "fields": { + "machine": { + "aggregations": [], + "operation": "groupby" + }, + "machine_id": { + "aggregations": [], + "operation": "groupby" + }, + "runtime": { + "aggregations": [], + "operation": "groupby" + }, + "tgid": { + "aggregations": [], + "operation": "groupby" + }, + "vendor": { + "aggregations": [], + "operation": "groupby" + }, + "version": { + "aggregations": [], + "operation": "groupby" + } + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 9, + "x": 0, + "y": 7 + }, + "id": 4, + "options": { + "displayMode": "lcd", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_process_cpu_seconds_total{job=~\"$instance\", tgid=~\"$tgid\"}", + "format": "time_series", + "legendFormat": "Process - {{tgid}}", + "range": true, + "refId": "A" + } + ], + "title": "JVM - 进程CPU时间", + "transformations": [], + "type": "bargauge" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 13 + }, + "id": 20, + "panels": [], + "title": "应用性能观测", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "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": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 14 + }, + "id": 8, + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_memory_bytes_committed{job=~\"$instance\", tgid=\"$tgid\"}", + "hide": true, + "legendFormat": "__auto", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_memory_bytes_init{job=~\"$instance\", tgid=~\"$tgid\"}", + "hide": true, + "legendFormat": "__auto", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "sum by(area, tgid) (gala_gopher_jvm_memory_bytes_used{job=~\"$instance\", tgid=~\"$tgid\"})", + "format": "time_series", + "hide": false, + "legendFormat": "Used - {area={{area}}, tgid={{tgid}}}", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "sum by(area, tgid) (gala_gopher_jvm_memory_bytes_max{job=~\"$instance\", tgid=~\"$tgid\"})", + "hide": true, + "legendFormat": "Max- {area={{area}}, tgid={{tgid}}}", + "range": true, + "refId": "D" + } + ], + "title": "JVM - Memory", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "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": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 14 + }, + "id": 10, + "options": { + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(pool, tgid) (gala_gopher_jvm_memory_pool_bytes_committed{job=~\"$instance\", tgid=~\"$tgid\"})", + "hide": true, + "legendFormat": "__auto", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "sum by(job, tgid, pool) (gala_gopher_jvm_memory_pool_bytes_used{job=~\"$instance\", tgid=~\"$tgid\"})", + "hide": false, + "legendFormat": "Used - {pool={{pool}}, tgid={{tgid}}}", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "gala_gopher_jvm_memory_pool_bytes_max{job=~\"$instance\", tgid=~\"$tgid\"}", + "hide": true, + "legendFormat": "__auto", + "range": true, + "refId": "C" + } + ], + "title": "JVM - Memory Pool", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "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": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 22 + }, + "id": 46, + "options": { + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "gala_gopher_jvm_memory_bytes_used{tgid=~\"$tgid\", area=\"heap\"} / gala_gopher_jvm_memory_bytes_max{tgid=~\"$tgid\", area=\"heap\"}", + "hide": false, + "legendFormat": "Process - {{tgid}}", + "range": true, + "refId": "A" + } + ], + "title": "JVM - 堆内存使用率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "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": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 22 + }, + "id": 45, + "options": { + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "gala_gopher_jvm_memory_pool_bytes_used{pool=~\"G1 Old Gen|PS Old Gen\", tgid=~\"$tgid\"} / gala_gopher_jvm_memory_pool_bytes_max{pool=~\"G1 Old Gen|PS Old Gen\", tgid=~\"$tgid\"}", + "hide": true, + "legendFormat": "__auto", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_memory_bytes_used{tgid=~\"$tgid\", area=\"nonheap\"} / (gala_gopher_jvm_memory_bytes_max{tgid=~\"$tgid\", area=\"nonheap\"} >= 0)", + "hide": false, + "legendFormat": "Process - {{tgid}}", + "range": true, + "refId": "B" + } + ], + "title": "JVM - 非堆内存使用率", + "transformations": [], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "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": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 30 + }, + "id": 31, + "options": { + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_buffer_pool_capacity_bytes", + "hide": true, + "legendFormat": "__auto", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_buffer_pool_used_buffers", + "hide": true, + "legendFormat": "__auto", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "sum by(job, tgid) (gala_gopher_jvm_buffer_pool_used_bytes{job=~\"$instance\", tgid=~\"$tgid\", pool=\"direct\"})", + "hide": false, + "legendFormat": "Used - {{tgid}}", + "range": true, + "refId": "C" + } + ], + "title": "JVM - Direct Buffer", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "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": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 30 + }, + "id": 18, + "options": { + "legend": { + "calcs": [ + "lastNotNull", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "sum by(job, tgid) (gala_gopher_jvm_threads_current{job=~\"$instance\", tgid=~\"$tgid\"})", + "legendFormat": "Process - {{tgid}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_threads_daemon", + "hide": true, + "legendFormat": "__auto", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_threads_deadlocked", + "hide": true, + "legendFormat": "__auto", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_threads_peak", + "hide": true, + "legendFormat": "__auto", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_threads_started_total", + "hide": true, + "legendFormat": "__auto", + "range": true, + "refId": "E" + } + ], + "title": "JVM - Thread个数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "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": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 38 + }, + "id": 6, + "options": { + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_classes_currently_loaded{job=~\"$instance\", tgid=~\"$tgid\"}", + "legendFormat": "Process - {{tgid}}", + "range": true, + "refId": "A" + } + ], + "title": "JVM - Class个数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "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": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 38 + }, + "id": 22, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, gc, tgid) (gala_gopher_jvm_gc_collection_seconds_count{job=~\"$instance\", tgid=~\"$tgid\"})", + "hide": false, + "legendFormat": "GC Count - {gc={{gc}}, tgid={{tgid}}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "sum by(job, gc, tgid) (gala_gopher_jvm_gc_collection_seconds_sum{job=~\"$instance\", tgid=~\"$tgid\"})", + "hide": false, + "legendFormat": "GC Time - {gc={{gc}}, tgid={{tgid}}}", + "range": true, + "refId": "B" + } + ], + "title": "JVM GC 时间 & 次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "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": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 46 + }, + "id": 26, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "increase(gala_gopher_jvm_gc_collection_seconds_sum{job=~\"$instance\", tgid=~\"$tgid\"}[1m])", + "legendFormat": "GC Time - {gc={{gc}}, tgid={{tgid}}}", + "range": true, + "refId": "A" + } + ], + "title": "JVM - GC时间/每分钟", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "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": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 46 + }, + "id": 24, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "increase(gala_gopher_jvm_gc_collection_seconds_count{job=~\"$instance\", tgid=~\"$tgid\"}[1m])", + "legendFormat": "GC Count - {gc={{gc}}, tgid={{tgid}}}", + "range": true, + "refId": "A" + } + ], + "title": "JVM - GC次数/每分钟", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 54 + }, + "id": 12, + "panels": [], + "title": "JVM OOM 故障发现与定位", + "type": "row" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Mixed --" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 52, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 55 + }, + "id": 41, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "alias": "", + "bucketAggs": [ + { + "field": "@timestamp", + "id": "2", + "settings": { + "interval": "auto" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "elasticsearch", + "uid": "vJz6alKVz" + }, + "metrics": [ + { + "id": "1", + "type": "count" + } + ], + "query": "Attributes.event_type.keyword:jvm AND Resource.labels.job.keyword:$instance", + "refId": "A", + "timeField": "@timestamp" + } + ], + "title": "JVM OOM 故障", + "transformations": [], + "type": "timeseries" + }, + { + "datasource": { + "type": "elasticsearch", + "uid": "vJz6alKVz" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "displayMode": "auto", + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Attributes.cause_metric.description" + }, + "properties": [ + { + "id": "custom.width", + "value": 545 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "@version" + }, + "properties": [ + { + "id": "custom.width", + "value": 83 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "custom.width", + "value": 162 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Source" + }, + "properties": [ + { + "id": "custom.width", + "value": 121 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Attributes.event_type" + }, + "properties": [ + { + "id": "custom.width", + "value": 157 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "EventType" + }, + "properties": [ + { + "id": "custom.width", + "value": 85 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Description" + }, + "properties": [ + { + "id": "custom.width", + "value": 642 + }, + { + "id": "links" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Machine" + }, + "properties": [ + { + "id": "custom.width", + "value": 130 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Process" + }, + "properties": [ + { + "id": "custom.width", + "value": 87 + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 55 + }, + "id": 43, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "alias": "", + "bucketAggs": [], + "datasource": { + "type": "elasticsearch", + "uid": "vJz6alKVz" + }, + "metrics": [ + { + "id": "1", + "settings": { + "size": "500" + }, + "type": "raw_data" + } + ], + "query": "Attributes.event_type.keyword:jvm AND Resource.labels.job.keyword:$instance", + "refId": "A", + "timeField": "@timestamp" + } + ], + "title": "JVM - 故障详情", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "@version": true, + "Attributes.entity_id": true, + "Attributes.event_id": true, + "Attributes.event_source": true, + "Attributes.keywords": true, + "Body": true, + "Resource.cause_metrics": true, + "Resource.labels.instance": true, + "Resource.labels.machine_id": true, + "Resource.labels.pool": true, + "Resource.labels.tgid": false, + "Resource.metric": false, + "Resource.score": true, + "SeverityNumber": true, + "SeverityText": true, + "Timestamp": true, + "_id": true, + "_index": true, + "_type": true, + "event.original": true, + "event_id": true, + "highlight": true, + "keywords": true, + "message": true, + "sort": true + }, + "indexByName": { + "@timestamp": 0, + "@version": 1, + "Attributes.entity_id": 2, + "Attributes.event_id": 3, + "Attributes.event_source": 4, + "Attributes.event_type": 5, + "Attributes.keywords": 7, + "Body": 8, + "Resource.cause_metrics": 9, + "Resource.description": 10, + "Resource.labels.instance": 11, + "Resource.labels.job": 12, + "Resource.labels.machine_id": 13, + "Resource.labels.pool": 14, + "Resource.labels.tgid": 6, + "Resource.metric": 15, + "Resource.score": 16, + "SeverityNumber": 17, + "SeverityText": 18, + "Timestamp": 19, + "_id": 20, + "_index": 21, + "_type": 22, + "event.original": 23, + "event_id": 24, + "highlight": 25, + "keywords": 26, + "message": 27, + "sort": 28 + }, + "renameByName": { + "@timestamp": "Time", + "@version": "Version", + "Attributes.entity_id": "Entity_id", + "Attributes.event_id": "EventId", + "Attributes.event_source": "Source", + "Attributes.event_type": "EventType", + "Resource.description": "Description", + "Resource.labels.instance": "", + "Resource.labels.job": "Machine", + "Resource.labels.tgid": "Process" + } + } + } + ], + "type": "table" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 62 + }, + "id": 48, + "panels": [], + "title": "内存火焰图", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "r3WqfVA4z" + }, + "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": "linear", + "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": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 63 + }, + "id": 50, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "r3WqfVA4z" + }, + "refId": "A" + } + ], + "title": "内存火焰图", + "type": "timeseries" + } + ], + "refresh": false, + "schemaVersion": 37, + "style": "dark", + "tags": [ + "JVM Metrics Offical" + ], + "templating": { + "list": [ + { + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "definition": "label_values(gala_gopher_host_value{}, job)", + "hide": 0, + "includeAll": true, + "label": "", + "multi": true, + "name": "instance", + "options": [], + "query": { + "query": "label_values(gala_gopher_host_value{}, job)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "definition": "label_values(gala_gopher_jvm_info{}, tgid)", + "hide": 0, + "includeAll": true, + "label": "tgid", + "multi": true, + "name": "tgid", + "options": [], + "query": { + "query": "label_values(gala_gopher_jvm_info{}, tgid)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-15m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "JVM Metrics", + "uid": "44Y-OesVz", + "version": 9, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/System Flame-1684289374624.json b/grafana/dashboard/System Flame-1684289374624.json new file mode 100644 index 0000000000000000000000000000000000000000..6aeaaa7a37001d3066a80d23ee6b8a199e89b9f0 --- /dev/null +++ b/grafana/dashboard/System Flame-1684289374624.json @@ -0,0 +1,727 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "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" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 36, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "A-Ops Home Page" + ], + "targetBlank": false, + "title": "A-Ops Home Page", + "tooltip": "", + "type": "dashboards", + "url": "" + }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "System Performance Diagnose - Official" + ], + "targetBlank": false, + "title": "System Performance Diagnose - Official", + "tooltip": "", + "type": "dashboards", + "url": "" + }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "App Performance Diagnose - Redis" + ], + "targetBlank": false, + "title": "App Performance Diagnose - Redis", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 22, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 33, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(app, job, server_ip, server_port, tgid) (gala_gopher_sli_rtt_nsec{job=~\"$instance\", app=~\"REDIS\", client_port!~\"3742\", client_port!~\"3746\", method!=\"REP\"})", + "hide": false, + "legendFormat": "__auto", + "range": true, + "refId": "B" + } + ], + "title": "应用性能(Sli&Tps)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 0 + }, + "id": 37, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_syn_srtt{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-syn_srtt", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_srtt{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-srtt", + "range": true, + "refId": "B" + } + ], + "title": "Tcp -- RTT", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 8 + }, + "id": 9, + "panels": [], + "title": "系统基础观测", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "linear", + "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": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 7, + "x": 0, + "y": 9 + }, + "id": 31, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "exemplar": false, + "expr": "gala_gopher_cpu_total_used_per{job=~\"$instance\"}", + "format": "time_series", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "CPU使用率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "linear", + "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": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 7, + "y": 9 + }, + "id": 34, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "exemplar": false, + "expr": "gala_gopher_mem_util{job=~\"$instance\"}", + "format": "time_series", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "内存使用率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "linear", + "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": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 9, + "x": 15, + "y": 9 + }, + "id": 35, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "exemplar": false, + "expr": "gala_gopher_disk_util{job=~\"$instance\"}", + "format": "time_series", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "磁盘使用率", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 17 + }, + "id": 20, + "panels": [], + "title": "系统全栈诊断", + "type": "row" + }, + { + "datasource": { + "type": "pyroscope-datasource", + "uid": "ylJwXjFVz" + }, + "gridPos": { + "h": 19, + "w": 24, + "x": 0, + "y": 18 + }, + "id": 23, + "options": { + "displayOnly": "both", + "showToolbar": true + }, + "targets": [ + { + "datasource": { + "type": "pyroscope-datasource", + "uid": "ylJwXjFVz" + }, + "format": "json", + "from": "now-1h", + "name": "gala-gopher-oncpu-$machine_id", + "refId": "A", + "until": "now" + } + ], + "type": "pyroscope-panel" + } + ], + "refresh": "", + "schemaVersion": 37, + "style": "dark", + "tags": [ + "System Flame Offical" + ], + "templating": { + "list": [ + { + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "definition": "label_values(gala_gopher_host_value{}, job)", + "hide": 0, + "includeAll": true, + "multi": true, + "name": "instance", + "options": [], + "query": { + "query": "label_values(gala_gopher_host_value{}, job)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "/(host-10.137.18.11|vm8001-10.137.18.11|vm8002-10.137.18.11|vm8003-10.137.18.11)$/", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": { + "selected": true, + "text": [ + "7c2fbaf8-4528-4aaf-90c1-5c4c46b06ebe" + ], + "value": [ + "7c2fbaf8-4528-4aaf-90c1-5c4c46b06ebe" + ] + }, + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "definition": "label_values(gala_gopher_host_value{job=~\"$instance\"}, machine_id)", + "hide": 0, + "includeAll": true, + "multi": true, + "name": "machine_id", + "options": [], + "query": { + "query": "label_values(gala_gopher_host_value{job=~\"$instance\"}, machine_id)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "filters": [], + "hide": 0, + "label": "", + "name": "filter", + "skipUrlSync": false, + "type": "adhoc" + } + ] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "System Flame", + "uid": "slaOE024k", + "version": 32, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/System Inspection-1684289381568.json b/grafana/dashboard/System Inspection-1684289381568.json new file mode 100644 index 0000000000000000000000000000000000000000..6e4ab1ff8bed9843146fb85e0309457ab915af7c --- /dev/null +++ b/grafana/dashboard/System Inspection-1684289381568.json @@ -0,0 +1,4026 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "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" + } + ] + }, + "description": "System Inspetion page", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 52, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "A-Ops Home Page" + ], + "targetBlank": false, + "title": "A-Ops Home Page", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 18, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 9 + }, + "id": 20, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "gala_gopher_fs_IUsed{job=~\"$instance\"}", + "legendFormat": "{{job}}-\"{{MountOn}}\"", + "range": true, + "refId": "A" + } + ], + "title": "fs-inode_used", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 9 + }, + "id": 22, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_fs_IFree{job=~\"$instance\"}", + "legendFormat": "{{job}}-\"{{MountOn}}\"", + "range": true, + "refId": "A" + } + ], + "title": "fs-inode_free", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 17 + }, + "id": 24, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_fs_IUsePer{job=~\"$instance\"}", + "legendFormat": "{{job}}-\"{{MountOn}}\"", + "range": true, + "refId": "A" + } + ], + "title": "fs-inode_util", + "type": "timeseries" + } + ], + "title": "文件系统资源", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 16, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 10 + }, + "id": 26, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_proc_fd_count{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{tgid}}-{{comm}}", + "range": true, + "refId": "A" + } + ], + "title": "proc-fd count", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 10 + }, + "id": 28, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_proc_fd_free_per{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{tgid}}-{{comm}}", + "range": true, + "refId": "A" + } + ], + "title": "proc-fd free per", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 18 + }, + "id": 30, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_proc_vm_size{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{tgid}}-{{comm}}", + "range": true, + "refId": "A" + } + ], + "title": "proc-vm size", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 18 + }, + "id": 32, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_proc_pm_size{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{tgid}}-{{comm}}", + "range": true, + "refId": "A" + } + ], + "title": "proc-pm size", + "type": "timeseries" + } + ], + "title": "进程资源", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 2 + }, + "id": 14, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "times/s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 11 + }, + "id": 36, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_disk_rspeed{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{disk_name}}", + "range": true, + "refId": "A" + } + ], + "title": "disk-rspeed", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "times/s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 11 + }, + "id": 38, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_disk_wspeed{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{disk_name}}", + "range": true, + "refId": "A" + } + ], + "title": "disk-wspeed", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 19 + }, + "id": 40, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_disk_r_await{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{disk_name}}", + "range": true, + "refId": "A" + } + ], + "title": "disk-rawait", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 19 + }, + "id": 42, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_disk_w_await{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{disk_name}}", + "range": true, + "refId": "A" + } + ], + "title": "disk-wawait", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "disk-util", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 27 + }, + "id": 34, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_disk_util{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{disk_name}}", + "range": true, + "refId": "A" + } + ], + "type": "timeseries" + } + ], + "title": "磁盘资源", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 3 + }, + "id": 12, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 12 + }, + "id": 44, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_nic_rx_errs{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{dev_name}}", + "range": true, + "refId": "A" + } + ], + "title": "nic-rx errs", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 12 + }, + "id": 46, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_nic_tx_errs{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{dev_name}}", + "range": true, + "refId": "A" + } + ], + "title": "nic-tx errs", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 20 + }, + "id": 48, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_nic_rx_dropped{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{dev_name}}", + "range": true, + "refId": "A" + } + ], + "title": "nic-rx dropped", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 20 + }, + "id": 50, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_nic_tx_dropped{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{dev_name}}", + "range": true, + "refId": "A" + } + ], + "title": "nic-tx dropped", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 28 + }, + "id": 52, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_nic_tc_sent_drop{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{dev_name}}", + "range": true, + "refId": "A" + } + ], + "title": "nic-tc sent drop", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 28 + }, + "id": 54, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_nic_tc_sent_overlimits{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{dev_name}}", + "range": true, + "refId": "A" + } + ], + "title": "nic-tc sent overlimits", + "type": "timeseries" + } + ], + "title": "网卡资源", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 4 + }, + "id": 10, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 13 + }, + "id": 56, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_cpu_backlog_drops{job=~\"$instance\"}", + "legendFormat": "{{job}}-cpu{{cpu}}", + "range": true, + "refId": "A" + } + ], + "title": "cpu-backlog_drops", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 13 + }, + "id": 58, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_cpu_total_used_per{job=~\"$instance\"}", + "legendFormat": "{{job}}", + "range": true, + "refId": "A" + } + ], + "title": "cpu-total used per", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 21 + }, + "id": 60, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_cpu_rcu{job=~\"$instance\"}", + "legendFormat": "{{job}}-cpu{{cpu}}", + "range": true, + "refId": "A" + } + ], + "title": "cpu-rcu", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 21 + }, + "id": 62, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_cpu_softirq_msec{job=~\"$instance\"}", + "legendFormat": "{{job}}-cpu{{cpu}}", + "range": true, + "refId": "A" + } + ], + "title": "cpu-softirq_msec", + "type": "timeseries" + } + ], + "title": "CPU 资源", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 5 + }, + "id": 8, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 14 + }, + "id": 64, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_mem_free_kB{job=~\"$instance\"}", + "legendFormat": "{{job}}", + "range": true, + "refId": "A" + } + ], + "title": "mem-mem_free", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 14 + }, + "id": 68, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_mem_available_kB{job=~\"$instance\"}", + "legendFormat": "{{job}}", + "range": true, + "refId": "A" + } + ], + "title": "mem-mem_available", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 22 + }, + "id": 70, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_mem_swap_free_kB{job=~\"$instance\"}", + "legendFormat": "{{job}}", + "range": true, + "refId": "A" + } + ], + "title": "mem-swap_free", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 22 + }, + "id": 72, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_mem_swap_util{job=~\"$instance\"}", + "legendFormat": "{{job}}", + "range": true, + "refId": "A" + } + ], + "title": "mem-swap_util", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 30 + }, + "id": 66, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_mem_util{job=~\"$instance\"}", + "legendFormat": "{{job}}", + "range": true, + "refId": "A" + } + ], + "title": "mem-util", + "type": "timeseries" + } + ], + "title": "内存资源", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 6 + }, + "id": 6, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 15 + }, + "id": 74, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_classes_currently_loaded{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{tgid}}", + "range": true, + "refId": "A" + } + ], + "title": "jvm-classes_currently_loaded", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 15 + }, + "id": 76, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_threads_current{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{tgid}}", + "range": true, + "refId": "A" + } + ], + "title": "jvm-threads_current", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 23 + }, + "id": 78, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_threads_peak{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{tgid}}", + "range": true, + "refId": "A" + } + ], + "title": "jvm-threads_peak", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 23 + }, + "id": 80, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_threads_deadlocked{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{tgid}}", + "range": true, + "refId": "A" + } + ], + "title": "jvm-threads_deadlocked", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 31 + }, + "id": 82, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_memory_bytes_used{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{tgid}}", + "range": true, + "refId": "A" + } + ], + "title": "jvm-memory_bytes_used", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 31 + }, + "id": 84, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_memory_pool_bytes_max{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{tgid}}-{{pool}}", + "range": true, + "refId": "A" + } + ], + "title": "jvm-memory_pool_bytes_max", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 39 + }, + "id": 86, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_buffer_pool_used_bytes{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{tgid}}-{{pool}}", + "range": true, + "refId": "A" + } + ], + "title": "jvm-buffer_pool_used_bytes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 39 + }, + "id": 88, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_jvm_gc_collection_seconds_sum{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{tgid}}-{{gc}}", + "range": true, + "refId": "A" + } + ], + "title": "jvm-gc_collection_seconds_sum", + "type": "timeseries" + } + ], + "title": "jvm 资源", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 7 + }, + "id": 4, + "panels": [ + { + "datasource": { + "type": "datasource", + "uid": "-- Mixed --" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "displayMode": "auto", + "inspect": false + }, + "mappings": [ + { + "options": { + "sli tps 异常": { + "color": "red", + "index": 3, + "text": "sli tps 异常" + } + }, + "type": "value" + }, + { + "options": { + "pattern": "/^.*(disk\\w+).*$/g", + "result": { + "color": "yellow", + "index": 0, + "text": "$1" + } + }, + "type": "regex" + }, + { + "options": { + "pattern": "/^.*(block\\w+).*$/g", + "result": { + "color": "yellow", + "index": 1, + "text": "$1" + } + }, + "type": "regex" + }, + { + "options": { + "pattern": "/^.*(proc\\w+).*$/g", + "result": { + "color": "yellow", + "index": 2, + "text": "$1" + } + }, + "type": "regex" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "type" + }, + "properties": [ + { + "id": "custom.width", + "value": 40 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "timestamp" + }, + "properties": [ + { + "id": "custom.width", + "value": 160 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "host" + }, + "properties": [ + { + "id": "custom.width", + "value": 152 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "metric" + }, + "properties": [ + { + "id": "custom.width", + "value": 220 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "message" + }, + "properties": [ + { + "id": "links", + "value": [] + }, + { + "id": "custom.width", + "value": 411 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "device" + }, + "properties": [ + { + "id": "custom.width", + "value": 78 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "pod" + }, + "properties": [ + { + "id": "custom.width", + "value": 83 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "container_id" + }, + "properties": [ + { + "id": "custom.width", + "value": 118 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "pid" + }, + "properties": [ + { + "id": "custom.width", + "value": 133 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "comm" + }, + "properties": [ + { + "id": "custom.width", + "value": 131 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "message" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "auto" + }, + { + "id": "custom.inspect", + "value": true + }, + { + "id": "custom.filterable", + "value": false + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ip" + }, + "properties": [ + { + "id": "custom.width", + "value": 58 + } + ] + } + ] + }, + "gridPos": { + "h": 14, + "w": 24, + "x": 0, + "y": 8 + }, + "id": 2, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 2, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "alias": "", + "bucketAggs": [], + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "metrics": [ + { + "hide": false, + "id": "1", + "settings": { + "size": "500" + }, + "type": "raw_data" + } + ], + "query": "job.keyword:$instance", + "refId": "A", + "timeField": "@timestamp" + }, + { + "alias": "", + "bucketAggs": [], + "datasource": { + "type": "elasticsearch", + "uid": "vJz6alKVz" + }, + "hide": false, + "metrics": [ + { + "id": "1", + "settings": { + "size": "500" + }, + "type": "raw_data" + } + ], + "query": "Resource.labels.job.keyword:$instance", + "refId": "B", + "timeField": "@timestamp" + } + ], + "title": "异常事件详情", + "transformations": [ + { + "id": "merge", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": { + "@version": true, + "Attributes.cause_metric.description": true, + "Attributes.cause_metric.labels.Blocks": true, + "Attributes.cause_metric.labels.Fsname": true, + "Attributes.cause_metric.labels.Fstype": true, + "Attributes.cause_metric.labels.Inodes": true, + "Attributes.cause_metric.labels.MountOn": true, + "Attributes.cause_metric.labels.blk_name": true, + "Attributes.cause_metric.labels.client_ip": true, + "Attributes.cause_metric.labels.client_port": true, + "Attributes.cause_metric.labels.comm": true, + "Attributes.cause_metric.labels.disk_name": true, + "Attributes.cause_metric.labels.first_minor": true, + "Attributes.cause_metric.labels.instance": true, + "Attributes.cause_metric.labels.job": true, + "Attributes.cause_metric.labels.machine_id": true, + "Attributes.cause_metric.labels.major": true, + "Attributes.cause_metric.labels.protocol": true, + "Attributes.cause_metric.labels.role": true, + "Attributes.cause_metric.labels.server_ip": true, + "Attributes.cause_metric.labels.server_port": true, + "Attributes.cause_metric.labels.tgid": true, + "Attributes.cause_metric.metric": true, + "Attributes.cause_metric.score": true, + "Attributes.entity_id": true, + "Attributes.event_id": true, + "Attributes.event_source": true, + "Attributes.event_type": false, + "Attributes.keywords": true, + "Resource.cause_metrics": true, + "Resource.labels": true, + "Resource.labels.Device": false, + "Resource.labels.app": true, + "Resource.labels.blk_name": true, + "Resource.labels.client_ip": true, + "Resource.labels.client_port": true, + "Resource.labels.comm": true, + "Resource.labels.dev_name": true, + "Resource.labels.disk_name": true, + "Resource.labels.first_minor": true, + "Resource.labels.ins_id": true, + "Resource.labels.instance": true, + "Resource.labels.job": true, + "Resource.labels.machine_id": true, + "Resource.labels.major": true, + "Resource.labels.method": true, + "Resource.labels.protocol": true, + "Resource.labels.role": true, + "Resource.labels.server_ip": true, + "Resource.labels.server_port": true, + "Resource.labels.status": true, + "Resource.labels.tgid": true, + "Resource.score": true, + "SeverityNumber": true, + "SeverityText": true, + "Timestamp": true, + "_id": true, + "_index": true, + "_type": true, + "event.original": true, + "event_id": true, + "highlight": true, + "job": true, + "keywords": true, + "machine_id": true, + "message": true, + "sort": true + }, + "indexByName": { + "@timestamp": 0, + "@version": 12, + "Attributes.cause_metric.description": 13, + "Attributes.cause_metric.labels.blk_name": 14, + "Attributes.cause_metric.labels.client_ip": 15, + "Attributes.cause_metric.labels.client_port": 16, + "Attributes.cause_metric.labels.comm": 17, + "Attributes.cause_metric.labels.disk_name": 18, + "Attributes.cause_metric.labels.first_minor": 19, + "Attributes.cause_metric.labels.instance": 20, + "Attributes.cause_metric.labels.job": 21, + "Attributes.cause_metric.labels.machine_id": 22, + "Attributes.cause_metric.labels.major": 23, + "Attributes.cause_metric.labels.protocol": 24, + "Attributes.cause_metric.labels.role": 25, + "Attributes.cause_metric.labels.server_ip": 26, + "Attributes.cause_metric.labels.server_port": 27, + "Attributes.cause_metric.labels.tgid": 28, + "Attributes.cause_metric.metric": 29, + "Attributes.cause_metric.score": 30, + "Attributes.entity_id": 31, + "Attributes.event_id": 32, + "Attributes.event_source": 33, + "Attributes.event_type": 2, + "Attributes.keywords": 34, + "Body": 10, + "Resource.cause_metrics": 35, + "Resource.description": 11, + "Resource.labels.COMM": 5, + "Resource.labels.ContainerID": 7, + "Resource.labels.Device": 9, + "Resource.labels.Host": 1, + "Resource.labels.IP": 6, + "Resource.labels.PID": 4, + "Resource.labels.POD": 8, + "Resource.labels.client_ip": 36, + "Resource.labels.client_port": 37, + "Resource.labels.comm": 38, + "Resource.labels.dev_name": 39, + "Resource.labels.instance": 40, + "Resource.labels.job": 41, + "Resource.labels.machine_id": 42, + "Resource.labels.protocol": 43, + "Resource.labels.role": 44, + "Resource.labels.server_ip": 45, + "Resource.labels.server_port": 46, + "Resource.labels.status": 47, + "Resource.labels.tgid": 48, + "Resource.metric": 3, + "Resource.score": 49, + "SeverityNumber": 50, + "SeverityText": 51, + "Timestamp": 52, + "_id": 53, + "_index": 54, + "_type": 55, + "event.original": 56, + "event_id": 57, + "highlight": 58, + "job": 62, + "keywords": 59, + "machine_id": 63, + "message": 60, + "sort": 61 + }, + "renameByName": { + "@timestamp": "timestamp", + "Attributes.event_type": "type", + "Attributes.keywords": "", + "Body": "message", + "Resource.description": "desc", + "Resource.labels.COMM": "comm", + "Resource.labels.ContainerID": "container_id", + "Resource.labels.Device": "device", + "Resource.labels.Host": "host", + "Resource.labels.IP": "ip", + "Resource.labels.PID": "pid", + "Resource.labels.POD": "pod", + "Resource.labels.app": "", + "Resource.labels.job": "job", + "Resource.labels.machine_id": "", + "Resource.labels.tgid": "", + "Resource.metric": "metric" + } + } + } + ], + "type": "table" + } + ], + "title": "异常事件", + "type": "row" + } + ], + "refresh": false, + "schemaVersion": 37, + "style": "dark", + "tags": [ + "System Inspection Offical" + ], + "templating": { + "list": [ + { + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "definition": "label_values(gala_gopher_host_value{}, job)", + "hide": 0, + "includeAll": true, + "multi": true, + "name": "instance", + "options": [], + "query": { + "query": "label_values(gala_gopher_host_value{}, job)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "System Inspection", + "uid": "wGKJxLy4z", + "version": 94, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/System Performance Diagnose-1684289389322.json b/grafana/dashboard/System Performance Diagnose-1684289389322.json new file mode 100644 index 0000000000000000000000000000000000000000..ed41dba65eb8b60a4adeee78d3f5a6e8d7165e52 --- /dev/null +++ b/grafana/dashboard/System Performance Diagnose-1684289389322.json @@ -0,0 +1,2415 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "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" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 61, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "A-Ops Home Page" + ], + "targetBlank": false, + "title": "A-Ops Home Page", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 9, + "panels": [], + "title": "系统基础观测", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 1 + }, + "id": 15, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_write_bytes{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-{{comm}}-write", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_read_bytes{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-{{comm}}-read", + "range": true, + "refId": "B" + } + ], + "title": "Proc -- Write/Read Bytes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 1 + }, + "id": 39, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_greater_4k_io_read{job=~\"$instance\", comm!=\"python3\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-{{comm}}-read", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_greater_4k_io_write{job=~\"$instance\", comm!=\"python\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-{{comm}}-write", + "range": true, + "refId": "B" + } + ], + "title": "Proc -- number of io(greater than 4k) operations", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 9 + }, + "id": 37, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_less_4k_io_read{job=~\"$instance\", comm!=\"python3\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-{{comm}}-read", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_less_4k_io_write{job=~\"$instance\", comm!=\"python3\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-{{comm}}-write", + "range": true, + "refId": "B" + } + ], + "title": "Proc -- number of io(less than 4k) operations", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 9 + }, + "id": 43, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_bio_err_count{job=~\"$instance\", comm != \"python\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-{{comm}}-bio_err_count", + "range": true, + "refId": "A" + } + ], + "title": "Proc -- Bio Err Count", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 17 + }, + "id": 41, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_bio_latency{job=~\"$instance\", comm!=\"python\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-{{comm}}-bio_latency", + "range": true, + "refId": "A" + } + ], + "title": "Proc -- Bio Latency", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 17 + }, + "id": 45, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job, comm) (gala_gopher_proc_iowait_us{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-{{comm}}-iowait", + "range": true, + "refId": "A" + } + ], + "title": "Proc -- iowait", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 25 + }, + "id": 47, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_disk_r_await{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{disk_name}}", + "range": true, + "refId": "A" + } + ], + "title": "disk-rawait", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "description": "", + "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": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 25 + }, + "id": 49, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "builder", + "expr": "gala_gopher_disk_w_await{job=~\"$instance\"}", + "legendFormat": "{{job}}-{{disk_name}}", + "range": true, + "refId": "A" + } + ], + "title": "disk-wawait", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 33 + }, + "id": 16, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_block_read_bytes{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-write", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_block_read_bytes{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-read", + "range": true, + "refId": "B" + } + ], + "title": "Block -- Write/Read Bytes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 33 + }, + "id": 17, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_block_latency_req_max{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-req", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_block_latency_device_max{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-device", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_block_latency_driver_max{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": " {{job}}-driver", + "range": true, + "refId": "C" + } + ], + "title": "Block -- Latency Max", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 41 + }, + "id": 29, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_syn_srtt{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-syn_srtt", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_srtt{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-srtt", + "range": true, + "refId": "B" + } + ], + "title": "Tcp -- RTT", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 41 + }, + "id": 33, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_retran_packets{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-retran_packets", + "range": true, + "refId": "A" + } + ], + "title": "Tcp -- Retran Packets", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 49 + }, + "id": 31, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_backlog_drops{job=~\"$instance\"}) * 1 + sum by(job) (gala_gopher_tcp_link_sk_drops{job=~\"$instance\"}) * 1 + sum by(job) (gala_gopher_tcp_link_lost_out{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-drop_packets", + "range": true, + "refId": "A" + } + ], + "title": "TCP -- Drop Packets", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 49 + }, + "id": 35, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_notsent_bytes{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-notsent", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_tcp_link_notack_bytes{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}--notack", + "range": true, + "refId": "B" + } + ], + "title": "TCP -- notsent/notack", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 57 + }, + "id": 25, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_nic_rx_bytes{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-rx", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_nic_tx_bytes{job=~\"$instance\"}) * -1", + "hide": false, + "legendFormat": "{{job}}-tx", + "range": true, + "refId": "B" + } + ], + "title": "Nic -- Rx/Tx Bytes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "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": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 57 + }, + "id": 27, + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_nic_rx_errs{job=~\"$instance\"}) * 1 + sum by(job) (gala_gopher_nic_rx_dropped{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-rx_err_bytes", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "expr": "sum by(job) (gala_gopher_nic_tx_errs{job=~\"$instance\"}) * 1 + sum by(job) (gala_gopher_nic_tx_dropped{job=~\"$instance\"}) * 1", + "hide": false, + "legendFormat": "{{job}}-tx_err_bytes", + "range": true, + "refId": "B" + } + ], + "title": "Nic -- Rx/Tx Err Bytes", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 65 + }, + "id": 11, + "panels": [], + "title": "故障发现与定位", + "type": "row" + }, + { + "datasource": { + "type": "elasticsearch", + "uid": "vJz6alKVz" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 52, + "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": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "app" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 66 + }, + "id": 4, + "options": { + "legend": { + "calcs": [ + "last", + "sum" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Total", + "sortDesc": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "alias": "", + "bucketAggs": [ + { + "field": "Resource.labels.job.keyword", + "id": "3", + "settings": { + "min_doc_count": "1", + "order": "desc", + "orderBy": "_term", + "size": "10" + }, + "type": "terms" + }, + { + "field": "@timestamp", + "id": "2", + "settings": { + "interval": "1m" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "elasticsearch", + "uid": "vJz6alKVz" + }, + "metrics": [ + { + "id": "1", + "type": "count" + } + ], + "query": "!Attributes.event_type.keyword:app AND Resource.labels.job.keyword:$instance", + "refId": "A", + "timeField": "@timestamp" + } + ], + "title": "故障发现数(按主机)", + "type": "timeseries" + }, + { + "datasource": { + "type": "elasticsearch", + "uid": "vJz6alKVz" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 52, + "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": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "app" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 66 + }, + "id": 21, + "options": { + "legend": { + "calcs": [ + "last", + "sum" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Total", + "sortDesc": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "alias": "", + "bucketAggs": [ + { + "field": "keywords.keyword", + "id": "4", + "settings": { + "min_doc_count": "1", + "order": "desc", + "orderBy": "_term", + "size": "10" + }, + "type": "terms" + }, + { + "field": "@timestamp", + "id": "2", + "settings": { + "interval": "1m" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "elasticsearch", + "uid": "vJz6alKVz" + }, + "metrics": [ + { + "id": "1", + "type": "count" + } + ], + "query": "!Attributes.event_type.keyword:app AND Resource.labels.job.keyword:$instance", + "refId": "A", + "timeField": "@timestamp" + } + ], + "title": "故障发现数(按类型)", + "type": "timeseries" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Mixed --" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "displayMode": "auto", + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Resource.description" + }, + "properties": [ + { + "id": "custom.width", + "value": 435 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Type" + }, + "properties": [ + { + "id": "custom.width", + "value": 60 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Host" + }, + "properties": [ + { + "id": "custom.width", + "value": 175 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Resource.metric" + }, + "properties": [ + { + "id": "custom.width", + "value": 223 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Description" + }, + "properties": [ + { + "id": "custom.width", + "value": 425 + }, + { + "id": "custom.displayMode", + "value": "color-text" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Event" + }, + "properties": [ + { + "id": "custom.width", + "value": 287 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "@timestamp" + }, + "properties": [ + { + "id": "custom.width", + "value": 203 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "EventId" + }, + "properties": [ + { + "id": "custom.width", + "value": 358 + } + ] + } + ] + }, + "gridPos": { + "h": 15, + "w": 24, + "x": 0, + "y": 74 + }, + "id": 5, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 2, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "alias": "", + "bucketAggs": [], + "datasource": { + "type": "elasticsearch", + "uid": "vJz6alKVz" + }, + "metrics": [ + { + "id": "1", + "settings": { + "size": "500" + }, + "type": "raw_data" + } + ], + "query": "!Attributes.event_type.keyword:app AND Resource.labels.job.keyword:$instance", + "refId": "A", + "timeField": "@timestamp" + } + ], + "title": "故障详情", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "@version": true, + "Attributes.entity_id": true, + "Attributes.event_source": true, + "Body": true, + "Resource.cause_metrics": true, + "Resource.labels.blk_name": true, + "Resource.labels.client_ip": true, + "Resource.labels.client_port": true, + "Resource.labels.comm": true, + "Resource.labels.disk_name": true, + "Resource.labels.first_minor": true, + "Resource.labels.instance": true, + "Resource.labels.machine_id": true, + "Resource.labels.major": true, + "Resource.labels.protocol": true, + "Resource.labels.role": true, + "Resource.labels.server_ip": true, + "Resource.labels.server_port": true, + "Resource.labels.tgid": true, + "Resource.score": true, + "SeverityNumber": true, + "SeverityText": true, + "Timestamp": true, + "_id": true, + "_index": true, + "_type": true, + "cause_metric.description": true, + "cause_metric.labels.blk_name": true, + "cause_metric.labels.comm": true, + "cause_metric.labels.disk_name": true, + "cause_metric.labels.first_minor": true, + "cause_metric.labels.instance": true, + "cause_metric.labels.job": true, + "cause_metric.labels.machine_id": true, + "cause_metric.labels.major": true, + "cause_metric.labels.tgid": true, + "cause_metric.metric": true, + "cause_metric.score": true, + "event.original": true, + "event_id": true, + "highlight": true, + "keywords": true, + "message": true, + "sort": true + }, + "indexByName": { + "@timestamp": 0, + "@version": 8, + "Attributes.cause_metric.description": 5, + "Attributes.cause_metric.labels.blk_name": 46, + "Attributes.cause_metric.labels.disk_name": 47, + "Attributes.cause_metric.labels.first_minor": 48, + "Attributes.cause_metric.labels.instance": 49, + "Attributes.cause_metric.labels.job": 50, + "Attributes.cause_metric.labels.machine_id": 51, + "Attributes.cause_metric.labels.major": 52, + "Attributes.cause_metric.metric": 53, + "Attributes.cause_metric.score": 54, + "Attributes.entity_id": 9, + "Attributes.event_id": 2, + "Attributes.event_source": 10, + "Attributes.event_type": 3, + "Attributes.keywords": 55, + "Body": 11, + "Resource.cause_metrics": 12, + "Resource.description": 4, + "Resource.labels.blk_name": 13, + "Resource.labels.client_ip": 14, + "Resource.labels.client_port": 15, + "Resource.labels.comm": 16, + "Resource.labels.disk_name": 17, + "Resource.labels.first_minor": 18, + "Resource.labels.instance": 19, + "Resource.labels.job": 1, + "Resource.labels.machine_id": 20, + "Resource.labels.major": 21, + "Resource.labels.protocol": 22, + "Resource.labels.role": 23, + "Resource.labels.server_ip": 24, + "Resource.labels.server_port": 25, + "Resource.labels.tgid": 26, + "Resource.metric": 7, + "Resource.score": 27, + "SeverityNumber": 28, + "SeverityText": 29, + "Timestamp": 30, + "_id": 31, + "_index": 32, + "_type": 33, + "cause_metric.description": 6, + "cause_metric.labels.disk_name": 34, + "cause_metric.labels.instance": 35, + "cause_metric.labels.job": 36, + "cause_metric.labels.machine_id": 37, + "cause_metric.metric": 38, + "cause_metric.score": 39, + "event.original": 40, + "event_id": 41, + "highlight": 42, + "keywords": 43, + "message": 44, + "sort": 45 + }, + "renameByName": { + "@version": "", + "Attributes.cause_metric.description": "Description", + "Attributes.event_id": "EventId", + "Attributes.event_type": "Type", + "Resource.description": "Event", + "Resource.labels.job": "Host", + "Resource.metric": "", + "cause_metric.description": "Description1" + } + } + } + ], + "type": "table" + } + ], + "refresh": "5s", + "schemaVersion": 37, + "style": "dark", + "tags": [ + "System Performance Diagnose Offical" + ], + "templating": { + "list": [ + { + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "definition": "label_values(gala_gopher_host_value{}, job)", + "hide": 0, + "includeAll": true, + "multi": true, + "name": "instance", + "options": [], + "query": { + "query": "label_values(gala_gopher_host_value{}, job)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "/(host-10.137.18.11|vm8001-10.137.18.11|vm8002-10.137.18.11|vm8003-10.137.18.11)$/", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "filters": [], + "hide": 0, + "label": "", + "name": "filter", + "skipUrlSync": false, + "type": "adhoc" + } + ] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "System Performance Diagnose", + "uid": "LcdxuB84k", + "version": 9, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/ThreadProfiling-1684289396532.json b/grafana/dashboard/ThreadProfiling-1684289396532.json new file mode 100644 index 0000000000000000000000000000000000000000..ce1a8bc17546dda4ca91819ade6982a30d749e7c --- /dev/null +++ b/grafana/dashboard/ThreadProfiling-1684289396532.json @@ -0,0 +1,1359 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": false, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [ + "tgid:$tgid" + ], + "type": "tags" + }, + "type": "dashboard" + }, + { + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "enable": false, + "hide": true, + "iconColor": "red", + "mappings": {}, + "name": "file-evts", + "tagsField": "event_type", + "target": { + "query": "event_type.keyword:file AND tgid:${tgid} AND pid:${pid}", + "refId": "annotation_query" + }, + "textField": "desc", + "timeEndField": "" + }, + { + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "enable": false, + "hide": true, + "iconColor": "yellow", + "mappings": {}, + "name": "net-evts", + "tagsField": "event_type", + "target": { + "query": "event_type.keyword:net AND tgid:${tgid} AND pid:${pid}", + "refId": "annotation_query" + }, + "textField": "desc", + "timeEndField": "" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 57, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "A-Ops Home Page" + ], + "targetBlank": false, + "title": "A-Ops Home Page", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 6, + "panels": [], + "title": "Thread profiling", + "type": "row" + }, + { + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [], + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 16, + "interval": "30s", + "options": { + "displayLabels": [ + "percent", + "value", + "name" + ], + "legend": { + "displayMode": "table", + "placement": "right", + "showLegend": true, + "values": [ + "percent", + "value" + ] + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "alias": "", + "bucketAggs": [ + { + "field": "event_type.keyword", + "id": "3", + "settings": { + "min_doc_count": "1", + "order": "desc", + "orderBy": "_term", + "size": "10" + }, + "type": "terms" + }, + { + "field": "@timestamp", + "id": "4", + "settings": { + "interval": "auto", + "min_doc_count": "0", + "timeZone": "utc", + "trimEdges": "0" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "metrics": [ + { + "field": "Attributes.duration", + "id": "1", + "type": "sum" + } + ], + "query": "comm_tgid.keyword:${comm_tgid} AND NOT comm_pid.keyword:C1\\ Compiler* AND NOT comm_pid.keyword:C2\\ Compiler* AND NOT comm_pid.keyword:VM* AND NOT comm_pid.keyword:NIOWorkerThread*", + "refId": "A", + "timeField": "@timestamp" + } + ], + "title": "进程 ${comm_tgid} 事件执行时间统计", + "type": "piechart" + }, + { + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "targetBlank": true, + "title": "event detail", + "url": "d/KbKSe6LVz/threadprofiling-funccallstack?orgId=1&from=${__from}&to=${__to}&var-event_name=${__data.fields.event_name}&var-event_type=${__data.fields.event_type}&var-pid=${__data.fields.pid}&var-start_time=${__data.fields.Timestamp}&var-end_time=${__data.fields[\"Attributes.end_time\"]}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 11, + "w": 24, + "x": 0, + "y": 8 + }, + "id": 20, + "options": { + "colorByField": "event_type", + "colors": [ + { + "color": "#FADE2A", + "text": "net" + }, + { + "color": "#5794F2", + "text": "file" + }, + { + "color": "#726768", + "text": "futex" + }, + { + "color": "green", + "text": "oncpu" + }, + { + "color": "#C0D8FF", + "text": "other" + }, + { + "color": "#FF9830", + "text": "proc" + }, + { + "color": "#FFA6B0", + "text": "ipc" + } + ], + "endField": "Attributes.end_time", + "experiments": { + "enabled": false + }, + "labelFields": [ + "event_type", + "desc", + "Attributes.count" + ], + "showYAxis": true, + "sortBy": "text", + "sortOrder": "asc", + "startField": "@timestamp", + "textField": "comm_pid" + }, + "targets": [ + { + "alias": "", + "bucketAggs": [ + { + "field": "@timestamp", + "id": "2", + "settings": { + "interval": "auto" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "metrics": [ + { + "hide": false, + "id": "1", + "settings": { + "limit": "5000" + }, + "type": "logs" + } + ], + "query": "_exists_:event_name AND comm_tgid.keyword:${comm_tgid}", + "refId": "A", + "timeField": "@timestamp" + } + ], + "title": "进程 ${comm_tgid} 剖析", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "pid" + } + ], + "fields": {} + } + }, + { + "id": "filterByValue", + "options": { + "filters": [ + { + "config": { + "id": "regex", + "options": { + "value": "^(C1 Compiler|C2 Compiler|VM |NIOWorkerThread).*" + } + }, + "fieldName": "comm_pid" + }, + { + "config": { + "id": "regex", + "options": { + "value": "^java.*" + } + }, + "fieldName": "comm_tgid" + } + ], + "match": "all", + "type": "exclude" + } + } + ], + "type": "marcusolsson-gantt-panel" + }, + { + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 10, + "x": 14, + "y": 19 + }, + "id": 26, + "options": { + "inlineEditing": false, + "root": { + "background": { + "color": { + "fixed": "transparent" + } + }, + "border": { + "color": { + "fixed": "dark-green" + } + }, + "constraint": { + "horizontal": "left", + "vertical": "top" + }, + "elements": [ + { + "background": { + "color": { + "fixed": "green" + }, + "image": { + "field": "", + "fixed": "", + "mode": "fixed" + } + }, + "border": { + "color": { + "fixed": "dark-green" + } + }, + "config": { + "align": "center", + "color": { + "fixed": "#000000" + }, + "valign": "middle" + }, + "constraint": { + "horizontal": "left", + "vertical": "top" + }, + "name": "oncpu_leg", + "placement": { + "height": 15, + "left": 20, + "top": 30, + "width": 100 + }, + "type": "rectangle" + }, + { + "background": { + "color": { + "fixed": "transparent" + } + }, + "border": { + "color": { + "fixed": "dark-green" + } + }, + "config": { + "align": "left", + "color": { + "fixed": "rgb(204, 204, 220)" + }, + "size": 16, + "text": { + "fixed": "oncpu" + }, + "valign": "middle" + }, + "constraint": { + "horizontal": "left", + "vertical": "top" + }, + "name": "oncpu_text", + "placement": { + "height": 50, + "left": 130, + "top": 13, + "width": 100 + }, + "type": "text" + }, + { + "background": { + "color": { + "fixed": "#726768" + }, + "image": { + "field": "", + "fixed": "", + "mode": "fixed" + } + }, + "border": { + "color": { + "fixed": "dark-green" + } + }, + "config": { + "align": "center", + "color": { + "fixed": "#000000" + }, + "valign": "middle" + }, + "constraint": { + "horizontal": "left", + "vertical": "top" + }, + "name": "futex_leg", + "placement": { + "height": 15, + "left": 20, + "top": 55, + "width": 100 + }, + "type": "rectangle" + }, + { + "background": { + "color": { + "fixed": "transparent" + } + }, + "border": { + "color": { + "fixed": "dark-green" + } + }, + "config": { + "align": "left", + "color": { + "fixed": "rgb(204, 204, 220)" + }, + "size": 16, + "text": { + "fixed": "futex" + }, + "valign": "middle" + }, + "constraint": { + "horizontal": "left", + "vertical": "top" + }, + "name": "futex_text", + "placement": { + "height": 50, + "left": 130, + "top": 38, + "width": 100 + }, + "type": "text" + }, + { + "background": { + "color": { + "fixed": "blue" + }, + "image": { + "field": "", + "fixed": "", + "mode": "fixed" + } + }, + "border": { + "color": { + "fixed": "dark-green" + } + }, + "config": { + "align": "center", + "color": { + "fixed": "#000000" + }, + "valign": "middle" + }, + "constraint": { + "horizontal": "left", + "vertical": "top" + }, + "name": "file_leg", + "placement": { + "height": 15, + "left": 200, + "top": 30, + "width": 100 + }, + "type": "rectangle" + }, + { + "background": { + "color": { + "fixed": "transparent" + } + }, + "border": { + "color": { + "fixed": "dark-green" + } + }, + "config": { + "align": "left", + "color": { + "fixed": "rgb(204, 204, 220)" + }, + "size": 16, + "text": { + "fixed": "file" + }, + "valign": "middle" + }, + "constraint": { + "horizontal": "left", + "vertical": "top" + }, + "name": "file_text", + "placement": { + "height": 50, + "left": 310, + "top": 13, + "width": 100 + }, + "type": "text" + }, + { + "background": { + "color": { + "fixed": "yellow" + }, + "image": { + "field": "", + "fixed": "", + "mode": "fixed" + } + }, + "border": { + "color": { + "fixed": "dark-green" + } + }, + "config": { + "align": "center", + "color": { + "fixed": "#000000" + }, + "valign": "middle" + }, + "constraint": { + "horizontal": "left", + "vertical": "top" + }, + "name": "net_leg", + "placement": { + "height": 15, + "left": 200, + "top": 55, + "width": 100 + }, + "type": "rectangle" + }, + { + "background": { + "color": { + "fixed": "transparent" + } + }, + "border": { + "color": { + "fixed": "dark-green" + } + }, + "config": { + "align": "left", + "color": { + "fixed": "rgb(204, 204, 220)" + }, + "size": 16, + "text": { + "fixed": "net" + }, + "valign": "middle" + }, + "constraint": { + "horizontal": "left", + "vertical": "top" + }, + "name": "net_text", + "placement": { + "height": 50, + "left": 310, + "top": 38, + "width": 100 + }, + "type": "text" + }, + { + "background": { + "color": { + "fixed": "orange" + }, + "image": { + "field": "", + "fixed": "", + "mode": "fixed" + } + }, + "border": { + "color": { + "fixed": "dark-green" + } + }, + "config": { + "align": "center", + "color": { + "fixed": "#000000" + }, + "valign": "middle" + }, + "constraint": { + "horizontal": "left", + "vertical": "top" + }, + "name": "proc_leg", + "placement": { + "height": 15, + "left": 380, + "top": 30, + "width": 100 + }, + "type": "rectangle" + }, + { + "background": { + "color": { + "fixed": "transparent" + } + }, + "border": { + "color": { + "fixed": "dark-green" + } + }, + "config": { + "align": "left", + "color": { + "fixed": "rgb(204, 204, 220)" + }, + "size": 16, + "text": { + "fixed": "proc" + }, + "valign": "middle" + }, + "constraint": { + "horizontal": "left", + "vertical": "top" + }, + "name": "proc_text", + "placement": { + "height": 50, + "left": 490, + "top": 13, + "width": 100 + }, + "type": "text" + }, + { + "background": { + "color": { + "fixed": "super-light-red" + }, + "image": { + "field": "", + "fixed": "", + "mode": "fixed" + } + }, + "border": { + "color": { + "fixed": "dark-green" + } + }, + "config": { + "align": "center", + "color": { + "fixed": "#000000" + }, + "valign": "middle" + }, + "constraint": { + "horizontal": "left", + "vertical": "top" + }, + "name": "ipc_leg", + "placement": { + "height": 15, + "left": 380, + "top": 55, + "width": 100 + }, + "type": "rectangle" + }, + { + "background": { + "color": { + "fixed": "transparent" + } + }, + "border": { + "color": { + "fixed": "dark-green" + } + }, + "config": { + "align": "left", + "color": { + "fixed": "rgb(204, 204, 220)" + }, + "size": 16, + "text": { + "fixed": "ipc" + }, + "valign": "middle" + }, + "constraint": { + "horizontal": "left", + "vertical": "top" + }, + "name": "ipc_text", + "placement": { + "height": 50, + "left": 490, + "top": 38, + "width": 100 + }, + "type": "text" + }, + { + "background": { + "color": { + "fixed": "super-light-blue" + }, + "image": { + "field": "", + "fixed": "", + "mode": "fixed" + } + }, + "border": { + "color": { + "fixed": "dark-green" + } + }, + "config": { + "align": "center", + "color": { + "fixed": "#000000" + }, + "valign": "middle" + }, + "constraint": { + "horizontal": "left", + "vertical": "top" + }, + "name": "other_leg", + "placement": { + "height": 15, + "left": 560, + "top": 30, + "width": 100 + }, + "type": "rectangle" + }, + { + "background": { + "color": { + "fixed": "transparent" + } + }, + "border": { + "color": { + "fixed": "dark-green" + } + }, + "config": { + "align": "left", + "color": { + "fixed": "rgb(204, 204, 220)" + }, + "size": 16, + "text": { + "fixed": "other" + }, + "valign": "middle" + }, + "constraint": { + "horizontal": "left", + "vertical": "top" + }, + "name": "other_text", + "placement": { + "height": 50, + "left": 670, + "top": 13, + "width": 100 + }, + "type": "text" + } + ], + "name": "Element 1681369998835", + "placement": { + "height": 100, + "left": 0, + "top": 0, + "width": 100 + }, + "type": "frame" + }, + "showAdvancedTypes": false + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "alias": "", + "bucketAggs": [ + { + "field": "@timestamp", + "id": "2", + "settings": { + "interval": "auto" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "hide": false, + "metrics": [ + { + "id": "1", + "type": "logs" + } + ], + "query": "event_type.keyword:*", + "refId": "A", + "timeField": "@timestamp" + } + ], + "type": "canvas" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 22 + }, + "id": 24, + "panels": [], + "title": "Thread profiling detail", + "type": "row" + }, + { + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [], + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 23 + }, + "id": 22, + "interval": "30s", + "maxPerRow": 4, + "options": { + "displayLabels": [ + "percent", + "value", + "name" + ], + "legend": { + "displayMode": "table", + "placement": "right", + "showLegend": true, + "values": [ + "percent", + "value" + ] + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "repeat": "comm_pid", + "repeatDirection": "h", + "targets": [ + { + "alias": "", + "bucketAggs": [ + { + "field": "event_type.keyword", + "id": "3", + "settings": { + "min_doc_count": "1", + "order": "desc", + "orderBy": "_term", + "size": "10" + }, + "type": "terms" + }, + { + "field": "@timestamp", + "id": "4", + "settings": { + "interval": "auto", + "min_doc_count": "0", + "timeZone": "utc", + "trimEdges": "0" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "metrics": [ + { + "field": "Attributes.duration", + "id": "1", + "type": "sum" + } + ], + "query": "comm_tgid.keyword:${comm_tgid} AND comm_pid.keyword:${comm_pid}", + "refId": "A", + "timeField": "@timestamp" + } + ], + "title": "线程 ${comm_pid} 事件执行时间统计", + "type": "piechart" + }, + { + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [ + { + "targetBlank": true, + "title": "event detail", + "url": "d/KbKSe6LVz/threadprofiling-funccallstack?orgId=1&from=${__from}&to=${__to}&var-event_name=${__data.fields.event_name}&var-event_type=${__data.fields.event_type}&var-pid=${__data.fields.pid}&var-start_time=${__data.fields.Timestamp}&var-end_time=${__data.fields[\"Attributes.end_time\"]}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 30 + }, + "id": 21, + "options": { + "colorByField": "event_type", + "colors": [ + { + "color": "#FADE2A", + "text": "net" + }, + { + "color": "#5794F2", + "text": "file" + }, + { + "color": "green", + "text": "oncpu" + }, + { + "color": "#7e7172", + "text": "futex" + }, + { + "color": "#C0D8FF", + "text": "other" + }, + { + "color": "#FF9830", + "text": "proc" + }, + { + "color": "#FFA6B0", + "text": "ipc" + } + ], + "endField": "Attributes.end_time", + "labelFields": [ + "desc", + "Attributes.count" + ], + "showYAxis": true, + "sortBy": "text", + "sortOrder": "asc", + "startField": "@timestamp", + "textField": "event_type" + }, + "repeat": "comm_pid", + "repeatDirection": "v", + "targets": [ + { + "alias": "", + "bucketAggs": [ + { + "field": "@timestamp", + "id": "2", + "settings": { + "interval": "auto" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "hide": false, + "metrics": [ + { + "id": "1", + "type": "logs" + } + ], + "query": "event_name:* AND comm_tgid.keyword:${comm_tgid} AND comm_pid.keyword:${comm_pid}", + "refId": "A", + "timeField": "@timestamp" + } + ], + "title": "线程 ${comm_pid} 剖析", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "string", + "targetField": "pid" + } + ], + "fields": {} + } + } + ], + "type": "marcusolsson-gantt-panel" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "gridPos": { + "h": 4, + "w": 24, + "x": 0, + "y": 44 + }, + "id": 28, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "", + "mode": "markdown" + }, + "pluginVersion": "9.3.1", + "transparent": true, + "type": "text" + } + ], + "refresh": false, + "schemaVersion": 37, + "style": "dark", + "tags": [ + "ThreadProfiling Offical" + ], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": "17090e11-17c4-4437-a4f0-be52f7484030", + "value": "17090e11-17c4-4437-a4f0-be52f7484030" + }, + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "definition": "{\"find\": \"terms\", \"field\": \"host_id.keyword\", \"query\": \"event_name:*\"}", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "host_id", + "options": [], + "query": "{\"find\": \"terms\", \"field\": \"host_id.keyword\", \"query\": \"event_name:*\"}", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": { + "selected": false, + "text": "-", + "value": "-" + }, + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "definition": "{\"find\": \"terms\", \"field\": \"container_name_id.keyword\", \"query\": \"event_name:*\"}", + "hide": 0, + "includeAll": false, + "label": "container", + "multi": false, + "name": "container_name_id", + "options": [], + "query": "{\"find\": \"terms\", \"field\": \"container_name_id.keyword\", \"query\": \"event_name:*\"}", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": { + "selected": false, + "text": "java-153316", + "value": "java-153316" + }, + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "definition": "{\"find\": \"terms\", \"field\": \"comm_tgid.keyword\", \"query\": \"event_name:* AND container_name_id.keyword:${container_name_id}\"}", + "hide": 0, + "includeAll": false, + "label": "process", + "multi": false, + "name": "comm_tgid", + "options": [], + "query": "{\"find\": \"terms\", \"field\": \"comm_tgid.keyword\", \"query\": \"event_name:* AND container_name_id.keyword:${container_name_id}\"}", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": { + "selected": true, + "text": [ + "CompeteThd1-153362", + "CompeteThd2-153363" + ], + "value": [ + "CompeteThd1-153362", + "CompeteThd2-153363" + ] + }, + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "definition": "{\"find\": \"terms\", \"field\": \"comm_pid.keyword\", \"query\": \"comm_tgid.keyword:${comm_tgid}\"}", + "hide": 0, + "includeAll": false, + "label": "thread", + "multi": true, + "name": "comm_pid", + "options": [], + "query": "{\"find\": \"terms\", \"field\": \"comm_pid.keyword\", \"query\": \"comm_tgid.keyword:${comm_tgid}\"}", + "refresh": 1, + "regex": "/^(?!C1 Compiler|C2 Compiler|VM |NIOWorkerThread).*/", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "2023-04-15T09:25:16.209Z", + "to": "2023-04-15T09:30:05.203Z" + }, + "timepicker": {}, + "timezone": "", + "title": "ThreadProfiling", + "uid": "GAvuYB84z", + "version": 4, + "weekStart": "" +} \ No newline at end of file diff --git "a/grafana/dashboard/ThreadProfiling\342\200\224EventDetail-1684289402984.json" "b/grafana/dashboard/ThreadProfiling\342\200\224EventDetail-1684289402984.json" new file mode 100644 index 0000000000000000000000000000000000000000..0c851bbcbc4e80c6fc7507a0e6ea8fff22200e72 --- /dev/null +++ "b/grafana/dashboard/ThreadProfiling\342\200\224EventDetail-1684289402984.json" @@ -0,0 +1,254 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "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" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 58, + "links": [], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "panels": [], + "title": "Event Detail", + "type": "row" + }, + { + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "gridPos": { + "h": 20, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 4, + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": true, + "showCommonLabels": false, + "showLabels": false, + "showTime": true, + "sortOrder": "Descending", + "wrapLogMessage": true + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "alias": "", + "bucketAggs": [], + "datasource": { + "type": "elasticsearch", + "uid": "CcWX7dJVz" + }, + "hide": false, + "metrics": [ + { + "id": "1", + "settings": { + "size": "500" + }, + "type": "raw_data" + } + ], + "query": "pid.keyword:${pid} AND event_name.keyword:${event_name} AND event_type.keyword:${event_type} AND Attributes.start_time:${start_time} AND Attributes.end_time:${end_time}", + "refId": "A", + "timeField": "@timestamp" + } + ], + "title": "Event detail", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "include": { + "names": [ + "@timestamp", + "Attributes.count", + "Attributes.duration", + "Attributes.end_time", + "Attributes.func.stack", + "Attributes.futex.op", + "Attributes.start_time", + "Body", + "Resource.container.id", + "Resource.container.name", + "Resource.host.id", + "Resource.host.name", + "Resource.process.comm", + "Resource.thread.comm", + "Resource.thread.pid", + "Resource.thread.tgid", + "SeverityNumber", + "SeverityText", + "Attributes.event.name", + "Attributes.event.type" + ] + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Body": false + }, + "indexByName": { + "@timestamp": 0, + "Attributes.count": 6, + "Attributes.duration": 5, + "Attributes.end_time": 4, + "Attributes.event.name": 1, + "Attributes.event.type": 2, + "Attributes.func.stack": 7, + "Attributes.futex.op": 8, + "Attributes.start_time": 3, + "Body": 17, + "Resource.container.id": 9, + "Resource.container.name": 10, + "Resource.host.id": 11, + "Resource.host.name": 12, + "Resource.process.comm": 13, + "Resource.thread.comm": 14, + "Resource.thread.pid": 15, + "Resource.thread.tgid": 16, + "SeverityNumber": 18, + "SeverityText": 19 + }, + "renameByName": {} + } + } + ], + "type": "logs" + } + ], + "refresh": false, + "schemaVersion": 37, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": "futex", + "value": "futex" + }, + "hide": 0, + "includeAll": false, + "multi": false, + "name": "event_name", + "options": [], + "query": "", + "queryValue": "aa", + "skipUrlSync": false, + "type": "custom" + }, + { + "current": { + "selected": false, + "text": "futex", + "value": "futex" + }, + "hide": 0, + "includeAll": false, + "multi": false, + "name": "event_type", + "options": [], + "query": "", + "queryValue": "bb", + "skipUrlSync": false, + "type": "custom" + }, + { + "current": { + "selected": false, + "text": "2145645", + "value": "2145645" + }, + "hide": 0, + "includeAll": false, + "multi": false, + "name": "pid", + "options": [], + "query": "", + "queryValue": "cc", + "skipUrlSync": false, + "type": "custom" + }, + { + "current": { + "selected": false, + "text": "1681388667020", + "value": "1681388667020" + }, + "hide": 2, + "includeAll": false, + "multi": false, + "name": "start_time", + "options": [], + "query": "", + "skipUrlSync": false, + "type": "custom" + }, + { + "current": { + "selected": false, + "text": "1681388667086", + "value": "1681388667086" + }, + "hide": 2, + "includeAll": false, + "multi": false, + "name": "end_time", + "options": [], + "query": "", + "skipUrlSync": false, + "type": "custom" + } + ] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": { + "hidden": false + }, + "timezone": "", + "title": "ThreadProfiling—EventDetail", + "uid": "3MHCLB8Vz", + "version": 1, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/Topo Graph - App Diagnose-1684289414651.json b/grafana/dashboard/Topo Graph - App Diagnose-1684289414651.json new file mode 100644 index 0000000000000000000000000000000000000000..7c0c63496438b0e2fa99df8fe253d238d5cd60a2 --- /dev/null +++ b/grafana/dashboard/Topo Graph - App Diagnose-1684289414651.json @@ -0,0 +1,577 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "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" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 48, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "A-Ops Home Page" + ], + "targetBlank": false, + "title": "A-Ops Home Page", + "tooltip": "", + "type": "dashboards", + "url": "" + }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "App Performance Diagnose Offical" + ], + "targetBlank": false, + "title": "App Performance Diagnose", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "elasticsearch", + "uid": "57b5IjF4z" + }, + "gridPos": { + "h": 26, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "options": { + "appPerfDiagnoseUrl": "", + "dataMapping": { + "aggregationType": "service", + "baselineRtUpper": "threshold", + "errorRateColumn": "error-rate", + "errorRateOutgoingColumn": "error-rate-out", + "extOrigin": "external_origin", + "extTarget": "external_target", + "requestRateColumn": "request-rate", + "requestRateOutgoingColumn": "request-rate-out", + "responseTimeColumn": "response-time", + "responseTimeOutgoingColumn": "response-time-out", + "showDummyData": false, + "sourceColumn": "origin_service", + "targetColumn": "target_service", + "type": "type" + }, + "drillDownLink": "", + "externalIcons": [ + { + "filename": "web", + "pattern": "web" + }, + { + "filename": "message", + "pattern": "jms" + }, + { + "filename": "database", + "pattern": "jdbc" + }, + { + "filename": "http", + "pattern": "http" + } + ], + "filterEmptyConnections": true, + "flameGraphUrl": "", + "graphSourceUrl": "", + "icons": [ + { + "filename": "java", + "pattern": "java" + }, + { + "filename": "star_trek", + "pattern": "spok|star trek" + }, + { + "filename": "tcp", + "pattern": "tcp_link" + }, + { + "filename": "app", + "pattern": "appinstance" + }, + { + "filename": "block", + "pattern": "block" + }, + { + "filename": "pm", + "pattern": "comp" + }, + { + "filename": "database", + "pattern": "gaussdb_proc" + }, + { + "filename": "thread", + "pattern": "thread" + }, + { + "filename": "process", + "pattern": "proc" + }, + { + "filename": "disk", + "pattern": "disk" + }, + { + "filename": "vm", + "pattern": "vm" + }, + { + "filename": "ceph", + "pattern": "ceph" + }, + { + "filename": "docker", + "pattern": "container" + }, + { + "filename": "pm", + "pattern": "host" + } + ], + "ioStackBlockAndProcMetricsUrl": "", + "ioStackTcpMetricsUrl": "", + "showAppPerfDiagnose": false, + "showBaselines": false, + "showConnectionStats": true, + "showDebugInformation": false, + "showFlameGraph": false, + "showIOStackData": false, + "showSourceGraph": false, + "showSysPerfDiagnose": false, + "style": { + "dangerColor": "rgb(196, 22, 42)", + "healthyColor": "rgb(87, 148, 242)", + "noDataColor": "rgb(123, 123, 138)" + }, + "sumTimings": true, + "systemPerfDiagnoseUrl": "", + "timeFormat": "m" + }, + "pluginVersion": "4.0.2", + "targets": [ + { + "alias": "", + "bucketAggs": [ + { + "field": "timestamp", + "id": "2", + "settings": { + "interval": "auto" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "elasticsearch", + "uid": "57b5IjF4z" + }, + "metrics": [ + { + "id": "1", + "type": "logs" + } + ], + "query": "((!src_type.keyword:disk) OR (src_type.keyword:disk AND src_status.keyword:bad)) AND ((!src_type.keyword:block) OR (src_type.keyword:block AND src_status.keyword:bad)) AND \n((!dst_type.keyword:disk) OR (dst_type.keyword:disk AND dst_status.keyword:bad)) AND ((!dst_type.keyword:block) OR (dst_type.keyword:block AND dst_status.keyword:bad)) AND !src_type.keyword:mem !src_type.keyword:net AND ((!src_type.keyword:cpu ) OR (src_type.keyword:cpu AND src_status.keyword:bad)) AND !src_type.keyword:fs AND !src_type.keyword:nic AND !src_type.keyword:thread AND !dst_type.keyword:nic AND !dst_type.keyword:appinstance AND !src_comm:gala AND !dst_comm:gala AND !src_comm:python* AND !dst_comm:python* AND ((!src_type.keyword:sli) OR (src_type.keyword:sli AND src_status.keyword:bad)) AND !src_type.keyword:endpoint AND\n(!src_comm:arango* AND !dst_comm:arango*) AND !edge_type.keyword:connect AND !(src_comm.keyword:tcp_link* AND dst_comm.keyword:tcp_link*)", + "refId": "A", + "timeField": "timestamp" + }, + { + "alias": "", + "bucketAggs": [ + { + "field": "timestamp", + "id": "2", + "settings": { + "interval": "auto" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "elasticsearch", + "uid": "57b5IjF4z" + }, + "hide": true, + "metrics": [ + { + "id": "1", + "type": "logs" + } + ], + "query": "(!dst_type.keyword:block OR (dst_type.keyword:block AND dst_status.keyword:bad)) AND !src_type.keyword:disk AND !src_type.keyword:mem !src_type.keyword:net AND !src_type.keyword:cpu AND !src_type.keyword:fs AND !src_type.keyword:nic AND !src_type.keyword:thread AND !dst_type.keyword:nic AND !dst_type.keyword:appinstance AND !src_comm:gala AND !dst_comm:gala AND !src_comm:python* AND !dst_comm:python* AND !src_type.keyword:sli AND !src_type.keyword:endpoint", + "refId": "B", + "timeField": "timestamp" + } + ], + "title": "故障传播图", + "type": "aops-sdg-panel" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Mixed --" + }, + "gridPos": { + "h": 14, + "w": 24, + "x": 0, + "y": 26 + }, + "id": 4, + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": true, + "showCommonLabels": false, + "showLabels": false, + "showTime": true, + "sortOrder": "Descending", + "wrapLogMessage": true + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "alias": "", + "bucketAggs": [], + "datasource": { + "type": "elasticsearch", + "uid": "AR7pYlF4z" + }, + "hide": false, + "metrics": [ + { + "id": "1", + "settings": { + "size": "500" + }, + "type": "raw_data" + } + ], + "query": "Attributes.event_id.keyword:$EventId", + "refId": "B", + "timeField": "@timestamp" + } + ], + "title": "根因定位详情", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "@version": true, + "Attributes.event_id": true, + "Body": true, + "Resource.abnormal_kpi.desc": true, + "Resource.abnormal_kpi.entity_id": true, + "Resource.abnormal_kpi.metric_id": true, + "Resource.abnormal_kpi.metric_labels.app": true, + "Resource.abnormal_kpi.metric_labels.datname": true, + "Resource.abnormal_kpi.metric_labels.ins_id": true, + "Resource.abnormal_kpi.metric_labels.instance": true, + "Resource.abnormal_kpi.metric_labels.job": false, + "Resource.abnormal_kpi.metric_labels.machine_id": true, + "Resource.abnormal_kpi.metric_labels.method": true, + "Resource.abnormal_kpi.metric_labels.server_ip": true, + "Resource.abnormal_kpi.metric_labels.server_port": true, + "Resource.abnormal_kpi.metric_labels.tgid": true, + "Resource.abnormal_kpi.timestamp": true, + "Resource.cause_metrics": true, + "SeverityNumber": true, + "SeverityText": true, + "_id": true, + "_index": true, + "_type": true, + "event.original": true, + "highlight": true, + "message": true, + "sort": true + }, + "indexByName": { + "@timestamp": 2, + "@version": 3, + "Attributes.event_id": 4, + "Body": 5, + "Resource.abnormal_kpi.desc": 6, + "Resource.abnormal_kpi.entity_id": 7, + "Resource.abnormal_kpi.metric_id": 8, + "Resource.abnormal_kpi.metric_labels.app": 9, + "Resource.abnormal_kpi.metric_labels.datname": 10, + "Resource.abnormal_kpi.metric_labels.ins_id": 11, + "Resource.abnormal_kpi.metric_labels.instance": 12, + "Resource.abnormal_kpi.metric_labels.job": 0, + "Resource.abnormal_kpi.metric_labels.machine_id": 13, + "Resource.abnormal_kpi.metric_labels.method": 14, + "Resource.abnormal_kpi.metric_labels.server_ip": 15, + "Resource.abnormal_kpi.metric_labels.server_port": 16, + "Resource.abnormal_kpi.metric_labels.tgid": 17, + "Resource.abnormal_kpi.timestamp": 18, + "Resource.cause_metrics": 19, + "Resource.desc": 20, + "Resource.top1": 21, + "Resource.top2": 22, + "Resource.top3": 23, + "SeverityNumber": 24, + "SeverityText": 25, + "Timestamp": 26, + "_id": 27, + "_index": 28, + "_type": 29, + "event.original": 30, + "event_id": 1, + "highlight": 31, + "keywords": 32, + "message": 33, + "sort": 34 + }, + "renameByName": {} + } + }, + { + "id": "renameByRegex", + "options": { + "regex": "^.*(Resource.\\w+).*$", + "renamePattern": "$1" + } + } + ], + "type": "logs" + }, + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "left", + "displayMode": "auto", + "filterable": false, + "inspect": true + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "host" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "color-text" + }, + { + "id": "custom.width", + "value": 187 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ip" + }, + "properties": [ + { + "id": "custom.width", + "value": 126 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "machine_id" + }, + "properties": [ + { + "id": "custom.width", + "value": 285 + } + ] + } + ] + }, + "gridPos": { + "h": 10, + "w": 10, + "x": 0, + "y": 40 + }, + "id": 6, + "options": { + "footer": { + "enablePagination": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "vSoeXxF4z" + }, + "editorMode": "code", + "exemplar": false, + "expr": "gala_gopher_host_value", + "format": "table", + "instant": true, + "interval": "1d", + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Value": true, + "__name__": true, + "cpu_num": true, + "host_type": true, + "hostname": true, + "instance": true, + "kversion": true, + "memory_MB": true, + "os_version": true + }, + "indexByName": { + "Time": 2, + "Value": 12, + "__name__": 3, + "cpu_num": 4, + "host_type": 5, + "hostname": 6, + "instance": 7, + "ip_addr": 8, + "job": 0, + "kversion": 9, + "machine_id": 1, + "memory_MB": 10, + "os_version": 11 + }, + "renameByName": { + "ip_addr": "ip", + "job": "host" + } + } + } + ], + "type": "table" + } + ], + "refresh": false, + "schemaVersion": 37, + "style": "dark", + "tags": [ + "Topo Graph APP Diagnose Offical" + ], + "templating": { + "list": [ + { + "datasource": { + "type": "elasticsearch", + "uid": "57b5IjF4z" + }, + "filters": [], + "hide": 0, + "name": "filter", + "skipUrlSync": false, + "type": "adhoc" + }, + { + "current": { + "selected": false, + "text": "1671094363208_b59927a6-bce5-4f0a-a36e-18895ad59e6f_sli_2866035_14566_POSTGRE_0", + "value": "1671094363208_b59927a6-bce5-4f0a-a36e-18895ad59e6f_sli_2866035_14566_POSTGRE_0" + }, + "hide": 0, + "includeAll": false, + "label": "EventId", + "multi": false, + "name": "EventId", + "options": [], + "query": "", + "queryValue": "", + "skipUrlSync": false, + "type": "custom" + } + ] + }, + "time": { + "from": "2022-12-15T08:50:43.208Z", + "to": "2022-12-15T08:52:43.208Z" + }, + "timepicker": {}, + "timezone": "", + "title": "Topo Graph - App Diagnose", + "uid": "1mG4JNc4e", + "version": 9, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/Topo Graph - Resource-1684289420667.json b/grafana/dashboard/Topo Graph - Resource-1684289420667.json new file mode 100644 index 0000000000000000000000000000000000000000..8a0dbffd146f846dda1ab93adf188dc838be17d3 --- /dev/null +++ b/grafana/dashboard/Topo Graph - Resource-1684289420667.json @@ -0,0 +1,248 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "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" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 34, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "A-Ops Home Page" + ], + "targetBlank": false, + "title": "A-Ops Home Page", + "tooltip": "", + "type": "dashboards", + "url": "" + }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "Topo Graph APP Offical" + ], + "targetBlank": false, + "title": "Topo Graph APP Offica", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "elasticsearch", + "uid": "57b5IjF4z" + }, + "gridPos": { + "h": 26, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "options": { + "appPerfDiagnoseUrl": "", + "dataMapping": { + "aggregationType": "service", + "baselineRtUpper": "threshold", + "errorRateColumn": "error-rate", + "errorRateOutgoingColumn": "error-rate-out", + "extOrigin": "external_origin", + "extTarget": "external_target", + "requestRateColumn": "request-rate", + "requestRateOutgoingColumn": "request-rate-out", + "responseTimeColumn": "response-time", + "responseTimeOutgoingColumn": "response-time-out", + "showDummyData": false, + "sourceColumn": "origin_service", + "targetColumn": "target_service", + "type": "type" + }, + "drillDownLink": "", + "externalIcons": [ + { + "filename": "web", + "pattern": "web" + }, + { + "filename": "message", + "pattern": "jms" + }, + { + "filename": "database", + "pattern": "jdbc" + }, + { + "filename": "http", + "pattern": "http" + } + ], + "filterEmptyConnections": true, + "flameGraphUrl": "http://10.137.16.161:3000/d/slaOE024k/system-flame-redis?orgId=1&var-instance=All&var-machine_id=", + "graphSourceUrl": "", + "icons": [ + { + "filename": "java", + "pattern": "java" + }, + { + "filename": "star_trek", + "pattern": "spok|star trek" + }, + { + "filename": "tcp", + "pattern": "tcp_link" + }, + { + "filename": "app", + "pattern": "appinstance" + }, + { + "filename": "block", + "pattern": "block" + }, + { + "filename": "pm", + "pattern": "computer" + }, + { + "filename": "database", + "pattern": "gaussdb_proc" + }, + { + "filename": "thread", + "pattern": "thread" + }, + { + "filename": "process", + "pattern": "proc" + }, + { + "filename": "disk", + "pattern": "disk" + }, + { + "filename": "vm", + "pattern": "vm" + }, + { + "filename": "ceph", + "pattern": "ceph" + }, + { + "filename": "docker", + "pattern": "container" + } + ], + "ioStackBlockAndProcMetricsUrl": "", + "ioStackTcpMetricsUrl": "", + "showAppPerfDiagnose": false, + "showBaselines": false, + "showConnectionStats": true, + "showDebugInformation": false, + "showFlameGraph": true, + "showIOStackData": false, + "showSourceGraph": false, + "showSysPerfDiagnose": false, + "style": { + "dangerColor": "rgb(196, 22, 42)", + "healthyColor": "rgb(87, 148, 242)", + "noDataColor": "rgb(123, 123, 138)" + }, + "sumTimings": true, + "systemPerfDiagnoseUrl": "", + "timeFormat": "m" + }, + "pluginVersion": "4.0.2", + "targets": [ + { + "alias": "", + "bucketAggs": [ + { + "field": "timestamp", + "id": "2", + "settings": { + "interval": "auto" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "elasticsearch", + "uid": "57b5IjF4z" + }, + "metrics": [ + { + "id": "1", + "type": "logs" + } + ], + "query": "!src_type.keyword:proc AND !dst_type.keyword:proc AND !src_type.keyword:tcp_link AND !dst_type.keyword:tcp_link", + "refId": "A", + "timeField": "timestamp" + } + ], + "type": "aops-sdg-panel" + } + ], + "refresh": false, + "schemaVersion": 37, + "style": "dark", + "tags": [ + "Topo Graph - Resource - Official" + ], + "templating": { + "list": [ + { + "datasource": { + "type": "elasticsearch", + "uid": "57b5IjF4z" + }, + "filters": [], + "hide": 0, + "name": "filter", + "skipUrlSync": false, + "type": "adhoc" + } + ] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Topo Graph - Resource", + "uid": "l4x-xA24k", + "version": 10, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/Topo Graph-1684289409256.json b/grafana/dashboard/Topo Graph-1684289409256.json new file mode 100644 index 0000000000000000000000000000000000000000..2c12f7e8e212c4cee2c9f6e833f3f55f9fdb86e1 --- /dev/null +++ b/grafana/dashboard/Topo Graph-1684289409256.json @@ -0,0 +1,265 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "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" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 12, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "A-Ops Home Page" + ], + "targetBlank": false, + "title": "A-Ops Home Page", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "elasticsearch", + "uid": "57b5IjF4z" + }, + "gridPos": { + "h": 26, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "options": { + "appPerfDiagnoseUrl": "http://10.137.16.161:3000/d/6Vc0aThVz/app-performance-diagnose?orgId=1&var-instance=", + "dataMapping": { + "aggregationType": "service", + "baselineRtUpper": "threshold", + "errorRateColumn": "error-rate", + "errorRateOutgoingColumn": "error-rate-out", + "extOrigin": "external_origin", + "extTarget": "external_target", + "requestRateColumn": "request-rate", + "requestRateOutgoingColumn": "request-rate-out", + "responseTimeColumn": "response-time", + "responseTimeOutgoingColumn": "response-time-out", + "showDummyData": false, + "sourceColumn": "origin_service", + "targetColumn": "target_service", + "type": "type" + }, + "drillDownLink": "", + "externalIcons": [ + { + "filename": "web", + "pattern": "web" + }, + { + "filename": "message", + "pattern": "jms" + }, + { + "filename": "database", + "pattern": "jdbc" + }, + { + "filename": "http", + "pattern": "http" + } + ], + "filterEmptyConnections": true, + "flameGraphUrl": "http://10.137.16.161:3000/d/slaOE024k/system-flame-redis?orgId=1&var-instance=All&var-machine_id=", + "graphSourceUrl": "http://10.137.16.161:3000/d/l4x-xA24k/topo-graph-resource?orgId=1&var-filter=dst_comm.keyword%7C%3D%7C", + "icons": [ + { + "filename": "java", + "pattern": "java" + }, + { + "filename": "star_trek", + "pattern": "spok|star trek" + }, + { + "filename": "tcp", + "pattern": "tcp_link" + }, + { + "filename": "app", + "pattern": "appinstance" + }, + { + "filename": "block", + "pattern": "block" + }, + { + "filename": "pm", + "pattern": "computer" + }, + { + "filename": "database", + "pattern": "gaussdb_proc" + }, + { + "filename": "thread", + "pattern": "thread" + }, + { + "filename": "process", + "pattern": "proc" + }, + { + "filename": "disk", + "pattern": "disk" + }, + { + "filename": "vm", + "pattern": "vm" + }, + { + "filename": "ceph", + "pattern": "ceph" + }, + { + "filename": "docker", + "pattern": "container" + }, + { + "filename": "pm", + "pattern": "host" + } + ], + "ioStackBlockAndProcMetricsUrl": "", + "ioStackTcpMetricsUrl": "", + "showAppPerfDiagnose": true, + "showBaselines": false, + "showConnectionStats": true, + "showDebugInformation": false, + "showFlameGraph": true, + "showIOStackData": false, + "showSourceGraph": true, + "showSysPerfDiagnose": true, + "style": { + "dangerColor": "rgb(196, 22, 42)", + "healthyColor": "rgb(87, 148, 242)", + "noDataColor": "rgb(123, 123, 138)" + }, + "sumTimings": true, + "systemPerfDiagnoseUrl": "http://10.137.16.161:3000/d/LcdxuB84k/system-performance-diagnose?orgId=1&refresh=5s&var-instance=", + "timeFormat": "m" + }, + "pluginVersion": "4.0.2", + "targets": [ + { + "alias": "", + "bucketAggs": [ + { + "field": "timestamp", + "id": "2", + "settings": { + "interval": "auto" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "elasticsearch", + "uid": "57b5IjF4z" + }, + "metrics": [ + { + "id": "1", + "type": "logs" + } + ], + "query": "!src_type.keyword:block AND !src_type.keyword:disk AND !src_type.keyword:mem !src_type.keyword:net AND !src_type.keyword:cpu AND !src_type.keyword:fs AND !src_type.keyword:nic AND !src_type.keyword:thread AND !dst_type.keyword:nic AND !dst_type.keyword:appinstance AND !src_comm:gala AND !dst_comm:gala AND !src_comm:python* AND !dst_comm:python* AND !src_type.keyword:sli AND !src_type.keyword:endpoint AND (!src_comm:arango* OR !dst_comm:arango*) AND !edge_type.keyword:connect AND !(src_comm.keyword:tcp_link* AND dst_comm.keyword:tcp_link*)", + "refId": "A", + "timeField": "timestamp" + }, + { + "alias": "", + "bucketAggs": [ + { + "field": "timestamp", + "id": "2", + "settings": { + "interval": "auto" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "elasticsearch", + "uid": "57b5IjF4z" + }, + "hide": true, + "metrics": [ + { + "id": "1", + "type": "count" + } + ], + "query": "", + "refId": "B", + "timeField": "timestamp" + } + ], + "type": "aops-sdg-panel" + } + ], + "refresh": false, + "schemaVersion": 37, + "style": "dark", + "tags": [ + "Topo Graph APP Offical" + ], + "templating": { + "list": [ + { + "datasource": { + "type": "elasticsearch", + "uid": "57b5IjF4z" + }, + "filters": [], + "hide": 0, + "name": "filter", + "skipUrlSync": false, + "type": "adhoc" + } + ] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Topo Graph", + "uid": "cqTv0ncVz", + "version": 48, + "weekStart": "" +} \ No newline at end of file