diff --git a/deploy/comm.sh b/deploy/comm.sh index 5e40a868614624dfd515b77471712e85e00e65d3..a41b920de23a76b8da8c42ec53d0f173d6d82f4e 100644 --- a/deploy/comm.sh +++ b/deploy/comm.sh @@ -3,8 +3,15 @@ OS_ARCH=$(uname -m) DASHBOARD_LIST=( "Application Performance.json" "Network Monitor.json" \ "System Performance Monitor.json" \ -"JVM Metrics.json" "System Flame.json" -) +"JVM Metrics.json" "System Flame.json" \ +"AppDetail-AppAccessPanels.json" \ +"AppDetail-AppIOPanels.json" \ +"AppDetail-AppL7ApiPanels.json" \ +"AppDetail-Network.json" \ +"ContaninerDetail.json" \ +"HostDetail.json" \ +"System Flame-export.json" \ +"clusterDiagnosisPanels.json") function docker_pull_image() { tag_name="$1" diff --git a/deploy/deploy.sh b/deploy/deploy.sh index de0a93bef7c190c4efee5f7661b5de2c27504e90..aa29d29ac2381e65acc26c91ef4c64ffa1287ae3 100755 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -802,7 +802,12 @@ filter { target => "@timestamp" } - if [Attributes][event.name] { + if [Attributes][values] { + split { + field => "[Attributes][values]" + target => "Attributes" + } + date { match => ["[Attributes][start_time]", "UNIX_MS"] target => "start_time" @@ -1007,12 +1012,8 @@ function import_grafana_dashboard() { do json=$(cat "$dashboard_path/$ele") echo "import $dashboard_path/$ele" - body='{"dashboard":'"$json"', - "overwrite": true, - "inputs": '"$inputs"', - "folderUid":'\"$folder_uid\"' - }' - res=`curl -X POST --insecure -H "${auth}" -H "Content-Type: application/json" -d "${body}" http://localhost:3000/api/dashboards/import` + res=`echo '{"dashboard":'"$json"', "overwrite": true, "inputs": '"$inputs"', "folderUid":'\"$folder_uid\"'}' \ + | curl -X POST --insecure -H "${auth}" -H "Content-Type: application/json" -d @- http://localhost:3000/api/dashboards/import` if [ "$ele" == "A-Ops Home Page.json" ]; then home_page_uid=`echo $res | jq '.uid'` fi @@ -1081,6 +1082,15 @@ http://admin:admin@localhost:3000/api/datasources/ 2>/dev/null) echo_err_exit "Fail to add ${name} datesource in grafana" fi + name="Prometheus-export-panels" + result=$(curl -X POST -H "Content-Type: application/json" -d '{"name":"'${name}'","type":"prometheus", +"access":"proxy","url":"http://'${PROMETHEUS_ADDR}'","user":"","database":"", +"basicAuth":false,"isDefault":false,"jsonData":{"httpMethod":"POST"},"readOnly":false}' \ +http://admin:admin@localhost:3000/api/datasources/ 2>/dev/null) + if ! echo $result | grep -q 'Datasource added' ; then + echo_err_exit "Fail to add ${name} datesource in grafana" + fi + name="pyroscope-datasource" result=$(curl -X POST -H "Content-Type: application/json" -d '{"name":"'${name}'","type":"pyroscope-datasource", "access":"proxy","url":"","user":"","database":"","basicAuth":false,"isDefault":false, diff --git a/grafana/dashboard/AppDetail-AppAccessPanels.json b/grafana/dashboard/AppDetail-AppAccessPanels.json new file mode 100644 index 0000000000000000000000000000000000000000..028516a82151a17059cfe90366fe8f59e44faa09 --- /dev/null +++ b/grafana/dashboard/AppDetail-AppAccessPanels.json @@ -0,0 +1,2164 @@ +{ + "__inputs": [ + { + "name": "DS_PROMETHEUS-EXPORT-PANELS", + "label": "Prometheus-export-panels", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "9.3.14" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "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": 0, + "id": null, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "System Performance" + ], + "targetBlank": false, + "title": "System Performance", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 165, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "reqps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 1 + }, + "id": 167, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(rate(gala_gopher_l7_req_count{l7_role=~\"client\", pod_id=~\".*${pod_id}.*\"}[1m]))by(pod, pod_id) or sum(rate(gala_gopher_l7_req_count{l7_role=~\"client\", container_id=~\".*${container_id}.*\"}[1m]))by(container_name, container_id) or sum(rate(gala_gopher_l7_req_count{l7_role=~\"client\", tgid=~\".*$tgid.*\"}[1m]))by(comm, tgid) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 请求速率", + "range": true, + "refId": "A" + } + ], + "title": "TOP3 请求速率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "max": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 1 + }, + "id": 169, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(sum_over_time(gala_gopher_l7_err_count{l7_role=~\"server\", pod_id=~\".*${pod_id}.*\"}[1m]))by(pod, pod_id) / (sum(sum_over_time(gala_gopher_l7_resp_count{l7_role=~\"server\", pod_id=~\".*${pod_id}.*\"}[1m]))by(pod, pod_id) != 0) or sum(sum_over_time(gala_gopher_l7_err_count{l7_role=~\"server\", container_id=~\".*${container_id}.*\"}[1m]))by(container_name, container_id) / (sum(sum_over_time(gala_gopher_l7_resp_count{l7_role=~\"server\", container_id=~\".*${container_id}.*\"}[1m]))by(container_name, container_id) != 0) or sum(sum_over_time(gala_gopher_l7_err_count{l7_role=~\"server\", tgid=~\".*${tgid}.*\"}[1m]))by(comm, tgid) / (sum(sum_over_time(gala_gopher_l7_resp_count{l7_role=~\"server\", tgid=~\".*${tgid}.*\"}[1m]))by(comm, tgid) != 0) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 服务端异常比例", + "range": true, + "refId": "A" + } + ], + "title": "TOP3 服务端异常比例", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 9 + }, + "id": 171, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(sum_over_time(gala_gopher_l7_latency_sum{l7_role=~\"server\", pod_id=~\".*${pod_id}.*\"}[1m]))by(pod, pod_id) / (sum(sum_over_time(gala_gopher_l7_resp_count{l7_role=~\"server\", pod_id=~\".*${pod_id}.*\"}[1m]))by(pod, pod_id) != 0) or sum(sum_over_time(gala_gopher_l7_latency_sum{l7_role=~\"server\", container_id=~\".*${container_id}.*\"}[1m]))by(container_name, container_id) / (sum(sum_over_time(gala_gopher_l7_resp_count{l7_role=~\"server\", container_id=~\".*${container_id}.*\"}[1m]))by(container_name, container_id) != 0) or sum(sum_over_time(gala_gopher_l7_latency_sum{l7_role=~\"server\", tgid=~\".*${tgid}.*\"}[1m]))by(comm, tgid) / (sum(sum_over_time(gala_gopher_l7_resp_count{l7_role=~\"server\", tgid=~\".*${tgid}.*\"}[1m]))by(comm, tgid) != 0) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 响应时延", + "range": true, + "refId": "A" + } + ], + "title": "TOP3 响应时延", + "type": "timeseries" + } + ], + "title": "TOP3", + "type": "row" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 159, + "panels": [], + "title": "时延", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 2 + }, + "id": 97, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_l7_latency{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "legendFormat": "pod:{{pod}} P99 时延 ", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_l7_latency{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "legendFormat": "pod:{{pod}} P90 时延 ", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_l7_latency{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "legendFormat": "pod:{{pod}} P50 时延 ", + "range": true, + "refId": "C" + } + ], + "title": "时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 2 + }, + "id": 125, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_l7_latency{container_id=~\".*${container_id}.*\"}))by(container_id, container_name)", + "hide": false, + "legendFormat": "container: {{container_name}} P99 时延", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_l7_latency{container_id=~\".*${container_id}.*\"}))by(container_id, container_name)", + "hide": false, + "legendFormat": "container: {{container_name}} P90 时延", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_l7_latency{container_id=~\".*${container_id}.*\"}))by(container_id, container_name)", + "hide": false, + "legendFormat": "container: {{container_name}} P50 时延 P99", + "range": true, + "refId": "C" + } + ], + "title": "时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 10 + }, + "id": 160, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_l7_latency{tgid=~\".*${tgid}.*\"}))by(comm, tgid)", + "hide": false, + "legendFormat": "{{comm}}- {{tgid}} P99 时延", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_l7_latency{tgid=~\".*${tgid}.*\"}))by(comm, tgid)", + "hide": false, + "legendFormat": "{{comm}}- {{tgid}} P90 时延", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_l7_latency{tgid=~\".*${tgid}.*\"}))by(comm, tgid)", + "hide": false, + "legendFormat": "{{comm}}- {{tgid}} P50 时延", + "range": true, + "refId": "C" + } + ], + "title": "时延", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 18 + }, + "id": 157, + "panels": [], + "title": "请求速率", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "reqps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 19 + }, + "id": 66, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(rate(gala_gopher_l7_req_count{l7_role=~\"client\", pod_id=~\".*${pod_id}.*\"}[1m]))by(pod, pod_id) or sum(rate(gala_gopher_l7_req_count{l7_role=~\"client\", container_id=~\".*${container_id}.*\"}[1m]))by(container_name, container_id) or sum(rate(gala_gopher_l7_req_count{l7_role=~\"client\", tgid=~\".*${tgid}.*\"}[1m]))by(comm, tgid) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 请求速率", + "range": true, + "refId": "A" + } + ], + "title": "请求速率", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 27 + }, + "id": 155, + "panels": [], + "title": "请求时延", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 28 + }, + "id": 127, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(sum_over_time(gala_gopher_l7_latency_sum{l7_role=~\"client\", pod_id=~\".*${pod_id}.*\"}[1m]))by(pod, pod_id) / (sum(sum_over_time(gala_gopher_l7_req_count{l7_role=~\"client\", pod_id=~\".*${pod_id}.*\"}[1m]))by(pod, pod_id) != 0) or sum(sum_over_time(gala_gopher_l7_latency_sum{l7_role=~\"client\", container_id=~\".*${container_id}.*\"}[1m]))by(container_name, container_id) / (sum(sum_over_time(gala_gopher_l7_req_count{l7_role=~\"client\", container_id=~\".*${container_id}.*\"}[1m]))by(container_name, container_id) != 0) or sum(sum_over_time(gala_gopher_l7_latency_sum{l7_role=~\"client\", tgid=~\".*${tgid}.*\"}[1m]))by(comm, tgid) / (sum(sum_over_time(gala_gopher_l7_req_count{l7_role=~\"client\", tgid=~\".*${tgid}.*\"}[1m]))by(comm, tgid) != 0) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 请求时延", + "range": true, + "refId": "A" + } + ], + "title": "请求时延", + "type": "timeseries" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 36 + }, + "id": 153, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 5 + }, + "id": 89, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_l7_req_count{l7_role=~\"client\", pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_l7_req_count{l7_role=~\"client\", container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_l7_req_count{l7_role=~\"client\", tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 请求数量", + "range": true, + "refId": "A" + } + ], + "title": "请求数量", + "type": "timeseries" + } + ], + "title": "请求数量", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 37 + }, + "id": 151, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "resp/s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 6 + }, + "id": 129, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(gala_gopher_l7_resp_count{l7_role=~\"server\", pod_id=~\".*${pod_id}.*\"}[10s]))by(pod, pod_id) or sum(rate(gala_gopher_l7_resp_count{l7_role=~\"server\", container_id=~\".*${container_id}.*\"}[10s]))by(container_id, container_name) or sum(rate(gala_gopher_l7_resp_count{l7_role=~\"server\", tgid=~\".*${tgid}.*\"}[10s]))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 应答速率", + "range": true, + "refId": "A" + } + ], + "title": "应答速率", + "type": "timeseries" + } + ], + "title": "应答速率", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 38 + }, + "id": 149, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 7 + }, + "id": 91, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_l7_bytes_sent{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_l7_bytes_sent{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_l7_bytes_sent{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 发送字节数", + "range": true, + "refId": "A" + } + ], + "title": "发送字节数", + "type": "timeseries" + } + ], + "title": "发送字节数", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 39 + }, + "id": 147, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 8 + }, + "id": 93, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_l7_segs_sent{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_l7_segs_sent{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_l7_segs_sent{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 发送包数量", + "range": true, + "refId": "A" + } + ], + "title": "发送包数量", + "type": "timeseries" + } + ], + "title": "发送包数量", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 40 + }, + "id": 145, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "max": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 9 + }, + "id": 86, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(sum_over_time(gala_gopher_l7_err_count{l7_role=~\"server\", pod_id=~\".*${pod_id}.*\"}[1m]))by(pod, pod_id) / (sum(sum_over_time(gala_gopher_l7_resp_count{l7_role=~\"server\", pod_id=~\".*${pod_id}.*\"}[1m]))by(pod, pod_id) != 0) or sum(sum_over_time(gala_gopher_l7_err_count{l7_role=~\"server\", container_id=~\".*${container_id}.*\"}[1m]))by(container_name, container_id) / (sum(sum_over_time(gala_gopher_l7_resp_count{l7_role=~\"server\", container_id=~\".*${container_id}.*\"}[1m]))by(container_name, container_id) != 0) or sum(sum_over_time(gala_gopher_l7_err_count{l7_role=~\"server\", tgid=~\".*${tgid}.*\"}[1m]))by(comm, tgid) / (sum(sum_over_time(gala_gopher_l7_resp_count{l7_role=~\"server\", tgid=~\".*${tgid}.*\"}[1m]))by(comm, tgid) != 0) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 服务端异常比例", + "range": true, + "refId": "A" + } + ], + "title": "服务端异常比例", + "type": "timeseries" + } + ], + "title": "服务端异常比例", + "type": "row" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 41 + }, + "id": 143, + "panels": [], + "title": "响应时延", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 42 + }, + "id": 96, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(sum_over_time(gala_gopher_l7_latency_sum{l7_role=~\"server\", pod_id=~\".*${pod_id}.*\"}[1m]))by(pod, pod_id) / (sum(sum_over_time(gala_gopher_l7_resp_count{l7_role=~\"server\", pod_id=~\".*${pod_id}.*\"}[1m]))by(pod, pod_id) != 0) or sum(sum_over_time(gala_gopher_l7_latency_sum{l7_role=~\"server\", container_id=~\".*${container_id}.*\"}[1m]))by(container_name, container_id) / (sum(sum_over_time(gala_gopher_l7_resp_count{l7_role=~\"server\", container_id=~\".*${container_id}.*\"}[1m]))by(container_name, container_id) != 0) or sum(sum_over_time(gala_gopher_l7_latency_sum{l7_role=~\"server\", tgid=~\".*${tgid}.*\"}[1m]))by(comm, tgid) / (sum(sum_over_time(gala_gopher_l7_resp_count{l7_role=~\"server\", tgid=~\".*${tgid}.*\"}[1m]))by(comm, tgid) != 0) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 响应时延", + "range": true, + "refId": "A" + } + ], + "title": "响应时延", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 50 + }, + "id": 141, + "panels": [], + "title": "应答数量", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 51 + }, + "id": 90, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_l7_resp_count{l7_role=~\"server\", pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_l7_resp_count{l7_role=~\"server\", container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_l7_resp_count{l7_role=~\"server\", tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 应答数量", + "range": true, + "refId": "A" + } + ], + "title": "应答数量", + "type": "timeseries" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 59 + }, + "id": 139, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 12 + }, + "id": 92, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_l7_bytes_recv{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_l7_bytes_recv{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_l7_bytes_recv{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 发送字节数", + "range": true, + "refId": "A" + } + ], + "title": "接受字节数", + "type": "timeseries" + } + ], + "title": "接受字节数", + "type": "row" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 60 + }, + "id": 137, + "panels": [], + "title": "接受包数量", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 61 + }, + "id": 94, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_l7_segs_recv{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_l7_segs_recv{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_l7_segs_recv{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 接受包数量", + "range": true, + "refId": "A" + } + ], + "title": "接受包数量", + "type": "timeseries" + } + ], + "refresh": false, + "schemaVersion": 37, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, pod)", + "hide": 0, + "includeAll": false, + "label": "pod_name", + "multi": true, + "name": "pod_name", + "options": [], + "query": { + "query": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, pod)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\" , pod=~\"$pod_name\"}, pod_id) ", + "hide": 0, + "includeAll": true, + "label": "pod_id", + "multi": true, + "name": "pod_id", + "options": [], + "query": { + "query": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\" , pod=~\"$pod_name\"}, pod_id) ", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\" }, container_id) ", + "hide": 0, + "includeAll": false, + "label": "container_id", + "multi": false, + "name": "container_id", + "options": [], + "query": { + "query": "", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, tgid) ", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "tgid", + "options": [], + "query": { + "query": "", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "AppDetail-AppAccessPanels", + "uid": "xvSeLIKIz", + "version": 153, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/AppDetail-AppIOPanels.json b/grafana/dashboard/AppDetail-AppIOPanels.json new file mode 100644 index 0000000000000000000000000000000000000000..570e7e77b509020081c7ff1a791e0d1e80b137ba --- /dev/null +++ b/grafana/dashboard/AppDetail-AppIOPanels.json @@ -0,0 +1,2772 @@ +{ + "__inputs": [ + { + "name": "DS_PROMETHEUS-EXPORT-PANELS", + "label": "Prometheus-export-panels", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "9.3.14" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "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": 0, + "id": null, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "System Performance" + ], + "targetBlank": false, + "title": "System Performance", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 218, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 1 + }, + "id": 229, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_jvm_threads_current{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_jvm_threads_current{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_jvm_threads_current{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 当前线程数量", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_jvm_threads_daemon{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_jvm_threads_daemon{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_jvm_threads_daemon{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 守护线程数量", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_jvm_threads_peak{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_jvm_threads_peak{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_jvm_threads_peak{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 峰值线程数量", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_jvm_threads_deadlocked{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_jvm_threads_deadlocked{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_jvm_threads_deadlocked{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 死锁线程数量", + "range": true, + "refId": "D" + } + ], + "title": "线程统计", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 1 + }, + "id": 230, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_jvm_mem_bytes_used{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id, area) or sum(gala_gopher_jvm_mem_bytes_used{container_id=~\".*${container_id}.*\"})by(container_name, container_id, area) or sum(gala_gopher_jvm_mem_bytes_used{tgid=~\".*${tgid}.*\"})by(comm, tgid, area) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 已用的 {{area}} 内存", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_jvm_mem_bytes_commit{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id, area) or sum(gala_gopher_jvm_mem_bytes_commit{container_id=~\".*${container_id}.*\"})by(container_name, container_id, area) or sum(gala_gopher_jvm_mem_bytes_commit{tgid=~\".*${tgid}.*\"})by(comm, tgid, area) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 提交的 {{area}} 内存", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_jvm_mem_bytes_max{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id, area) or sum(gala_gopher_jvm_mem_bytes_max{container_id=~\".*${container_id}.*\"})by(container_name, container_id, area) or sum(gala_gopher_jvm_mem_bytes_max{tgid=~\".*${tgid}.*\"})by(comm, tgid, area) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} {{area}} 内存最大值", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_jvm_mem_bytes_init{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id, area) or sum(gala_gopher_jvm_mem_bytes_init{container_id=~\".*${container_id}.*\"})by(container_name, container_id, area) or sum(gala_gopher_jvm_mem_bytes_init{tgid=~\".*${tgid}.*\"})by(comm, tgid, area) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} {{area}} 内存初始化值", + "range": true, + "refId": "D" + } + ], + "title": "内存统计", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 9 + }, + "id": 231, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_jvm_mem_pool_bytes_used{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id, pool) or sum(gala_gopher_jvm_mem_bytes_used{container_id=~\".*${container_id}.*\"})by(container_name, container_id, pool) or sum(gala_gopher_jvm_mem_bytes_used{tgid=~\".*${tgid}.*\"})by(comm, tgid, pool) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 已用的 {{pool}} 内存池", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_jvm_mem_pool_bytes_commit{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id, pool) or sum(gala_gopher_jvm_mem_pool_bytes_commit{container_id=~\".*${container_id}.*\"})by(container_name, container_id, pool) or sum(gala_gopher_jvm_mem_pool_bytes_commit{tgid=~\".*${tgid}.*\"})by(comm, tgid, pool) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 提交的 {{pool}} 内存池", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_jvm_mem_pool_bytes_max{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id, pool) or sum(gala_gopher_jvm_mem_pool_bytes_max{container_id=~\".*${container_id}.*\"})by(container_name, container_id, pool) or sum(gala_gopher_jvm_mem_pool_bytes_max{tgid=~\".*${tgid}.*\"})by(comm, tgid, pool) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} {{pool}} 内存池最大值", + "range": true, + "refId": "C" + } + ], + "title": "内存池统计", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 9 + }, + "id": 232, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_jvm_buffer_pool_used_bytes{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id, pool) or sum(gala_gopher_jvm_buffer_pool_used_bytes{container_id=~\".*${container_id}.*\"})by(container_name, container_id, pool) or sum(gala_gopher_jvm_buffer_pool_used_bytes{tgid=~\".*${tgid}.*\"})by(comm, tgid, pool)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 已用的 {{pool}} buffer pool", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(buffer_pool_capacity_bytes{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id, pool) or sum(buffer_pool_capacity_bytes{container_id=~\".*${container_id}.*\"})by(container_name, container_id, pool) or sum(buffer_pool_capacity_bytes{tgid=~\".*${tgid}.*\"})by(comm, tgid, pool)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} {{pool}} buffer pool 容量", + "range": true, + "refId": "B" + } + ], + "title": "buffer pool 统计", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 17 + }, + "id": 233, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_jvm_gc_coll_secs_count{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id, gc) or sum(gala_gopher_jvm_gc_coll_secs_count{container_id=~\".*${container_id}.*\"})by(container_name, container_id, gc) or sum(gala_gopher_jvm_gc_coll_secs_count{tgid=~\".*${tgid}.*\"})by(comm, tgid, gc) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} {{gc}} gc 次数", + "range": true, + "refId": "A" + } + ], + "title": "GC 次数统计", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 17 + }, + "id": 234, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_jvm_gc_coll_secs_sum{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id, gc) or sum(gala_gopher_jvm_gc_coll_secs_sum{container_id=~\".*${container_id}.*\"})by(container_name, container_id, gc) or sum(gala_gopher_jvm_gc_coll_secs_sum{tgid=~\".*${tgid}.*\"})by(comm, tgid, gc) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} {{gc}} gc 时间", + "range": true, + "refId": "A" + } + ], + "title": "GC 时间", + "type": "timeseries" + } + ], + "title": "应用 JVM 指标", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 216, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 2 + }, + "id": 222, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_pm_size{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_pm_size{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_pm_size{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 物理内存", + "range": true, + "refId": "A" + } + ], + "title": "物理内存", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 2 + }, + "id": 226, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_vm_size{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_vm_size{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_vm_size{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 虚拟内存", + "range": true, + "refId": "A" + } + ], + "title": "虚拟内存", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 223, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_minor_pagefault_count{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_minor_pagefault_count{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_minor_pagefault_count{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 轻微 PageFault 次数", + "range": true, + "refId": "A" + } + ], + "title": "轻微 PageFault 次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 225, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_major_pagefault_count{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_major_pagefault_count{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_major_pagefault_count{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 严重 PageFault 次数", + "range": true, + "refId": "A" + } + ], + "title": "严重 PageFault 次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 224, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_swap_data_size{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_swap_data_size{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_swap_data_size{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} swap 区域大小", + "range": true, + "refId": "A" + } + ], + "title": "swap 区域大小", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 227, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_referenced_size{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_referenced_size{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_referenced_size{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 引用的 page 大小", + "range": true, + "refId": "A" + } + ], + "title": "引用的 page 大小", + "type": "timeseries" + } + ], + "title": "应用内存指标", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 2 + }, + "id": 214, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 3 + }, + "id": 220, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_offcpu_ns{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_offcpu_ns{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_offcpu_ns{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 等待 CPU 时延", + "range": true, + "refId": "A" + } + ], + "title": "等待 CPU 时延", + "type": "timeseries" + } + ], + "title": "应用 cpu 指标", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 3 + }, + "id": 212, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 4 + }, + "id": 210, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_ns_tmpfs_flush{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_ns_tmpfs_flush{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_ns_tmpfs_flush{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} tmpfs 文件系统 flush 时延", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_ns_ext4_flush{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_ns_ext4_flush{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_ns_ext4_flush{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} ext4 文件系统 flush 时延", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_ns_overlay_flush{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_ns_overlay_flush{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_ns_overlay_flush{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} overlay 文件系统 flush 时延", + "range": true, + "refId": "C" + } + ], + "title": "文件系统 flush 时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 4 + }, + "id": 204, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_ns_tmpfs_write{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_ns_tmpfs_write{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_ns_tmpfs_write{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} tmpfs 文件系统写时延", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_ns_ext4_write{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_ns_ext4_write{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_ns_ext4_write{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} ext4 文件系统写时延", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_ns_overlay_write{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_ns_overlay_write{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_ns_overlay_write{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} overlay 文件系统写时延", + "range": true, + "refId": "C" + } + ], + "title": "文件系统写时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 12 + }, + "id": 200, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_ns_tmpfs_read{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_ns_tmpfs_read{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_ns_tmpfs_read{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} tmpfs 文件系统读时延", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_ns_ext4_read{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_ns_ext4_read{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_ns_ext4_read{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} ext4 文件系统读时延", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_ns_overlay_read{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_ns_overlay_read{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_ns_overlay_read{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} overlay 文件系统读时延", + "range": true, + "refId": "C" + } + ], + "title": "文件系统读时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 192, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_less_4k_io_read{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_less_4k_io_read{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_less_4k_io_read{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 小于 4k 的读 io 操作次数", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_less_4k_io_write{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_less_4k_io_write{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_less_4k_io_write{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 小于 4k 的写 io 操作次数", + "range": true, + "refId": "B" + } + ], + "title": "小于 4k io 操作次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 188, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_greater_4k_io_read{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_greater_4k_io_read{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_greater_4k_io_read{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}}大于 4k 的读 io 操作次数", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_greater_4k_io_write{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_greater_4k_io_write{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_greater_4k_io_write{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 大于 4k 的写 io 操作次数", + "range": true, + "refId": "B" + } + ], + "title": "大于 4k io 操作次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 182, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_fd_count{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_fd_count{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_fd_count{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 文件句柄数", + "range": true, + "refId": "A" + } + ], + "title": "文件句柄数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "binBps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 28 + }, + "id": 177, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(rate(gala_gopher_proc_rchar_bytes{pod_id=~\".*${pod_id}.*\"}[1m]))by(pod, pod_id) or sum(rate(gala_gopher_proc_rchar_bytes{container_id=~\".*${container_id}.*\"}[1m]))by(container_name, container_id) or sum(rate(gala_gopher_proc_rchar_bytes{tgid=~\".*${tgid}.*\"}[1m]))by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 读速率", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(rate(gala_gopher_proc_wchar_bytes{pod_id=~\".*${pod_id}.*\"}[1m]))by(pod, pod_id) or sum(rate(gala_gopher_proc_wchar_bytes{container_id=~\".*${container_id}.*\"}[1m]))by(container_name, container_id) or sum(rate(gala_gopher_proc_wchar_bytes{tgid=~\".*${tgid}.*\"}[1m]))by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} 写速率", + "range": true, + "refId": "B" + } + ], + "title": "IO 速率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 171, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_bio_err_count{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_bio_err_count{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_bio_err_count{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} BIO 错误次数", + "range": true, + "refId": "A" + } + ], + "title": "BIO 错误次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 36 + }, + "id": 97, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_iowait_ns{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_iowait_ns{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_iowait_ns{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} IO 等待时延", + "range": true, + "refId": "A" + } + ], + "title": "IO 等待时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 36 + }, + "id": 66, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_proc_bio_latency{pod_id=~\".*${pod_id}.*\"})by(pod, pod_id) or sum(gala_gopher_proc_bio_latency{container_id=~\".*${container_id}.*\"})by(container_name, container_id) or sum(gala_gopher_proc_bio_latency{tgid=~\".*${tgid}.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "interval": "", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} BIO 时延", + "range": true, + "refId": "A" + } + ], + "title": "BIO 时延", + "type": "timeseries" + } + ], + "title": "应用 IO 指标", + "type": "row" + } + ], + "refresh": false, + "schemaVersion": 37, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, pod)", + "hide": 0, + "includeAll": false, + "label": "pod_name", + "multi": true, + "name": "pod_name", + "options": [], + "query": { + "query": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, pod)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\" , pod=~\"$pod_name\"}, pod_id) ", + "hide": 0, + "includeAll": true, + "label": "pod_id", + "multi": true, + "name": "pod_id", + "options": [], + "query": { + "query": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\" , pod=~\"$pod_name\"}, pod_id) ", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\" }, container_id) ", + "hide": 0, + "includeAll": false, + "label": "container_id", + "multi": false, + "name": "container_id", + "options": [], + "query": { + "query": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\" }, container_id) ", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, tgid) ", + "hide": 0, + "includeAll": true, + "multi": true, + "name": "tgid", + "options": [], + "query": { + "query": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, tgid) ", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "AppDetail-AppIOPanels", + "uid": "j7UouKFIk", + "version": 77, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/AppDetail-AppL7ApiPanels.json b/grafana/dashboard/AppDetail-AppL7ApiPanels.json new file mode 100644 index 0000000000000000000000000000000000000000..27026521921e0655fc53676373f836fcbe3e13d1 --- /dev/null +++ b/grafana/dashboard/AppDetail-AppL7ApiPanels.json @@ -0,0 +1,1516 @@ +{ + "__inputs": [ + { + "name": "DS_PROMETHEUS-EXPORT-PANELS", + "label": "Prometheus-export-panels", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "9.3.14" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "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": 0, + "id": null, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "System Performance" + ], + "targetBlank": false, + "title": "System Performance", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 12, + "x": 0, + "y": 0 + }, + "id": 89, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_l7_api_req_count{pod_id=~\".*${pod_id}.*\", api=~\"${api}\"})by(pod, pod_id, api) or sum(gala_gopher_l7_api_req_count{container_id=~\".*${container_id}.*\", api=~\"${api}\"})by(container_name, container_id, api) or sum(gala_gopher_l7_api_req_count{tgid=~\".*${tgid}.*\", api=~\"${api}\"})by(comm, tgid, api) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} api:{{api}} 请求数量", + "range": true, + "refId": "A" + } + ], + "title": "请求数量", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 12, + "x": 12, + "y": 0 + }, + "id": 90, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_l7_api_resp_count{pod_id=~\".*${pod_id}.*\", api=~\"${api}\"})by(pod, pod_id, api) or sum(gala_gopher_l7_api_resp_count{container_id=~\".*${container_id}.*\", api=~\"${api}\"})by(container_name, container_id, api) or sum(gala_gopher_l7_api_resp_count{tgid=~\".*${tgid}.*\", api=~\"${api}\"})by(comm, tgid, api) or on() vector(0)", + "hide": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} api:{{api}} 应答数量", + "range": true, + "refId": "A" + } + ], + "title": "应答数量", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 12, + "x": 0, + "y": 8 + }, + "id": 172, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_l7_api_throughput_req{pod_id=~\".*${pod_id}.*\", api=~\"${api}\"})by(pod, pod_id, api) or sum(gala_gopher_l7_api_throughput_req{container_id=~\".*${container_id}.*\", api=~\"${api}\"})by(container_name, container_id, api) or sum(gala_gopher_l7_api_throughput_req{tgid=~\".*${tgid}.*\", api=~\"${api}\"})by(comm, tgid, api) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} api:{{api}} 请求吞吐量", + "range": true, + "refId": "A" + } + ], + "title": "请求吞吐量", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 12, + "x": 12, + "y": 8 + }, + "id": 176, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_l7_api_throughput_resp{pod_id=~\".*${pod_id}.*\", api=~\"${api}\"})by(pod, pod_id, api) or sum(gala_gopher_l7_api_throughput_resp{container_id=~\".*${container_id}.*\", api=~\"${api}\"})by(container_name, container_id, api) or sum(gala_gopher_l7_api_throughput_resp{tgid=~\".*${tgid}.*\", api=~\"${api}\"})by(comm, tgid, api) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} api:{{api}} 响应吞吐量", + "range": true, + "refId": "A" + } + ], + "title": "响应吞吐量", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "max": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 16 + }, + "id": 173, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_l7_api_err_ratio{pod_id=~\".*${pod_id}.*\", api=~\"${api}\"})by(pod, pod_id, api) or sum(gala_gopher_l7_api_err_ratio{container_id=~\".*${container_id}.*\", api=~\"${api}\"})by(container_name, container_id, api) or sum(gala_gopher_l7_api_err_ratio{tgid=~\".*${tgid}.*\", api=~\"${api}\"})by(comm, tgid, api) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} api:{{api}} 错误率", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_l7_api_client_err_ratio{pod_id=~\".*${pod_id}.*\", api=~\"${api}\"})by(pod, pod_id, api) or sum(gala_gopher_l7_api_client_err_ratio{container_id=~\".*${container_id}.*\", api=~\"${api}\"})by(container_name, container_id, api) or sum(gala_gopher_l7_api_client_err_ratio{tgid=~\".*${tgid}.*\", api=~\"${api}\"})by(comm, tgid, api) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} api:{{api}} 客户端错误率", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_l7_api_server_err_ratio{pod_id=~\".*${pod_id}.*\", api=~\"${api}\"})by(pod, pod_id, api) or sum(gala_gopher_l7_api_server_err_ratio{container_id=~\".*${container_id}.*\", api=~\"${api}\"})by(container_name, container_id, api) or sum(gala_gopher_l7_api_server_err_ratio{tgid=~\".*${tgid}.*\", api=~\"${api}\"})by(comm, tgid, api) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} api:{{api}} 服务端错误率", + "range": true, + "refId": "C" + } + ], + "title": "接口错误率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 12, + "x": 12, + "y": 16 + }, + "id": 175, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_l7_api_err_count{pod_id=~\".*${pod_id}.*\", api=~\"${api}\"})by(pod, pod_id, api) or sum(gala_gopher_l7_api_err_count{container_id=~\".*${container_id}.*\", api=~\"${api}\"})by(container_name, container_id, api) or sum(gala_gopher_l7_api_err_count{tgid=~\".*${tgid}.*\", api=~\"${api}\"})by(comm, tgid, api) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} api:{{api}} 错误次数", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_l7_api_client_err_count{pod_id=~\".*${pod_id}.*\", api=~\"${api}\"})by(pod, pod_id, api) or sum(gala_gopher_l7_api_client_err_count{container_id=~\".*${container_id}.*\", api=~\"${api}\"})by(container_name, container_id, api) or sum(gala_gopher_l7_api_client_err_count{tgid=~\".*${tgid}.*\", api=~\"${api}\"})by(comm, tgid, api) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} api:{{api}} 客户端错误次数", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_l7_api_server_err_count{pod_id=~\".*${pod_id}.*\", api=~\"${api}\"})by(pod, pod_id, api) or sum(gala_gopher_l7_api_server_err_count{container_id=~\".*${container_id}.*\", api=~\"${api}\"})by(container_name, container_id, api) or sum(gala_gopher_l7_api_server_err_count{tgid=~\".*${tgid}.*\", api=~\"${api}\"})by(comm, tgid, api) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} api:{{api}} 服务端错误次数", + "range": true, + "refId": "C" + } + ], + "title": "接口错误次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 24 + }, + "id": 174, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg(gala_gopher_l7_api_latency_avg{pod_id=~\".*${pod_id}.*\", api=~\"${api}\"})by(pod, pod_id, api) or avg(gala_gopher_l7_api_latency_avg{container_id=~\".*${container_id}.*\", api=~\"${api}\"})by(container_name, container_id, api) or avg(gala_gopher_l7_api_latency_avg{tgid=~\".*${tgid}.*\", api=~\"${api}\"})by(comm, tgid, api) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} api:{{api}} 平均时延", + "range": true, + "refId": "A" + } + ], + "title": "平均时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 24 + }, + "id": 177, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_l7_api_latency_sum{pod_id=~\".*${pod_id}.*\", api=~\"${api}\"})by(pod, pod_id, api) or sum(gala_gopher_l7_api_latency_sum{container_id=~\".*${container_id}.*\", api=~\"${api}\"})by(container_name, container_id, api) or sum(gala_gopher_l7_api_latency_sum{tgid=~\".*${tgid}.*\", api=~\"${api}\"})by(comm, tgid, api) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} api:{{api}} 时延总计", + "range": true, + "refId": "A" + } + ], + "title": "时延总计", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 32 + }, + "id": 159, + "panels": [], + "title": "时延", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 33 + }, + "id": 97, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_l7_api_latency{pod_id=~\".*${pod_id}.*\", api=~\"${api}\"}))by(api, pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} api:{{api}} P99 时延", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_l7_api_latency{pod_id=~\".*${pod_id}.*\", api=~\"${api}\"}))by(api, pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} api:{{api}} P90 时延", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_l7_api_latency{pod_id=~\".*${pod_id}.*\", api=~\"${api}\"}))by(api, pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} api:{{api}} P50 时延", + "range": true, + "refId": "C" + } + ], + "title": "时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 33 + }, + "id": 125, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_l7_api_latency{container_id=~\".*${container_id}.*\", api=~\"${api}\"}))by(api, container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container: {{container_name}} api:{{api}} P99 时延", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_l7_api_latency{container_id=~\".*${container_id}.*\", api=~\"${api}\"}))by(api, container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container: {{container_name}} api:{{api}} P90 时延", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_l7_api_latency{container_id=~\".*${container_id}.*\", api=~\"${api}\"}))by(api, container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container: {{container_name}} api:{{api}} P50 时延", + "range": true, + "refId": "C" + } + ], + "title": "时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 41 + }, + "id": 160, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_l7_api_latency{tgid=~\".*${tgid}.*\", api=~\"${api}\"}))by(api, comm, tgid)", + "hide": false, + "legendFormat": "{{comm}}- {{tgid}} api:{{api}} P99 时延", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_l7_api_latency{tgid=~\".*${tgid}.*\", api=~\"${api}\"}))by(api, comm, tgid)", + "hide": false, + "legendFormat": "{{comm}}- {{tgid}} api:{{api}} P90 时延", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_l7_api_latency{tgid=~\".*${tgid}.*\", api=~\"${api}\"}))by(api, comm, tgid)", + "hide": false, + "legendFormat": "{{comm}}- {{tgid}} api:{{api}} P50 时延", + "range": true, + "refId": "C" + } + ], + "title": "时延", + "type": "timeseries" + } + ], + "refresh": false, + "schemaVersion": 37, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, pod)", + "hide": 0, + "includeAll": false, + "label": "pod_name", + "multi": true, + "name": "pod_name", + "options": [], + "query": { + "query": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, pod)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\" , pod=~\"$pod_name\"}, pod_id) ", + "hide": 0, + "includeAll": true, + "label": "pod_id", + "multi": true, + "name": "pod_id", + "options": [], + "query": { + "query": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\" , pod=~\"$pod_name\"}, pod_id) ", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\" }, container_id) ", + "hide": 0, + "includeAll": false, + "label": "container_id", + "multi": false, + "name": "container_id", + "options": [], + "query": { + "query": "", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, tgid) ", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "tgid", + "options": [], + "query": { + "query": "", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_l7_api_req_count\"}, api)", + "hide": 0, + "includeAll": false, + "label": "api", + "multi": true, + "name": "api", + "options": [], + "query": { + "query": "label_values({__name__=~\"gala_gopher_l7_api_req_count\"}, api)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "AppDetail-AppL7ApiPanels", + "uid": "hfqI52FIk", + "version": 53, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/AppDetail-Network.json b/grafana/dashboard/AppDetail-Network.json new file mode 100644 index 0000000000000000000000000000000000000000..9ddaee3312022d8a186c67604370933bd960e07b --- /dev/null +++ b/grafana/dashboard/AppDetail-Network.json @@ -0,0 +1,5688 @@ +{ + "__inputs": [ + { + "name": "DS_PROMETHEUS-EXPORT-PANELS", + "label": "Prometheus-export-panels", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "9.3.14" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "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": 0, + "id": null, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "System Performance" + ], + "targetBlank": false, + "title": "System Performance", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 250, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 1 + }, + "id": 246, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_proc_flow_perf_tx_delay{pod_id=~\"$pod_id\"}))by(pod, pod_id)", + "hide": false, + "legendFormat": "pod: {{pod}} 系统网络发送时延 P99", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_proc_flow_perf_tx_delay{pod_id=~\"$pod_id\"}))by(pod, pod_id)", + "hide": false, + "legendFormat": "pod: {{pod}} 系统网络发送时延 P90", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_proc_flow_perf_tx_delay{pod_id=~\"$pod_id\"}))by(pod, pod_id)", + "hide": false, + "legendFormat": "pod: {{pod}} 系统网络发送时延 P50", + "range": true, + "refId": "C" + } + ], + "title": "系统网络发送时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 1 + }, + "id": 247, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_proc_flow_perf_tx_delay{container_id=~\"$container_id\"}))by(container_id, container_name)", + "hide": false, + "legendFormat": "container: {{container_name}} 系统网络发送时延 P99", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_proc_flow_perf_tx_delay{container_id=~\"$container_id\"}))by(container_id, container_name)", + "hide": false, + "legendFormat": "container: {{container_name}} 系统网络发送时延 P90", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_proc_flow_perf_tx_delay{container_id=~\"$container_id\"}))by(container_id, container_name)", + "hide": false, + "legendFormat": "container: {{container_name}} 系统网络发送时延 P50", + "range": true, + "refId": "C" + } + ], + "title": "系统网络发送时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 9 + }, + "id": 248, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_proc_flow_perf_tx_delay{tgid=~\"$tgid\"}))by(comm, tgid)", + "hide": false, + "legendFormat": "{{comm}}-{{tgid}} 系统网络发送时延 P99", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_proc_flow_perf_tx_delay{tgid=~\"$tgid\"}))by(comm, tgid)", + "hide": false, + "legendFormat": "{{comm}}-{{tgid}} 系统网络发送时延 P90", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_proc_flow_perf_tx_delay{tgid=~\"$tgid\"}))by(comm, tgid)", + "hide": false, + "legendFormat": "{{comm}}-{{tgid}} 系统网络发送时延 P50", + "range": true, + "refId": "C" + } + ], + "title": "系统网络发送时延", + "type": "timeseries" + } + ], + "title": "系统网络发送时延", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 239, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 2 + }, + "id": 244, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_proc_flow_perf_rx_delay{pod_id=~\"$pod_id\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod: {{pod}} 系统网络接受时延 P99", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_proc_flow_perf_rx_delay{pod_id=~\"$pod_id\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod: {{pod}} 系统网络接受时延 P90", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_proc_flow_perf_rx_delay{pod_id=~\"$pod_id\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod: {{pod}} 系统网络接受时延 P50", + "range": true, + "refId": "C" + } + ], + "title": "系统网络接受时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 2 + }, + "id": 251, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_proc_flow_perf_rx_delay{container_id=~\"$container_id\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container: {{container_name}} 系统网络接受时延 P99", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_proc_flow_perf_rx_delay{container_id=~\"$container_id\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container: {{container_name}} 系统网络接受时延 P90", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_proc_flow_perf_rx_delay{container_id=~\"$container_id\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container: {{container_name}} 系统网络接受时延 P50", + "range": true, + "refId": "C" + } + ], + "title": "系统网络接受时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 10 + }, + "id": 252, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_proc_flow_perf_rx_delay{tgid=~\"$tgid\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} 系统网络接受时延 P99", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_proc_flow_perf_rx_delay{tgid=~\"$tgid\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} 系统网络接受时延 P90", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_proc_flow_perf_rx_delay{tgid=~\"$tgid\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} 系统网络接受时延 P50", + "range": true, + "refId": "C" + } + ], + "title": "系统网络接受时延", + "type": "timeseries" + } + ], + "title": "网络网络接受时延", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 2 + }, + "id": 237, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 3 + }, + "id": 241, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_proc_dns_count{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_proc_dns_count{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_proc_dns_count{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} DNS 访问次数", + "range": true, + "refId": "A" + } + ], + "title": "DNS 访问次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "µs" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 3 + }, + "id": 242, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(gala_gopher_proc_dns_max_delay{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or max(gala_gopher_proc_dns_max_delay{container_id=~\".*$container_id.*\"})by(container_name, container_id) or max(gala_gopher_proc_dns_max_delay{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} DNS 访问最大时延", + "range": true, + "refId": "A" + } + ], + "title": "DNS 访问最大时延", + "type": "timeseries" + } + ], + "title": "DNS", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 3 + }, + "id": 207, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 4 + }, + "id": 217, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_snd_cwnd{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P99 TCP 拥塞窗口大小", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_snd_cwnd{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P90 TCP 拥塞窗口大小", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_snd_cwnd{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P50 TCP 拥塞窗口大小", + "range": true, + "refId": "C" + } + ], + "title": "TCP 拥塞窗口大小", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 4 + }, + "id": 218, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_snd_cwnd{container_id=~\".*$container_id.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P99 TCP 拥塞窗口大小", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_snd_cwnd{container_id=~\".*$container_id.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P90 TCP 拥塞窗口大小", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_snd_cwnd{container_id=~\".*$container_id.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P50 TCP 拥塞窗口大小", + "range": true, + "refId": "C" + } + ], + "title": "TCP 拥塞窗口大小", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 12 + }, + "id": 219, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_snd_cwnd{tgid=~\".*$tgid.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P99 TCP 拥塞窗口大小", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_snd_cwnd{tgid=~\".*$tgid.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P90 TCP 拥塞窗口大小", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_snd_cwnd{tgid=~\".*$tgid.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P50 TCP 拥塞窗口大小", + "range": true, + "refId": "C" + } + ], + "title": "TCP 拥塞窗口大小", + "type": "timeseries" + } + ], + "title": "TCP 拥塞窗口大小", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 4 + }, + "id": 205, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 5 + }, + "id": 213, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_rcv_wnd{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P99 TCP 接受窗口大小", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_rcv_wnd{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P90 TCP 接受窗口大小", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_rcv_wnd{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P50 TCP 接受窗口大小", + "range": true, + "refId": "C" + } + ], + "title": "TCP 接受窗口大小", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 5 + }, + "id": 214, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_rcv_wnd{container_id=~\".*$container_id.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P99 TCP 接受窗口大小", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_rcv_wnd{container_id=~\".*$container_id.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P90 TCP 接受窗口大小", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_rcv_wnd{container_id=~\".*$container_id.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P50 TCP 接受窗口大小", + "range": true, + "refId": "C" + } + ], + "title": "TCP 接受窗口大小", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 13 + }, + "id": 215, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_rcv_wnd{tgid=~\".*$tgid.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P99 TCP 接受窗口大小", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_rcv_wnd{tgid=~\".*$tgid.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P90 TCP 接受窗口大小", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_rcv_wnd{tgid=~\".*$tgid.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P50 TCP 接受窗口大小", + "range": true, + "refId": "C" + } + ], + "title": "TCP 接受窗口大小", + "type": "timeseries" + } + ], + "title": "TCP 接收窗口大小", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 5 + }, + "id": 203, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 6 + }, + "id": 209, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_snd_wnd{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P99 TCP 发送窗口大小", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_snd_wnd{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P90 TCP 发送窗口大小", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_snd_wnd{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P50 TCP 发送窗口大小", + "range": true, + "refId": "C" + } + ], + "title": "TCP 发送窗口大小", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 6 + }, + "id": 210, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_snd_wnd{container_id=~\".*$container_id.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P99 TCP 发送窗口大小", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_snd_wnd{container_id=~\".*$container_id.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P90 TCP 发送窗口大小", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_snd_wnd{container_id=~\".*$container_id.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P50 TCP 发送窗口大小", + "range": true, + "refId": "C" + } + ], + "title": "TCP 发送窗口大小", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 14 + }, + "id": 211, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_snd_wnd{tgid=~\".*$tgid.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P99 TCP 发送窗口大小", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_snd_wnd{tgid=~\".*$tgid.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P90 TCP 发送窗口大小", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_snd_wnd{tgid=~\".*$tgid.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P50 TCP 发送窗口大小", + "range": true, + "refId": "C" + } + ], + "title": "TCP 发送窗口大小", + "type": "timeseries" + } + ], + "title": "TCP 发送窗口大小", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 6 + }, + "id": 199, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 7 + }, + "id": 197, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_avl_snd_wnd{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P99 TCP 可用发送窗口大小", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_avl_snd_wnd{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P90 TCP 可用发送窗口大小", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_avl_snd_wnd{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P50 TCP 可用发送窗口大小", + "range": true, + "refId": "C" + } + ], + "title": "TCP 可用发送窗口大小", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 7 + }, + "id": 200, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_avl_snd_wnd{container_id=~\".*${container_id}.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P99 TCP 可用发送窗口大小", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_avl_snd_wnd{container_id=~\".*${container_id}.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P90 TCP 可用发送窗口大小", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_avl_snd_wnd{container_id=~\".*${container_id}.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P50 TCP 可用发送窗口大小", + "range": true, + "refId": "C" + } + ], + "title": "TCP 可用发送窗口大小", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 15 + }, + "id": 201, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_avl_snd_wnd{tgid=~\".*$tgid.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P99 TCP 可用发送窗口大小", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_avl_snd_wnd{tgid=~\".*$tgid.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P90 TCP 可用发送窗口大小", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_avl_snd_wnd{tgid=~\".*$tgid.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P50 TCP 可用发送窗口大小", + "range": true, + "refId": "C" + } + ], + "title": "TCP 可用发送窗口大小", + "type": "timeseries" + } + ], + "title": "TCP 可用发送窗口大小", + "type": "row" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 7 + }, + "id": 179, + "panels": [], + "title": "TCP", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "Bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 8 + }, + "id": 181, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(sum_over_time(gala_gopher_tcp_link_rx_bytes{pod_id=~\".*$pod_id.*\"}[1m]) + sum_over_time(gala_gopher_tcp_link_tx_bytes{pod_id=~\".*$pod_id.*\"}[1m]))by(pod, pod_id) / 60 or sum(sum_over_time(gala_gopher_tcp_link_rx_bytes{container_id=~\".*$container_id.*\"}[1m]) + sum_over_time(gala_gopher_tcp_link_tx_bytes{container_id=~\".*$container_id.*\"}[1m]))by(container_name, container_id) or sum(sum_over_time(gala_gopher_tcp_link_rx_bytes{tgid=~\".*$tgid.*\"}[1m]) + sum_over_time(gala_gopher_tcp_link_tx_bytes{tgid=~\".*$tgid.*\"}[1m]))by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 传输速率", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(sum_over_time(gala_gopher_tcp_link_rx_bytes{pod_id=~\".*$pod_id.*\"}[1m]))by(pod, pod_id) / 60 or sum(sum_over_time(gala_gopher_tcp_link_rx_bytes{container_id=~\".*$container_id.*\"}[1m]))by(container_name, container_id) or sum(sum_over_time(gala_gopher_tcp_link_rx_bytes{tgid=~\".*$tgid.*\"}[1m]))by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 接受速率", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(sum_over_time(gala_gopher_tcp_link_tx_bytes{pod_id=~\".*$pod_id.*\"}[1m]))by(pod, pod_id) / 60 or sum(sum_over_time(gala_gopher_tcp_link_tx_bytes{container_id=~\".*$container_id.*\"}[1m]))by(container_name, container_id) or sum(sum_over_time(gala_gopher_tcp_link_tx_bytes{tgid=~\".*$tgid.*\"}[1m]))by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 发送速率", + "range": true, + "refId": "C" + } + ], + "title": "TCP 传输速率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 12, + "x": 12, + "y": 8 + }, + "id": 184, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_tcp_link_retran_packets{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_tcp_link_retran_packets{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_tcp_link_retran_packets{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 重传数量", + "range": true, + "refId": "A" + } + ], + "title": "TCP 重传数量", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "max": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 16 + }, + "id": 185, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_tcp_link_retran_packets{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) / sum(gala_gopher_tcp_link_segs_out{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_tcp_link_retran_packets{container_id=~\".*$container_id.*\"})by(container_name, container_id) / sum(gala_gopher_tcp_link_segs_out{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_tcp_link_retran_packets{tgid=~\".*$tgid.*\"})by(comm, tgid) / sum(gala_gopher_tcp_link_segs_out{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 重传率", + "range": true, + "refId": "A" + } + ], + "title": "TCP 重传率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 12, + "x": 12, + "y": 16 + }, + "id": 186, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_endpoint_tcp_active_open_failed{pod_id=~\".*$pod_id.*\"} + gala_gopher_endpoint_tcp_passive_open_failed{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_endpoint_tcp_active_open_failed{container_id=~\".*$container_id.*\"} + gala_gopher_endpoint_tcp_passive_open_failed{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_endpoint_tcp_active_open_failed{tgid=~\".*$tgid.*\"} + gala_gopher_endpoint_tcp_passive_open_failed{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 建链失败总次数", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_endpoint_tcp_active_open_failed{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_endpoint_tcp_active_open_failed{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_endpoint_tcp_active_open_failed{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 客户端建链失败次数", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_endpoint_tcp_passive_open_failed{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_endpoint_tcp_passive_open_failed{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_endpoint_tcp_passive_open_failed{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 服务端建链失败次数", + "range": true, + "refId": "C" + } + ], + "title": "TCP 建链失败次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "max": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 24 + }, + "id": 220, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_tcp_link_zero_rcv_wnd_count{pod_id=~\".*$pod_id.*\"} + gala_gopher_tcp_link_zero_snd_wnd_count{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) / sum(gala_gopher_tcp_link_snd_wnd{pod_id=~\".*$pod_id.*\"} + gala_gopher_tcp_link_rcv_wnd{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_tcp_link_zero_rcv_wnd_count{container_id=~\".*$container_id.*\"} + gala_gopher_tcp_link_zero_snd_wnd_count{container_id=~\".*$container_id.*\"})by(container_name, container_id) / sum(gala_gopher_tcp_link_snd_wnd{container_id=~\".*$container_id.*\"} + gala_gopher_tcp_link_rcv_wnd{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_tcp_link_zero_rcv_wnd_count{tgid=~\".*$tgid.*\"} + gala_gopher_tcp_link_zero_snd_wnd_count{tgid=~\".*$tgid.*\"})by(comm, tgid) / sum(gala_gopher_tcp_link_snd_wnd{tgid=~\".*$tgid.*\"} + gala_gopher_tcp_link_rcv_wnd{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 零窗比例", + "range": true, + "refId": "A" + } + ], + "title": "TCP 零窗比例", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 24 + }, + "id": 221, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_tcp_link_zero_snd_wnd_count{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_tcp_link_zero_snd_wnd_count{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_tcp_link_zero_snd_wnd_count{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 发送零窗次数", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_tcp_link_zero_rcv_wnd_count{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_tcp_link_zero_rcv_wnd_count{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_tcp_link_zero_rcv_wnd_count{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 接受零窗次数", + "range": true, + "refId": "B" + } + ], + "title": "TCP 零窗次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 32 + }, + "id": 222, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_endpoint_tcp_rst_recv{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_endpoint_tcp_rst_recv{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_endpoint_tcp_rst_recv{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 接受 RST 报文次数", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_endpoint_tcp_rst_sent{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_endpoint_tcp_rst_sent{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_endpoint_tcp_rst_sent{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 发送 RST 报文次数", + "range": true, + "refId": "B" + } + ], + "title": "TCP RST 统计", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 32 + }, + "id": 223, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_tcp_link_sacked_out{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_tcp_link_sacked_out{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_tcp_link_sacked_out{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 乱序包数量", + "range": true, + "refId": "A" + } + ], + "title": "TCP 乱序包数量", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 40 + }, + "id": 224, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_tcp_link_lost_out{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_tcp_link_lost_out{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_tcp_link_lost_out{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 拥塞丢包数量", + "range": true, + "refId": "A" + } + ], + "title": "TCP 拥塞丢包数量", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 40 + }, + "id": 225, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_tcp_link_lost_out{pod_id=~\".*$pod_id.*\"} + gala_gopher_tcp_link_sk_drops{pod_id=~\".*$pod_id.*\"} + gala_gopher_tcp_link_filter_drops{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_tcp_link_lost_out{container_id=~\".*$container_id.*\"} + gala_gopher_tcp_link_sk_drops{container_id=~\".*$container_id.*\"} + gala_gopher_tcp_link_filter_drops{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_tcp_link_lost_out{tgid=~\".*$tgid.*\"} + gala_gopher_tcp_link_sk_drops{tgid=~\".*$tgid.*\"} + gala_gopher_tcp_link_filter_drops{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 丢包", + "range": true, + "refId": "A" + } + ], + "title": "TCP 丢包", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 48 + }, + "id": 226, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_tcp_link_backlog_drops{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_tcp_link_backlog_drops{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_tcp_link_backlog_drops{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 接受队列溢出次数", + "range": true, + "refId": "A" + } + ], + "title": "TCP 接受队列溢出次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 48 + }, + "id": 227, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_tcp_link_tcp_oom{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_tcp_link_tcp_oom{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_tcp_link_tcp_oom{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP OOM", + "range": true, + "refId": "A" + } + ], + "title": "TCP OOM", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 56 + }, + "id": 228, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_endpoint_tcp_syn_sent{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_endpoint_tcp_syn_sent{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_endpoint_tcp_syn_sent{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP SYN发送次数", + "range": true, + "refId": "A" + } + ], + "title": "TCP SYN发送次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 56 + }, + "id": 229, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_endpoint_tcp_retran_syn{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_endpoint_tcp_retran_syn{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_endpoint_tcp_retran_syn{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP SYN 重发次数", + "range": true, + "refId": "A" + } + ], + "title": "TCP SYN 重发次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 64 + }, + "id": 230, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_endpoint_tcp_synack_sent{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_endpoint_tcp_synack_sent{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_endpoint_tcp_synack_sent{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP SYN ACK 发送次数", + "range": true, + "refId": "A" + } + ], + "title": "TCP SYN ACK 发送次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 64 + }, + "id": 231, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_endpoint_tcp_retran_synacks{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_endpoint_tcp_retran_synacks{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_endpoint_tcp_retran_synacks{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP SYN ACK 重发次数", + "range": true, + "refId": "A" + } + ], + "title": "TCP SYN ACK 重发次数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 72 + }, + "id": 232, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_endpoint_tcp_req_drops{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_endpoint_tcp_req_drops{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_endpoint_tcp_req_drops{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 关闭侦听后收到建链请求次数", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_endpoint_tcp_accept_overflow{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_endpoint_tcp_accept_overflow{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_endpoint_tcp_accept_overflow{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 半连接队列溢出次数", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_endpoint_tcp_syn_overflow{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_endpoint_tcp_syn_overflow{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_endpoint_tcp_syn_overflow{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} TCP 发生 syn 队列溢出次数", + "range": true, + "refId": "C" + } + ], + "title": "TCP 服务端建链失败统计", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 80 + }, + "id": 183, + "panels": [], + "title": "UDP", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 81 + }, + "id": 234, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_endpoint_udp_bind_sends{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_endpoint_udp_bind_sends{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_endpoint_udp_bind_sends{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} UDP 发送字节", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_endpoint_udp_bind_rcvs{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_endpoint_udp_bind_rcvs{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_endpoint_udp_bind_rcvs{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} UDP 接受字节", + "range": true, + "refId": "B" + } + ], + "title": "UDP 流量统计", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 81 + }, + "id": 235, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(gala_gopher_endpoint_udp_udp_rcv_drops{pod_id=~\".*$pod_id.*\"})by(pod, pod_id) or sum(gala_gopher_endpoint_udp_udp_rcv_drops{container_id=~\".*$container_id.*\"})by(container_name, container_id) or sum(gala_gopher_endpoint_udp_udp_rcv_drops{tgid=~\".*$tgid.*\"})by(comm, tgid) or on() vector(0)", + "hide": false, + "instant": false, + "interval": "5s", + "legendFormat": "{{pod}} {{container_name}} {{comm}}-{{tgid}} UDP 丢包字节", + "range": true, + "refId": "A" + } + ], + "title": "UDP 丢包统计", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 89 + }, + "id": 159, + "panels": [], + "title": "TCP 传输时延", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 90 + }, + "id": 188, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_srtt{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P99 TCP 传输时延", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_srtt{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P90 TCP 传输时延", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_srtt{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P50 TCP 传输时延", + "range": true, + "refId": "C" + } + ], + "title": "TCP 传输时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 12, + "y": 90 + }, + "id": 189, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_srtt{container_id=~\".*${container_id}.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P99 TCP 传输时延", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_srtt{container_id=~\".*${container_id}.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P90 TCP 传输时延", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_srtt{container_id=~\".*${container_id}.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P50 TCP 传输时延", + "range": true, + "refId": "C" + } + ], + "title": "TCP 传输时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 98 + }, + "id": 190, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_srtt{tgid=~\".*$tgid.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P99 TCP 传输时延", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_srtt{tgid=~\".*$tgid.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P90 TCP 传输时延", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_srtt{tgid=~\".*$tgid.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P50 TCP 传输时延", + "range": true, + "refId": "C" + } + ], + "title": "TCP 传输时延", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 106 + }, + "id": 192, + "panels": [], + "title": "TCP 接收端时延", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 107 + }, + "id": 193, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_rcv_rtt{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P99 TCP 接收端时延", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_rcv_rtt{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P90 TCP 接收端时延", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_rcv_rtt{pod_id=~\".*${pod_id}.*\"}))by(pod, pod_id)", + "hide": false, + "interval": "5s", + "legendFormat": "pod:{{pod}} P50 TCP 接收端时延", + "range": true, + "refId": "C" + } + ], + "title": "TCP 接收端时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 12, + "y": 107 + }, + "id": 194, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_rcv_rtt{container_id=~\".*${container_id}.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P99 TCP 接收端时延", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_rcv_rtt{container_id=~\".*${container_id}.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P90 TCP 接收端时延", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_rcv_rtt{container_id=~\".*${container_id}.*\"}))by(container_id, container_name)", + "hide": false, + "interval": "5s", + "legendFormat": "container:{{container_name}} P50 TCP 接收端时延", + "range": true, + "refId": "C" + } + ], + "title": "TCP 接收端时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "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": 115 + }, + "id": 195, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.99, gala_gopher_tcp_link_rcv_rtt{tgid=~\".*${tgid}.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P99 TCP 接收端时延", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.90, gala_gopher_tcp_link_rcv_rtt{tgid=~\".*${tgid}.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P90 TCP 接收端时延", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(histogram_quantile(0.50, gala_gopher_tcp_link_rcv_rtt{tgid=~\".*${tgid}.*\"}))by(comm, tgid)", + "hide": false, + "interval": "5s", + "legendFormat": "{{comm}}-{{tgid}} P50 TCP 接收端时延", + "range": true, + "refId": "C" + } + ], + "title": "TCP 接收端时延", + "type": "timeseries" + } + ], + "refresh": false, + "schemaVersion": 37, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, pod)", + "hide": 0, + "includeAll": true, + "label": "pod_name", + "multi": true, + "name": "pod_name", + "options": [], + "query": { + "query": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, pod)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\" , pod=~\"$pod_name\"}, pod_id) ", + "hide": 0, + "includeAll": true, + "label": "pod_id", + "multi": true, + "name": "pod_id", + "options": [], + "query": { + "query": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\" , pod=~\"$pod_name\"}, pod_id) ", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, container_id) ", + "hide": 0, + "includeAll": false, + "label": "container_id", + "multi": false, + "name": "container_id", + "options": [], + "query": { + "query": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, container_id) ", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, tgid) ", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "tgid", + "options": [], + "query": { + "query": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, tgid) ", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "AppDetail-Network", + "uid": "7uHMwuFSz", + "version": 143, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/ContaninerDetail.json b/grafana/dashboard/ContaninerDetail.json new file mode 100644 index 0000000000000000000000000000000000000000..a3bfc5ec8a8f56bc8da8a9fb93536eccbd9db324 --- /dev/null +++ b/grafana/dashboard/ContaninerDetail.json @@ -0,0 +1,1623 @@ +{ + "__inputs": [ + { + "name": "DS_PROMETHEUS-EXPORT-PANELS", + "label": "Prometheus-export-panels", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "9.3.14" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "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": 0, + "id": null, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "System Performance" + ], + "targetBlank": false, + "title": "System Performance", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "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": 0, + "y": 0 + }, + "id": 27, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "topk(5, gala_gopher_container_cpu_usage_seconds_total)", + "hide": false, + "legendFormat": "{{container_name}} 整体 CPU 负载", + "range": true, + "refId": "A" + } + ], + "title": "TOPN CPU 负载", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "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": 0 + }, + "id": 29, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "topk(5, gala_gopher_container_memory_working_set_bytes)", + "hide": false, + "legendFormat": "{{container_name}} 占用内存大小", + "range": true, + "refId": "D" + } + ], + "title": "TOPN 内存信息", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 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": 8 + }, + "id": 31, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "topk(5, gala_gopher_container_network_receive_bytes_total) or on() vector(0)", + "hide": false, + "instant": false, + "legendFormat": "{{container_name}} 收字节数", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "topk(5,gala_gopher_container_network_transmit_bytes_total) or on() vector(0)", + "hide": false, + "legendFormat": "{{container_name}} 发字节数", + "range": true, + "refId": "B" + } + ], + "title": "TOPN 网络流量", + "type": "timeseries" + }, + { + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 16 + }, + "id": 25, + "title": "top3", + "type": "row" + }, + { + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 17 + }, + "id": 23, + "title": "container detail", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "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": 0, + "y": 18 + }, + "id": 10, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_cpu_usage_seconds_total{container_id=~\"$container_id\"}", + "hide": false, + "legendFormat": "{{container_name}} 整体 CPU 负载", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_cpu_system_seconds_total{container_id=~\"$container_id\"}", + "hide": false, + "legendFormat": "{{container_name}} 系统态 CPU 负载", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_cpu_user_seconds_total{container_id=~\"$container_id\"}", + "hide": false, + "legendFormat": "{{container_name}} 整体 用户态负载", + "range": true, + "refId": "C" + } + ], + "title": "CPU 负载", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "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": 18 + }, + "id": 21, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_cpu_cfs_throttled_seconds_total{container_id=~\"$container_id\"} or on() vector(0)", + "hide": false, + "legendFormat": "{{container_name}} CPU 限流时间", + "range": true, + "refId": "B" + } + ], + "title": "容器 CPU 限流", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "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": 26 + }, + "id": 19, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_file_descriptors{container_id=~\"$container_id\"} or on() vector(0)", + "hide": false, + "legendFormat": "{{container_name}} 文件句柄数量", + "range": true, + "refId": "B" + } + ], + "title": "文件句柄数量", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "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": 26 + }, + "id": 14, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_memory_mapped_file{container_id=~\"$container_id\"}", + "hide": false, + "legendFormat": "{{container_name}} 映射文件占用大小", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_memory_cache{container_id=~\"$container_id\"}", + "hide": false, + "legendFormat": "{{container_name}} Cache 内存大小", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_memory_rss{container_id=~\"$container_id\"}", + "hide": false, + "legendFormat": "{{container_name}} 物理内存大小", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_memory_working_set_bytes{container_id=~\"$container_id\"}", + "hide": false, + "legendFormat": "{{container_name}} 实际占用内存大小", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_memory_usage_bytes{container_id=~\"$container_id\"}", + "hide": false, + "legendFormat": "{{container_name}} 总共占用内存大小", + "range": true, + "refId": "E" + } + ], + "title": "内存信息", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 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": 34 + }, + "id": 16, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_network_receive_bytes_total{container_id=~\"$container_id\"} OR on() vector(0)", + "hide": false, + "instant": false, + "legendFormat": "{{container_name}} 收字节数", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_network_transmit_bytes_total{container_id=~\"$container_id\"} OR on() vector(0)", + "hide": false, + "legendFormat": "{{container_name}} 发字节数", + "range": true, + "refId": "B" + } + ], + "title": "网络流量", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 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": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 34 + }, + "id": 18, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_network_receive_errors_total{container_id=~\"$container_id\"} OR on() vector(0)", + "hide": false, + "legendFormat": "{{container_name}} 收包错误次数", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_network_receive_packets_dropped_total{container_id=~\"$container_id\"} OR on() vector(0)", + "hide": false, + "legendFormat": "{{container_name}} 收包丢弃次数", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_network_transmit_errors_total{container_id=~\"$container_id\"} OR on() vector(0)", + "hide": false, + "legendFormat": "{{container_name}} 发包错误次数", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_network_transmit_packets_dropped_total{container_id=~\"$container_id\"} OR on() vector(0)", + "hide": false, + "legendFormat": "{{container_name}} 发包丢弃次数", + "range": true, + "refId": "F" + } + ], + "title": "网络异常", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 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": 42 + }, + "id": 12, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_fs_reads_bytes_total{container_id=~\"$container_id\"} or on() vector(0)", + "hide": false, + "legendFormat": "{{container_name}} 读字节数", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_fs_writes_bytes_total{container_id=~\"$container_id\"} or on() vector(0)", + "hide": false, + "legendFormat": "{{container_name}} 写字节数", + "range": true, + "refId": "E" + } + ], + "title": "IO 读写字节数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 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": 12, + "y": 42 + }, + "id": 20, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_fs_read_seconds_total{container_id=~\"$container_id\"} or on() vector(0)", + "hide": false, + "legendFormat": "{{container_name}} 读时间", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_fs_write_seconds_total{container_id=~\"$container_id\"} or on() vector(0)", + "hide": false, + "legendFormat": "{{container_name}} 写时间", + "range": true, + "refId": "E" + } + ], + "title": "IO 读写时间", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "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": 50 + }, + "id": 11, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_fs_inodes_free{container_id=~\"$container_id\"} or on() vector(0)", + "hide": false, + "legendFormat": "{{container_name}} inode-free", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_fs_inodes_total{container_id=~\"$container_id\"} or on() vector(0)", + "hide": false, + "legendFormat": "{{container_name}} inodes-total", + "range": true, + "refId": "C" + } + ], + "title": "Inode 数量", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "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": 50 + }, + "id": 17, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_container_oom_events_total{container_id=~\"$container_id\"} or on() vector(0)", + "hide": false, + "legendFormat": "{{container_name}} OOM 次数", + "range": true, + "refId": "A" + } + ], + "title": "OOM 次数", + "type": "timeseries" + } + ], + "schemaVersion": 37, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values(gala_gopher_container_start_time_seconds{}, container_id)", + "hide": 0, + "includeAll": true, + "multi": true, + "name": "container_id", + "options": [], + "query": { + "query": "label_values(gala_gopher_container_start_time_seconds{}, container_id)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values(gala_gopher_container_start_time_seconds{container_id=~\"$container_id\"}, container_name)", + "hide": 0, + "includeAll": true, + "multi": true, + "name": "container_name", + "options": [], + "query": { + "query": "label_values(gala_gopher_container_start_time_seconds{container_id=~\"$container_id\"}, container_name)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-15m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "ContaninerDetail", + "uid": "GPeEC3FSk", + "version": 31, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/HostDetail.json b/grafana/dashboard/HostDetail.json new file mode 100644 index 0000000000000000000000000000000000000000..e75314e9f0a3dbaf43e84e3c77458c78ac7827cb --- /dev/null +++ b/grafana/dashboard/HostDetail.json @@ -0,0 +1,4260 @@ +{ + "__inputs": [ + { + "name": "DS_PROMETHEUS-EXPORT-PANELS", + "label": "Prometheus-export-panels", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "9.3.14" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "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" + } + ] + }, + "description": "", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "Home Page" + ], + "targetBlank": false, + "title": "Home Page", + "tooltip": "", + "type": "dashboards", + "url": "" + }, + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "DB Monitor" + ], + "targetBlank": false, + "title": "DB Monitor", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 173, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 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": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 1 + }, + "id": 175, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_slab_kB{machine_id=~\".*$machine_id.*\"} + gala_gopher_mem_page_kB{machine_id=~\".*$machine_id.*\"} + gala_gopher_mem_vmalloc_kB{machine_id=~\".*$machine_id.*\"} ", + "hide": false, + "legendFormat": "{{job}} 内核内存", + "range": true, + "refId": "B" + } + ], + "title": "内核内存", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 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": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 1 + }, + "id": 179, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_slab_kB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} SLAB 内存大小", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_SReclaimable_kB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} 可回收 SLAB 内存大小", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_SUnreclaim_kB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} 不可回收 SLAB 内存大小", + "range": true, + "refId": "C" + } + ], + "title": "SLAB 内存", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 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": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 9 + }, + "id": 177, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_vmalloc_kB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} Vmalloc 内存", + "range": true, + "refId": "B" + } + ], + "title": "Vmalloc 内存", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 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": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 9 + }, + "id": 176, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_page_kB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} 页表内存大小", + "range": true, + "refId": "B" + } + ], + "title": "页表内存", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 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": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 17 + }, + "id": 178, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_stack_kB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} 进程栈内存总和", + "range": true, + "refId": "B" + } + ], + "title": "进程栈内存总和", + "type": "timeseries" + } + ], + "title": "内核内存", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 171, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 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": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 2 + }, + "id": 181, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_active_file_kB{machine_id=~\".*$machine_id.*\"} + gala_gopher_mem_inactive_file_kB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} 文件缓存", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_active_file_kB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} 活动的文件缓存", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_inactive_file_kB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} 非活动的文件缓存", + "range": true, + "refId": "C" + } + ], + "title": "文件缓存", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 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": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 2 + }, + "id": 182, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_active_anon_kB{machine_id=~\".*$machine_id.*\"} + gala_gopher_mem_inactive_anon_kB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} 匿名内存", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_active_anon_kB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} 活动的匿名内存", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_inactive_anon_kB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} 非活动的匿名内存", + "range": true, + "refId": "C" + } + ], + "title": "匿名内存", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 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": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 10 + }, + "id": 183, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_mlocked{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} 系统调用锁定的内存", + "range": true, + "refId": "A" + } + ], + "title": "系统调用锁定的内存", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 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": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 10 + }, + "id": 184, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_big_page_kB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} 系统大页内存", + "range": true, + "refId": "A" + } + ], + "title": "系统大页内存", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 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": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 18 + }, + "id": 185, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_shmem_kB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} 共享内存", + "range": true, + "refId": "A" + } + ], + "title": "共享内存", + "type": "timeseries" + } + ], + "title": "应用内存", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 2 + }, + "id": 136, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "CPU 使用率", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 1, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 19 + }, + "id": 130, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "topk(5, gala_gopher_cpu_total_used_per)", + "legendFormat": "{{job}} cpu", + "range": true, + "refId": "A" + } + ], + "title": "TOPN CPU 使用率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": "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": 19 + }, + "id": 131, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "topk(5, gala_gopher_mem_util)", + "legendFormat": "{{job}} 内存使用率", + "range": true, + "refId": "A" + } + ], + "title": "TOPN 内存使用率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": "KBs" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "C" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "right" + }, + { + "id": "unit", + "value": "none" + }, + { + "id": "custom.axisLabel", + "value": "网卡收发包数量" + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "D" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "right" + }, + { + "id": "unit", + "value": "none" + }, + { + "id": "custom.axisLabel", + "value": "网卡收发包数量" + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "E" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "right" + }, + { + "id": "unit", + "value": "none" + }, + { + "id": "custom.axisLabel", + "value": "网卡收发包数量" + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "F" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "right" + }, + { + "id": "unit", + "value": "none" + }, + { + "id": "custom.axisLabel", + "value": "网卡收发包数量" + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "G" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "right" + }, + { + "id": "unit", + "value": "none" + }, + { + "id": "custom.axisLabel", + "value": "网卡收发包数量" + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "H" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "right" + }, + { + "id": "unit", + "value": "none" + }, + { + "id": "custom.axisLabel", + "value": "网卡收发包数量" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 27 + }, + "id": 80, + "options": { + "legend": { + "calcs": [ + "last", + "min", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "topk(5, gala_gopher_nic_rxspeed_KB)", + "hide": false, + "legendFormat": "{{job}} {{dev_name}} 收速度", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "topk(5, gala_gopher_nic_txspeed_KB)", + "hide": false, + "legendFormat": "{{job}} {{dev_name}} 发速度", + "range": true, + "refId": "B" + } + ], + "title": "TOPN 网络收发速率", + "type": "timeseries" + } + ], + "title": "主机列表-TOPN 指标 panel 列表", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 3 + }, + "id": 138, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 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": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 4 + }, + "id": 32, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_cpu_total_used_per{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} cpu 总使用率", + "range": true, + "refId": "B" + } + ], + "title": "CPU 使用率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 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": "MHz" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 4 + }, + "id": 140, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_cpu_mhz{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} cpu{{cpu}} 频率", + "range": true, + "refId": "B" + } + ], + "title": "CPU 频率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 12 + }, + "id": 139, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_cpu_softirq_msec{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} cpu{{cpu}} softirq", + "range": true, + "refId": "D" + } + ], + "title": "CPU 软中断耗时", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 12 + }, + "id": 141, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "mean" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_cpu_iowait_msec{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} cpu{{cpu}} iowait", + "range": true, + "refId": "D" + } + ], + "title": "CPU IOWAIT 耗时", + "type": "timeseries" + } + ], + "title": "主机列表-主机详情页面 panel 列表 CPU", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 4 + }, + "id": 150, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 59 + }, + "id": 142, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_util{machine_id=~\".*$machine_id.*\"}", + "legendFormat": "{{job}} 内存使用率", + "range": true, + "refId": "A" + } + ], + "title": "内存使用率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 59 + }, + "id": 50, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_available_kB{machine_id=~\".*$machine_id.*\"}", + "legendFormat": "{{job}} 可用内存", + "range": true, + "refId": "A" + } + ], + "title": "可用内存", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 67 + }, + "id": 144, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_cache_kB{machine_id=~\".*$machine_id.*\"}", + "legendFormat": "{{job}} cache 内存", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_active_kB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} active 内存", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_inactive_kB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} inactive 内存", + "range": true, + "refId": "C" + } + ], + "title": "Cache 内存", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 67 + }, + "id": 143, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_slab_kB{machine_id=~\".*$machine_id.*\"}", + "legendFormat": "{{job}} SWAP 内存", + "range": true, + "refId": "A" + } + ], + "title": "SWAP 内存", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 0, + "y": 75 + }, + "id": 157, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_dentry{machine_id=~\".*$machine_id.*\"}", + "legendFormat": "{{job}} dentry 数量", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_unused_dentry{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} 未使用 dentry 数量", + "range": true, + "refId": "B" + } + ], + "title": "dentry 数量", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 75 + }, + "id": 158, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_mem_buffers_kB{machine_id=~\".*$machine_id.*\"}", + "legendFormat": "{{job}} 缓存大小", + "range": true, + "refId": "A" + } + ], + "title": "系统缓存大小", + "type": "timeseries" + } + ], + "title": "主机列表-主机详情页面 panel 列表 MEM", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 5 + }, + "id": 152, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 1, + "drawStyle": "line", + "fillOpacity": 1, + "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" + } + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 53 + }, + "id": 87, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_disk_util{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"}", + "format": "time_series", + "legendFormat": "{{job}} {{disk_name}} 磁盘使用率", + "range": true, + "refId": "A" + } + ], + "title": "磁盘使用率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 1, + "drawStyle": "line", + "fillOpacity": 1, + "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": "iops" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 53 + }, + "id": 145, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_disk_rspeed{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"}", + "hide": false, + "legendFormat": "{{job}} {{disk_name}} 读速率", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_disk_wspeed{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"}", + "hide": false, + "legendFormat": "{{job}} {{disk_name}} 写速率", + "range": true, + "refId": "C" + } + ], + "title": "磁盘读写速率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 1, + "drawStyle": "line", + "fillOpacity": 1, + "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": "kbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 61 + }, + "id": 146, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_disk_rspeed_kB{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"}", + "hide": false, + "legendFormat": "{{job}} {{disk_name}} 读速率", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_disk_wspeed_kB{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"}", + "hide": false, + "legendFormat": "{{job}} {{disk_name}} 写速率", + "range": true, + "refId": "C" + } + ], + "title": "磁盘读写吞吐量", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": "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": 61 + }, + "id": 89, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_disk_rareq{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"}", + "legendFormat": "{{job}} {{disk_name}} 读饱和度", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_disk_wareq{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"}", + "hide": false, + "legendFormat": "{{job}} {{disk_name}} 写饱和度", + "range": true, + "refId": "B" + } + ], + "title": "磁盘读写饱和度", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": "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": 0, + "y": 69 + }, + "id": 147, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_disk_r_await{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"}", + "legendFormat": "{{job}} {{disk_name}} 读响应时间", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_disk_w_await{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"}", + "hide": false, + "legendFormat": "{{job}} {{disk_name}} 写响应时间", + "range": true, + "refId": "B" + } + ], + "title": "磁盘读写响应时间", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": "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": 69 + }, + "id": 148, + "interval": "5s", + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_disk_aqu{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"}", + "legendFormat": "{{job}} {{disk_name}} 磁盘平均队列深度", + "range": true, + "refId": "A" + } + ], + "title": "磁盘平均队列深度", + "type": "timeseries" + } + ], + "title": "主机列表-主机详情页面 panel 列表 磁盘", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 6 + }, + "id": 162, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 1, + "drawStyle": "line", + "fillOpacity": 1, + "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" + } + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 7 + }, + "id": 164, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(gala_gopher_block_latency_req_max{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"})by(machine_id, job, disk_name)", + "format": "time_series", + "legendFormat": "{{job}} {{disk_name}} block 层最大时延", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_block_latency_req_sum{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"})by(machine_id, job, disk_name) / sum(gala_gopher_block_count_latency_req{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"})by(machine_id, job, disk_name)", + "format": "time_series", + "hide": false, + "legendFormat": "{{job}} {{disk_name}} block 层平均时延", + "range": true, + "refId": "B" + } + ], + "title": "block 层时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 1, + "drawStyle": "line", + "fillOpacity": 1, + "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" + } + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 7 + }, + "id": 165, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(gala_gopher_block_latency_driver_max{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"})by(machine_id, job, disk_name)", + "format": "time_series", + "legendFormat": "{{job}} {{disk_name}} 驱动层最大时延", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_block_latency_driver_sum{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"})by(machine_id, job, disk_name) / sum(gala_gopher_block_count_latency_driver{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"})by(machine_id, job, disk_name)", + "format": "time_series", + "hide": false, + "legendFormat": "{{job}} {{disk_name}} 驱动层平均时延", + "range": true, + "refId": "B" + } + ], + "title": "驱动层时延", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 1, + "drawStyle": "line", + "fillOpacity": 1, + "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" + } + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 15 + }, + "id": 166, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "max(gala_gopher_block_latency_device_max{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"})by(machine_id, job, disk_name)", + "format": "time_series", + "legendFormat": "{{job}} {{disk_name}} 设备层最大时延", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_block_latency_device_sum{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"})by(machine_id, job, disk_name) / sum(gala_gopher_block_count_latency_device{machine_id=~\".*$machine_id.*\", disk_name=~\"$disk_name\"})by(machine_id, job, disk_name)", + "format": "time_series", + "hide": false, + "legendFormat": "{{job}} {{disk_name}} 设备层平均时延", + "range": true, + "refId": "B" + } + ], + "title": "设备层时延", + "type": "timeseries" + } + ], + "title": "block", + "type": "row" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 7 + }, + "id": 154, + "panels": [], + "title": "网络", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 8 + }, + "id": 167, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_net_tcp_curr_estab{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} tcp 连接数", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_net_tcp_in_segs{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} tcp 接受分片数", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_net_tcp_out_segs{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} tcp 发送分片数", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_net_udp_indata_grams{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} udp 接受包数量", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_net_udp_outdata_grams{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} udp 发送包数量", + "range": true, + "refId": "C" + } + ], + "title": "协议栈信息", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 8 + }, + "id": 66, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_net_tcp_in_errs{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} tcp 错包数", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_net_tcp_retrans_segs{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} tcp 重传分片数", + "range": true, + "refId": "B" + } + ], + "title": "TCP 异常包数量", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": [ + { + "matcher": { + "id": "byName", + "options": "192.168.122.102 ens4 收速度" + }, + "properties": [ + { + "id": "unit", + "value": "KiBs" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "192.168.122.102 ens4 发速度" + }, + "properties": [ + { + "id": "unit", + "value": "KiBs" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 16 + }, + "id": 169, + "options": { + "legend": { + "calcs": [ + "last", + "min", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_nic_rxspeed_KB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} {{dev_name}} 收速度", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_nic_txspeed_KB{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} {{dev_name}} 发速度", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_nic_rx_dropped{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} {{dev_name}} 收丢包数", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_nic_tx_dropped{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} {{dev_name}} 发丢包数", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_nic_rx_errs{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} {{dev_name}} 收错包数", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_nic_tx_errs{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} {{dev_name}} 发错包数", + "range": true, + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_nic_tc_sent_drop{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} {{dev_name}} TC发送丢包数", + "range": true, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_nic_tc_sent_overlimits{machine_id=~\".*$machine_id.*\"}", + "hide": false, + "legendFormat": "{{job}} {{dev_name}} TC发送队列溢出", + "range": true, + "refId": "H" + } + ], + "title": "网卡信息", + "type": "timeseries" + } + ], + "refresh": false, + "schemaVersion": 37, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values(gala_gopher_host_value{}, job)", + "hide": 0, + "includeAll": false, + "label": "", + "multi": false, + "name": "instance", + "options": [], + "query": { + "query": "label_values(gala_gopher_host_value{}, job)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "gala_gopher_host_value{job=~\"$instance\"}", + "hide": 0, + "includeAll": false, + "label": "", + "multi": false, + "name": "machine_id", + "options": [], + "query": { + "query": "gala_gopher_host_value{job=~\"$instance\"}", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "/.*machine_id=\"([^\"]{1,36}).*/", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values(gala_gopher_cpu_util_per{job=~\"$instance\"}, cpu)", + "hide": 0, + "includeAll": true, + "multi": false, + "name": "cpu", + "options": [], + "query": { + "query": "label_values(gala_gopher_cpu_util_per{job=~\"$instance\"}, cpu)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values(gala_gopher_disk_util{machine_id=~\".*$machine_id.*\"}, disk_name)", + "hide": 0, + "includeAll": true, + "multi": false, + "name": "disk_name", + "options": [], + "query": { + "query": "label_values(gala_gopher_disk_util{machine_id=~\".*$machine_id.*\"}, disk_name)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "HostDetail", + "uid": "FH3Y0sVIz", + "version": 98, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/System Flame-export.json b/grafana/dashboard/System Flame-export.json new file mode 100644 index 0000000000000000000000000000000000000000..34a452e286b5b0a078c904247e0f70eb0c95ca65 --- /dev/null +++ b/grafana/dashboard/System Flame-export.json @@ -0,0 +1,313 @@ +{ + "__inputs": [ + { + "name": "DS_PYROSCOPE-DATASOURCE", + "label": "pyroscope-datasource", + "description": "", + "type": "datasource", + "pluginId": "pyroscope-datasource", + "pluginName": "Pyroscope" + }, + { + "name": "DS_PROMETHEUS-EXPORT-PANELS", + "label": "Prometheus-export-panels", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + }, + { + "name": "DS_PROMETHEUS-DFS", + "label": "Prometheus-dfs", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "9.3.14" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "type": "datasource", + "id": "pyroscope-datasource", + "name": "Pyroscope", + "version": "1.2.0" + }, + { + "type": "panel", + "id": "pyroscope-panel", + "name": "Pyroscope Flamegraph", + "version": "1.4.2" + } + ], + "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": null, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "System Performance" + ], + "targetBlank": false, + "title": "System Performance", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 20, + "panels": [], + "title": "系统全栈诊断", + "type": "row" + }, + { + "datasource": { + "type": "pyroscope-datasource", + "uid": "${DS_PYROSCOPE-DATASOURCE}" + }, + "gridPos": { + "h": 19, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 23, + "options": { + "displayOnly": "both", + "showToolbar": true + }, + "targets": [ + { + "datasource": { + "type": "pyroscope-datasource", + "uid": "${DS_PYROSCOPE-DATASOURCE}" + }, + "format": "json", + "from": "now-1h", + "name": "gala-gopher-$type-$machine_id.$tgid", + "refId": "A", + "until": "now" + } + ], + "type": "pyroscope-panel" + }, + { + "datasource": { + "type": "pyroscope-datasource", + "uid": "${DS_PYROSCOPE-DATASOURCE}" + }, + "gridPos": { + "h": 19, + "w": 24, + "x": 0, + "y": 20 + }, + "id": 24, + "options": { + "displayOnly": "both", + "showToolbar": true + }, + "targets": [ + { + "datasource": { + "type": "pyroscope-datasource", + "uid": "${DS_PYROSCOPE-DATASOURCE}" + }, + "format": "json", + "from": "now-1h", + "name": "gala-gopher-$type-$machine_id", + "refId": "A", + "until": "now" + } + ], + "type": "pyroscope-panel" + } + ], + "refresh": "", + "schemaVersion": 37, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": "mem", + "value": "mem" + }, + "hide": 0, + "includeAll": false, + "multi": false, + "name": "type", + "options": [ + { + "selected": false, + "text": "oncpu", + "value": "oncpu" + }, + { + "selected": false, + "text": "offcpu", + "value": "offcpu" + }, + { + "selected": true, + "text": "mem", + "value": "mem" + } + ], + "query": "oncpu,offcpu,mem", + "queryValue": "", + "skipUrlSync": false, + "type": "custom" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values(gala_gopher_host_value{}, job)", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "instance", + "options": [], + "query": { + "query": "label_values(gala_gopher_host_value{}, job)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "gala_gopher_host_value{job=~\"$instance\"}", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "machine_id", + "options": [], + "query": { + "query": "gala_gopher_host_value{job=~\"$instance\"}", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "/.*machine_id=\"([^\"]{1,36}).*/", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-DFS}" + }, + "definition": "label_values(gala_gopher_proc_fd_count{job=~\"$instance\"}, comm)", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "comm", + "options": [], + "query": { + "query": "label_values(gala_gopher_proc_fd_count{job=~\"$instance\"}, comm)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values(gala_gopher_proc_fd_count{job=~\"$instance\", comm=~\"$comm\"}, tgid)", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "tgid", + "options": [], + "query": { + "query": "label_values(gala_gopher_proc_fd_count{job=~\"$instance\", comm=~\"$comm\"}, tgid)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "System Flame", + "uid": "a1oRYqNIz", + "version": 4, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboard/ThreadProfiling-EventDetail.json b/grafana/dashboard/ThreadProfiling-EventDetail.json index 3497a296823591551f3ba57110e16aff6b8d1735..54a06741122eba0fca0313dd6b68107c34136678 100644 --- a/grafana/dashboard/ThreadProfiling-EventDetail.json +++ b/grafana/dashboard/ThreadProfiling-EventDetail.json @@ -21,7 +21,7 @@ "type": "grafana", "id": "grafana", "name": "Grafana", - "version": "9.3.1" + "version": "9.3.14" }, { "type": "panel", diff --git a/grafana/dashboard/ThreadProfiling.json b/grafana/dashboard/ThreadProfiling.json index db9541b70e70662d049f9eb2b418326f6f6ba386..2db6234ec1c5618b5ca0546b6fc33f4befa37a84 100644 --- a/grafana/dashboard/ThreadProfiling.json +++ b/grafana/dashboard/ThreadProfiling.json @@ -35,7 +35,7 @@ "type": "grafana", "id": "grafana", "name": "Grafana", - "version": "9.3.1" + "version": "9.3.14" }, { "type": "panel", @@ -276,7 +276,7 @@ { "targetBlank": true, "title": "event detail", - "url": "d/3MHCLB8Vz/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\"]}" + "url": "d/3MHCLB8Vz/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[\"Attributes.start_time\"]}&var-end_time=${__data.fields[\"Attributes.end_time\"]}" } ], "mappings": [], @@ -316,7 +316,7 @@ }, { "color": "#726768", - "text": "futex" + "text": "lock" }, { "color": "green", @@ -335,7 +335,7 @@ "text": "ipc" } ], - "endField": "Attributes.end_time", + "endField": "end_time", "experiments": { "enabled": false }, @@ -347,7 +347,7 @@ "showYAxis": true, "sortBy": "text", "sortOrder": "asc", - "startField": "@timestamp", + "startField": "start_time", "textField": "comm_pid" }, "targets": [ @@ -377,7 +377,7 @@ "type": "logs" } ], - "query": "_exists_:event_name AND comm_tgid.keyword:${comm_tgid}", + "query": "_exists_:event_name AND comm_tgid.keyword:${comm_tgid} AND comm_pid.keyword:${comm_pid}", "refId": "A", "timeField": "@timestamp" } @@ -987,7 +987,7 @@ }, "showAdvancedTypes": false }, - "pluginVersion": "9.3.1", + "pluginVersion": "9.3.14", "targets": [ { "alias": "", @@ -1057,7 +1057,7 @@ }, "gridPos": { "h": 7, - "w": 12, + "w": 24, "x": 0, "y": 23 }, @@ -1155,7 +1155,7 @@ { "targetBlank": true, "title": "event detail", - "url": "d/3MHCLB8Vz/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\"]}" + "url": "d/3MHCLB8Vz/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[\"Attributes.start_time\"]}&var-end_time=${__data.fields[\"Attributes.end_time\"]}" } ], "mappings": [], @@ -1198,7 +1198,7 @@ }, { "color": "#7e7172", - "text": "futex" + "text": "lock" }, { "color": "#C0D8FF", @@ -1213,7 +1213,7 @@ "text": "ipc" } ], - "endField": "Attributes.end_time", + "endField": "end_time", "labelFields": [ "desc", "Attributes.count" @@ -1221,7 +1221,7 @@ "showYAxis": true, "sortBy": "text", "sortOrder": "asc", - "startField": "@timestamp", + "startField": "start_time", "textField": "event_type" }, "repeat": "comm_pid", @@ -1293,7 +1293,7 @@ "content": "", "mode": "markdown" }, - "pluginVersion": "9.3.1", + "pluginVersion": "9.3.14", "transparent": true, "type": "text" } @@ -1331,14 +1331,14 @@ "type": "elasticsearch", "uid": "${DS_ELASTICSEARCH-GALA-EVENT}" }, - "definition": "{\"find\": \"terms\", \"field\": \"container_name_id.keyword\", \"query\": \"event_name:*\"}", + "definition": "{\"find\": \"terms\", \"field\": \"container_name_id.keyword\", \"query\": \"event_name:* AND host_id.keyword:${host_id}\"}", "hide": 0, "includeAll": false, "label": "container", "multi": false, "name": "container_name_id", "options": [], - "query": "{\"find\": \"terms\", \"field\": \"container_name_id.keyword\", \"query\": \"event_name:*\"}", + "query": "{\"find\": \"terms\", \"field\": \"container_name_id.keyword\", \"query\": \"event_name:* AND host_id.keyword:${host_id}\"}", "refresh": 1, "regex": "", "skipUrlSync": false, @@ -1351,14 +1351,14 @@ "type": "elasticsearch", "uid": "${DS_ELASTICSEARCH-GALA-EVENT}" }, - "definition": "{\"find\": \"terms\", \"field\": \"comm_tgid.keyword\", \"query\": \"event_name:* AND container_name_id.keyword:${container_name_id}\"}", + "definition": "{\"find\": \"terms\", \"field\": \"comm_tgid.keyword\", \"query\": \"event_name:* AND container_name_id.keyword:${container_name_id} AND host_id.keyword:${host_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}\"}", + "query": "{\"find\": \"terms\", \"field\": \"comm_tgid.keyword\", \"query\": \"event_name:* AND container_name_id.keyword:${container_name_id} AND host_id.keyword:${host_id}\"}", "refresh": 1, "regex": "", "skipUrlSync": false, @@ -1371,14 +1371,14 @@ "type": "elasticsearch", "uid": "${DS_ELASTICSEARCH-GALA-EVENT}" }, - "definition": "{\"find\": \"terms\", \"field\": \"comm_pid.keyword\", \"query\": \"comm_tgid.keyword:${comm_tgid}\"}", + "definition": "{\"find\": \"terms\", \"field\": \"comm_pid.keyword\", \"query\": \"comm_tgid.keyword:${comm_tgid} AND container_name_id.keyword:${container_name_id} AND host_id.keyword:${host_id}\"}", "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}\"}", + "query": "{\"find\": \"terms\", \"field\": \"comm_pid.keyword\", \"query\": \"comm_tgid.keyword:${comm_tgid} AND container_name_id.keyword:${container_name_id} AND host_id.keyword:${host_id}\"}", "refresh": 1, "regex": "/^(?!C1 Compiler|C2 Compiler|VM |NIOWorkerThread).*/", "skipUrlSync": false, @@ -1395,6 +1395,6 @@ "timezone": "", "title": "ThreadProfiling", "uid": "GAvuYB84z", - "version": 4, + "version": 9, "weekStart": "" } \ No newline at end of file diff --git a/grafana/dashboard/clusterDiagnosisPanels.json b/grafana/dashboard/clusterDiagnosisPanels.json new file mode 100644 index 0000000000000000000000000000000000000000..d306b0474cf48632c1ac1ca1ba384e31f56c2057 --- /dev/null +++ b/grafana/dashboard/clusterDiagnosisPanels.json @@ -0,0 +1,972 @@ +{ + "__inputs": [ + { + "name": "DS_PROMETHEUS-EXPORT-PANELS", + "label": "Prometheus-export-panels", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "9.3.14" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "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": 0, + "id": null, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [ + "System Performance" + ], + "targetBlank": false, + "title": "System Performance", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 66, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "avg(gala_gopher_sli_rtt_nsec{pod_id=~\"$pod_id\"})by(pod, method) or on() vector(0)", + "hide": false, + "legendFormat": "pod: {{pod}} redis {{method}} 请求 RTT", + "range": true, + "refId": "A" + } + ], + "title": "Redis 请求 RTT", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 2, + "pointSize": 1, + "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": 12, + "x": 12, + "y": 0 + }, + "id": 76, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "gala_gopher_sli_tps{pod_id=~\"$pod_id\"} or on() vector(0)", + "hide": false, + "legendFormat": "pod: {{pod}} {{datname}} 数据库吞吐量", + "range": true, + "refId": "A" + } + ], + "title": "openGauss 数据库吞吐量", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 12, + "x": 0, + "y": 8 + }, + "id": 78, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_l7_throughput_req{pod_id=~\"$pod_id\"})by(pod, pod_id) or on() vector(0)", + "hide": false, + "legendFormat": "pod: {{pod}} 请求吞吐量", + "range": true, + "refId": "A" + } + ], + "title": "l7 请求吞吐量", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 12, + "x": 12, + "y": 8 + }, + "id": 81, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_l7_throughput_resp{pod_id=~\"$pod_id\"})by(pod, pod_id) or on() vector(0)", + "hide": false, + "legendFormat": "pod: {{pod}} 响应吞吐量", + "range": true, + "refId": "A" + } + ], + "title": "l7 响应吞吐量", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 16 + }, + "id": 80, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "avg(gala_gopher_l7_err_ratio{pod_id=~\"$pod_id\"})by(pod, pod_id) or on() vector(0)", + "hide": false, + "legendFormat": "pod: {{pod}} l7 错误率", + "range": true, + "refId": "A" + } + ], + "title": "l7 错误率", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": 12, + "x": 12, + "y": 16 + }, + "id": 82, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_l7_err_count{pod_id=~\"$pod_id\"})by(pod, pod_id) or on() vector(0)", + "hide": false, + "legendFormat": "pod: {{pod}} l7 错误个数", + "range": true, + "refId": "A" + } + ], + "title": "l7 错误个数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 24 + }, + "id": 79, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "sum(gala_gopher_l7_latency_sum{pod_id=~\"$pod_id\"})by(pod, pod_id) or on() vector(0)", + "hide": false, + "legendFormat": "pod: {{pod}} 时延总和", + "range": true, + "refId": "A" + } + ], + "title": "l7 时延总和", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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": 1, + "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": "ns" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 24 + }, + "id": 83, + "options": { + "legend": { + "calcs": [ + "last", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "editorMode": "code", + "expr": "avg(gala_gopher_l7_latency_avg{pod_id=~\"$pod_id\"})by(pod, pod_id) or on() vector(0)", + "hide": false, + "legendFormat": "pod: {{pod}} 平均时延", + "range": true, + "refId": "A" + } + ], + "title": "l7 平均时延", + "type": "timeseries" + } + ], + "refresh": false, + "schemaVersion": 37, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "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" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, pod)", + "hide": 0, + "includeAll": false, + "label": "pod_name", + "multi": true, + "name": "pod_name", + "options": [], + "query": { + "query": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\"}, pod)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-EXPORT-PANELS}" + }, + "definition": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\" , pod=~\"$pod_name\"}, pod_id) ", + "hide": 0, + "includeAll": true, + "label": "pod_id", + "multi": true, + "name": "pod_id", + "options": [], + "query": { + "query": "label_values({__name__=~\"gala_gopher_tcp_link_rx_bytes|gala_gopher_dns_count|gala_gopher_l7_bytes_recv|gala_gopher_proc_fd_count\", job=~\"$instance\" , pod=~\"$pod_name\"}, pod_id) ", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-15m", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "clusterDiagnosisPanels", + "uid": "u_UfijdSk", + "version": 49, + "weekStart": "" +} \ No newline at end of file