{ "__inputs": [ { "name": "DS_TSNET", "label": "tsnet", "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" } ], "__elements": {}, "__requires": [ { "type": "panel", "id": "bargauge", "name": "Bar gauge", "version": "" }, { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "11.3.1" }, { "type": "panel", "id": "piechart", "name": "Pie chart", "version": "" }, { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" }, { "type": "panel", "id": "stat", "name": "Stat", "version": "" }, { "type": "panel", "id": "table", "name": "Table", "version": "" }, { "type": "panel", "id": "timeseries", "name": "Time series", "version": "" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, "id": null, "links": [], "panels": [ { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "0": { "color": "red", "index": 1, "text": "未连接" }, "1": { "color": "green", "index": 0, "text": "已连接" } }, "type": "value" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 3, "w": 2, "x": 0, "y": 0 }, "id": 20, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "editorMode": "code", "expr": "ikuai_up{id=\"host\"}", "legendFormat": "__auto", "range": true, "refId": "A" } ], "title": "连接状态", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "celsius" }, "overrides": [] }, "gridPos": { "h": 3, "w": 2, "x": 2, "y": 0 }, "id": 8, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": true }, "showPercentChange": false, "textMode": "name", "wideLayout": true }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "disableTextWrap": false, "editorMode": "builder", "exemplar": false, "expr": "ikuai_version{job=\"$jobName\",instance=\"$instance\", }", "format": "time_series", "fullMetaSearch": false, "includeNullMetadata": true, "instant": true, "legendFormat": "iKuai {{verstring}}", "range": false, "refId": "A", "useBackend": false } ], "title": "系统版本", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 3, "w": 2, "x": 4, "y": 0 }, "id": 31, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "disableTextWrap": false, "editorMode": "builder", "expr": "ikuai_device_count{job=\"$jobName\", instance=\"$instance\"}", "fullMetaSearch": false, "includeNullMetadata": true, "legendFormat": "__auto", "range": true, "refId": "A", "useBackend": false } ], "title": "在线设备", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 2, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 50 }, { "color": "orange", "value": 70 }, { "color": "red", "value": 90 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 6, "w": 5, "x": 6, "y": 0 }, "id": 19, "options": { "displayMode": "lcd", "legend": { "calcs": [], "displayMode": "table", "placement": "bottom", "showLegend": false }, "maxVizHeight": 300, "minVizHeight": 10, "minVizWidth": 0, "namePlacement": "hidden", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "sizing": "auto", "valueMode": "hidden" }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "disableTextWrap": false, "editorMode": "builder", "exemplar": true, "expr": "ikuai_cpu_usage_ratio{job=\"$jobName\", instance=\"$instance\", id!=\"core/0\"}", "format": "time_series", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, "legendFormat": "{{id}}", "range": true, "refId": "A", "useBackend": false } ], "title": "CPU使用率", "type": "bargauge" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 2, "fieldMinMax": false, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 85 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 3, "w": 2, "x": 11, "y": 0 }, "id": 2, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "center", "orientation": "auto", "percentChangeColorMode": "inverted", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "/^Value$/", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "disableTextWrap": false, "editorMode": "code", "expr": "ikuai_cpu_usage_ratio{instance=\"$instance\", job=\"$jobName\", id=\"core/0\"}", "format": "table", "fullMetaSearch": false, "includeNullMetadata": true, "legendFormat": "__auto", "range": true, "refId": "A", "useBackend": false } ], "title": "综合负载", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false, "minWidth": 50 }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "上传" }, "properties": [ { "id": "custom.width", "value": 98 } ] }, { "matcher": { "id": "byName", "options": "IP" }, "properties": [ { "id": "custom.width", "value": 104 } ] }, { "matcher": { "id": "byName", "options": "下载" }, "properties": [ { "id": "custom.width", "value": 112 } ] } ] }, "gridPos": { "h": 6, "w": 6, "x": 13, "y": 0 }, "id": 17, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "frameIndex": 0, "showHeader": true, "sortBy": [ { "desc": true, "displayName": "下载" } ] }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "editorMode": "code", "exemplar": false, "expr": "sort_desc(increase(ikuai_network_send_bytes{id=~\"device/.*\", job=\"$jobName\",instance=\"$instance\"}[$__range]) * on(id, instance) group_left(comment, ip_addr) ikuai_device_info)", "format": "table", "instant": true, "legendFormat": "__auto", "range": false, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "editorMode": "code", "exemplar": false, "expr": "increase(ikuai_network_recv_bytes{id=~\"device/.*\", job=\"$jobName\",instance=\"$instance\"}[$__range])", "format": "table", "hide": false, "instant": true, "legendFormat": "__auto", "range": false, "refId": "B" } ], "title": "设备流量", "transformations": [ { "id": "merge", "options": {} }, { "id": "organize", "options": { "excludeByName": { "Time": true, "id": true, "instance": true, "job": true }, "indexByName": { "Time": 0, "Value #A": 6, "Value #B": 7, "comment": 2, "id": 3, "instance": 4, "ip_addr": 1, "job": 5 }, "renameByName": { "Time": "", "Value #A": "上传", "Value #B": "下载", "comment": "备注", "id": "", "instance": "", "ip_addr": "IP" } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "fieldConfig": { "defaults": { "color": { "mode": "continuous-GrYlRd" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "上行 host" }, "properties": [ { "id": "color", "value": { "fixedColor": "super-light-red", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "上行 wan1" }, "properties": [ { "id": "color", "value": { "fixedColor": "super-light-red", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "上行 wan2" }, "properties": [ { "id": "color", "value": { "fixedColor": "super-light-red", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "下行 host" }, "properties": [ { "id": "color", "value": { "fixedColor": "super-light-blue", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "下行 wan1" }, "properties": [ { "id": "color", "value": { "fixedColor": "super-light-blue", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "下行 wan2" }, "properties": [ { "id": "color", "value": { "fixedColor": "super-light-blue", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 6, "w": 5, "x": 19, "y": 0 }, "id": 21, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "disableTextWrap": false, "editorMode": "builder", "exemplar": false, "expr": "ikuai_network_send_bytes{id!~\"device/.*|.*lan.*\", instance=\"$instance\", job=\"$jobName\"}", "format": "time_series", "fullMetaSearch": false, "includeNullMetadata": true, "instant": true, "legendFormat": "上行 {{id}}", "range": false, "refId": "A", "useBackend": false }, { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "disableTextWrap": false, "editorMode": "builder", "exemplar": false, "expr": "ikuai_network_recv_bytes{id!~\"device/.*|.*lan.*\", job=\"$jobName\", instance=\"$instance\"}", "fullMetaSearch": false, "hide": false, "includeNullMetadata": true, "instant": true, "legendFormat": "下行 {{id}}", "range": false, "refId": "B", "useBackend": false } ], "title": "线路流量", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "yellow", "value": 20 } ] } }, "overrides": [] }, "gridPos": { "h": 3, "w": 2, "x": 0, "y": 3 }, "id": 32, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "editorMode": "builder", "expr": "ikuai_dhcp_addrpool_num{job=\"$jobName\",instance=\"$instance\"}", "legendFormat": "__auto", "range": true, "refId": "A" } ], "title": "DHCP池剩余", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "dtdhms" }, "overrides": [] }, "gridPos": { "h": 3, "w": 2, "x": 2, "y": 3 }, "id": 6, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "editorMode": "builder", "expr": "ikuai_uptime{id=\"host\", job=\"$jobName\",instance=\"$instance\"}", "legendFormat": "__auto", "range": true, "refId": "A" } ], "title": "运行时间", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 3, "w": 2, "x": 4, "y": 3 }, "id": 14, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "editorMode": "code", "expr": "ikuai_network_conn_count{id=\"host\", job=\"$jobName\",instance=\"$instance\"}", "legendFormat": "__auto", "range": true, "refId": "A" } ], "title": "连接数", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "percentunit" }, "overrides": [] }, "gridPos": { "h": 3, "w": 2, "x": 11, "y": 3 }, "id": 4, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "editorMode": "builder", "exemplar": false, "expr": "ikuai_memory_usage_bytes{ job=\"$jobName\",instance=\"$instance\"}/ikuai_memory_size_bytes{job=\"$jobName\",instance=\"$instance\"}", "instant": false, "legendFormat": "__auto", "range": true, "refId": "A" } ], "title": "内存使用率", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "hideFrom": { "legend": false, "tooltip": false, "viz": false } }, "decimals": 2, "fieldMinMax": false, "mappings": [], "unit": "bytes" }, "overrides": [] }, "gridPos": { "h": 9, "w": 5, "x": 0, "y": 6 }, "id": 33, "options": { "displayLabels": [], "legend": { "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Value", "sortDesc": false, "values": [ "value", "percent" ] }, "pieType": "pie", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "disableTextWrap": false, "editorMode": "builder", "expr": "sum by(category) (ikuai_app_flow_histogram_sum{job=\"$jobName\", instance=\"$instance\"})", "format": "time_series", "fullMetaSearch": false, "includeNullMetadata": true, "legendFormat": "{{category}}", "range": true, "refId": "A", "useBackend": false } ], "title": "最近30分钟流量分布", "transformations": [ { "id": "renameByRegex", "options": { "regex": "Unknown", "renamePattern": "未知协议" } }, { "id": "renameByRegex", "options": { "regex": "HTTP", "renamePattern": "HTTP协议" } }, { "id": "renameByRegex", "options": { "regex": "Common", "renamePattern": "常用协议" } }, { "id": "renameByRegex", "options": { "regex": "Others", "renamePattern": "其他应用" } }, { "id": "renameByRegex", "options": { "regex": "Download", "renamePattern": "网络下载" } }, { "id": "renameByRegex", "options": { "regex": "Video", "renamePattern": "网络视频" } }, { "id": "renameByRegex", "options": { "regex": "Test", "renamePattern": "测速软件" } }, { "id": "renameByRegex", "options": { "regex": "Game", "renamePattern": "网络游戏" } }, { "id": "renameByRegex", "options": { "regex": "Transport", "renamePattern": "文件传输" } }, { "id": "renameByRegex", "options": { "regex": "IM", "renamePattern": "网络通讯" } } ], "type": "piechart" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false, "minWidth": 50 }, "decimals": 2, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "Bps" }, "overrides": [ { "matcher": { "id": "byName", "options": "上传速度" }, "properties": [ { "id": "custom.cellOptions", "value": { "type": "color-text" } } ] }, { "matcher": { "id": "byName", "options": "Value #B" }, "properties": [ { "id": "custom.cellOptions", "value": { "type": "color-text" } } ] }, { "matcher": { "id": "byName", "options": "Value #C" }, "properties": [ { "id": "unit", "value": "none" }, { "id": "decimals" } ] }, { "matcher": { "id": "byName", "options": "mac" }, "properties": [ { "id": "custom.width" } ] } ] }, "gridPos": { "h": 9, "w": 9, "x": 5, "y": 6 }, "id": 12, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [ { "desc": true, "displayName": "连接数" } ] }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "editorMode": "code", "exemplar": false, "expr": "sort_desc(ikuai_network_send_kbytes_per_second{id=~\"device/.*\", job=\"$jobName\",instance=\"$instance\"}* on (id, instance) group_left(ip_addr, hostname, comment, mac) ikuai_device_info)", "format": "table", "instant": true, "legendFormat": "__auto", "range": false, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "editorMode": "code", "exemplar": false, "expr": "ikuai_network_recv_kbytes_per_second{id=~\"device/.*\", job=\"$jobName\",instance=\"$instance\"} * on (id) group_left(ip_addr, hostname, comment, mac) ikuai_device_info", "format": "table", "hide": false, "instant": true, "legendFormat": "__auto", "range": false, "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "editorMode": "code", "exemplar": false, "expr": "ikuai_network_conn_count{id=~\"device/.*\", job=\"$jobName\",instance=\"$instance\"} * on (id) group_left ikuai_device_info", "format": "table", "hide": false, "instant": true, "legendFormat": "__auto", "range": false, "refId": "C" } ], "title": "设备流量 - 实时", "transformations": [ { "id": "merge", "options": {} }, { "id": "organize", "options": { "excludeByName": { "Time": true, "id": true, "instance": true, "job": true }, "includeByName": {}, "indexByName": { "Time": 0, "Value #A": 9, "Value #B": 10, "Value #C": 8, "comment": 4, "hostname": 3, "id": 1, "instance": 5, "ip_addr": 2, "job": 7, "mac": 6 }, "renameByName": { "Value #A": "上传速度", "Value #B": "下载速度", "Value #C": "连接数", "comment": "备注", "hostname": "主机名", "id": "", "instance": "", "ip_addr": "IP地址", "job": "", "mac": "物理地址" } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "smooth", "lineWidth": 1, "pointSize": 3, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "Bps" }, "overrides": [ { "matcher": { "id": "byFrameRefID", "options": "B" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "gridPos": { "h": 5, "w": 10, "x": 14, "y": 6 }, "id": 10, "options": { "legend": { "calcs": [ "max", "mean", "last" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Name", "sortDesc": false }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "editorMode": "builder", "expr": "ikuai_network_send_kbytes_per_second{id=\"host\", job=\"$jobName\",instance=\"$instance\"}", "legendFormat": "⏫", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "editorMode": "code", "expr": "ikuai_network_recv_kbytes_per_second{id=\"host\", job=\"$jobName\",instance=\"$instance\"}", "hide": false, "legendFormat": "⏬", "range": true, "refId": "B" } ], "title": "主机流量 - 实时", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "left", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "smooth", "lineStyle": { "fill": "solid" }, "lineWidth": 1, "pointSize": 3, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 2, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "Bps" }, "overrides": [ { "matcher": { "id": "byFrameRefID", "options": "B" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "gridPos": { "h": 6, "w": 10, "x": 14, "y": 11 }, "id": 15, "options": { "legend": { "calcs": [ "max", "last" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Name", "sortDesc": false }, "tooltip": { "mode": "multi", "sort": "none" } }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "editorMode": "code", "exemplar": false, "expr": "(ikuai_network_send_kbytes_per_second{id=~\"iface/.*\",job=\"$jobName\",instance=\"$instance\"} and on(id) ikuai_uptime > 0) * on (id) group_left(interface, comment) ikuai_iface_info", "instant": false, "legendFormat": "{{comment}}({{interface}})⏫", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "editorMode": "code", "expr": "(ikuai_network_recv_kbytes_per_second{id=~\"iface/.*\",job=\"$jobName\",instance=\"$instance\"} and on(id) ikuai_uptime > 0) * on (id) group_left(interface, comment) ikuai_iface_info", "hide": false, "legendFormat": "{{comment}}({{interface}})⏬", "range": true, "refId": "B" } ], "title": "线路流量 - 实时", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "left", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "smooth", "lineStyle": { "fill": "solid" }, "lineWidth": 1, "pointSize": 3, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 2, "fieldMinMax": false, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "Bps" }, "overrides": [] }, "gridPos": { "h": 14, "w": 14, "x": 0, "y": 15 }, "id": 13, "options": { "legend": { "calcs": [ "max", "lastNotNull" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Last *", "sortDesc": true }, "tooltip": { "maxHeight": 300, "mode": "multi", "sort": "desc" } }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "disableTextWrap": false, "editorMode": "code", "exemplar": false, "expr": " (\r\n ikuai_network_recv_kbytes_per_second{id=~\"device/.*\", job=\"$jobName\", instance=\"$instance\"}\r\n +\r\n ikuai_network_send_kbytes_per_second{id=~\"device/.*\", job=\"$jobName\", instance=\"$instance\"}\r\n )\r\n* on (id) group_left (mac, comment)\r\n (max by (id, mac, comment) (ikuai_device_info{id=~\"device/.*\", job=\"$jobName\", instance=\"$instance\"}))", "format": "time_series", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, "legendFormat": "{{comment}}({{mac}})", "range": true, "refId": "A", "useBackend": false } ], "title": "设备流量 - 实时", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "smooth", "lineStyle": { "fill": "solid" }, "lineWidth": 1, "pointSize": 3, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 12, "w": 10, "x": 14, "y": 17 }, "id": 30, "options": { "legend": { "calcs": [ "mean", "max", "sum" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Max", "sortDesc": true }, "tooltip": { "maxHeight": 300, "mode": "multi", "sort": "desc" } }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "editorMode": "code", "exemplar": false, "expr": "ikuai_network_conn_count{id=~\"device/.*\", job=\"$jobName\", instance=\"$instance\"} * on (id) group_left (mac, comment)\r\n (max by (id, mac, comment) (ikuai_device_info{id=~\"device/.*\", job=\"$jobName\", instance=\"$instance\"}))", "format": "time_series", "instant": false, "legendFormat": "{{comment}}({{mac}})", "range": true, "refId": "A" } ], "title": "历史连接数", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "series", "axisLabel": "", "axisPlacement": "left", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "smooth", "lineStyle": { "fill": "solid" }, "lineWidth": 1, "pointSize": 3, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 2, "fieldMinMax": true, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "Bps" }, "overrides": [ { "matcher": { "id": "byFrameRefID", "options": "B" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "gridPos": { "h": 8, "w": 24, "x": 0, "y": 29 }, "id": 11, "options": { "legend": { "calcs": [ "max", "mean", "last" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Name", "sortDesc": false }, "tooltip": { "mode": "multi", "sort": "none" } }, "pluginVersion": "11.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "editorMode": "code", "expr": "ikuai_network_send_kbytes_per_second{id=~\"iface/.*\", job=\"$jobName\",instance=\"$instance\"} * on (id) group_left(comment,interface) (max(ikuai_iface_info) by (id, comment,interface))", "legendFormat": "{{comment}}({{interface}})⏫", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "editorMode": "code", "expr": "ikuai_network_recv_kbytes_per_second{id=~\"iface/.*\",job=\"$jobName\",instance=\"$instance\"} * on (id) group_left(comment,interface) (max(ikuai_iface_info) by (id, comment,interface))", "hide": false, "legendFormat": "{{comment}}({{interface}})⏬", "range": true, "refId": "B" } ], "title": "链路流量 - 实时", "type": "timeseries" } ], "refresh": "auto", "schemaVersion": 40, "tags": [], "templating": { "list": [ { "current": {}, "label": "数据源", "name": "dsIkuai", "options": [], "query": "prometheus", "refresh": 1, "regex": "", "type": "datasource" }, { "current": {}, "datasource": { "type": "prometheus", "uid": "${DS_TSNET}" }, "definition": "label_values(job)", "label": "采集器", "name": "jobName", "options": [], "query": { "qryType": 1, "query": "label_values(job)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "type": "query" }, { "current": {}, "datasource": { "type": "prometheus", "uid": "${dsIkuai}" }, "definition": "label_values(ikuai_version{job=\"$jobName\"},instance)", "includeAll": false, "label": "实例", "name": "instance", "options": [], "query": { "qryType": 1, "query": "label_values(ikuai_version{job=\"$jobName\"},instance)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "type": "query" } ] }, "time": { "from": "now-30m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "ikuai", "uid": "IhtQfGvZ4k", "version": 67, "weekStart": "" }