diff --git a/Dockerfile b/Dockerfile index 329dcc76..cb2b8010 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,4 +44,4 @@ COPY --from=build /go/src/github.com/alibaba/kubeskoop/bin/webconsole /bin/webco COPY --from=build-ui /webconsole/build /var/www COPY tools/scripts/* /bin/ -COPY deploy/resource/kubeskoop-exporter-dashboard.json /etc/ +COPY deploy/resource/kubeskoop-exporter-nodes-dashboard.json deploy/resource/kubeskoop-exporter-nodes-dashboard.json /etc/ diff --git a/deploy/resource/kubeskoop-exporter-dashboard.json b/deploy/resource/kubeskoop-exporter-nodes-dashboard.json similarity index 52% rename from deploy/resource/kubeskoop-exporter-dashboard.json rename to deploy/resource/kubeskoop-exporter-nodes-dashboard.json index f89d3c82..0b6dbb64 100644 --- a/deploy/resource/kubeskoop-exporter-dashboard.json +++ b/deploy/resource/kubeskoop-exporter-nodes-dashboard.json @@ -1,35 +1,4 @@ { - "__inputs": [ - { - "name": "DS_PROMETHEUS", - "label": "prometheus", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - } - ], - "__elements": {}, - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "9.4.7" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "timeseries", - "name": "Time series", - "version": "" - } - ], "annotations": { "list": [ { @@ -52,7 +21,7 @@ } ] }, - "editable": false, + "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": null, @@ -67,208 +36,24 @@ "x": 0, "y": 0 }, - "id": 48, + "id": 2, "panels": [], - "title": "Network Overview", + "title": "Risk Overview", "type": "row" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "page/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 1 - }, - "id": 68, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "sum(kubeskoop_sock_mem{k8s_node=~\"$node\"}) by (node)", - "legendFormat": "{{k8s_node}}", - "range": true, - "refId": "A" - } - ], - "title": "Socket Memory Usage Kernel+User (page)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "pps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 1 - }, - "id": 83, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "sum(rate(kubeskoop_packetloss_total{k8s_node=~\"$node\"}[2m])) by (k8s_node)", - "legendFormat": "{{k8s_node}}", - "range": true, - "refId": "A" - } - ], - "title": "Packet abnormal loss(times)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "fieldConfig": { "defaults": { "color": { - "mode": "palette-classic" + "fixedColor": "dark-red", + "mode": "fixed" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -282,6 +67,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -312,1285 +98,17 @@ } ] }, - "unit": "binBps" + "unit": "packets/sec" }, "overrides": [] }, "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 9 - }, - "id": 50, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "rate(kubeskoop_netdev_rxbytes{k8s_pod=~\"$pod\"}[1m])", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", - "range": true, - "refId": "A" - } - ], - "title": "Network Device RX bytes", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 9 - }, - "id": 70, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "sum(kubeskoop_sock_alloc{k8s_node=~\"$node\"}) by (node)", - "legendFormat": "{{k8s_node}}", - "range": true, - "refId": "A" - } - ], - "title": "Socket Allocate count(include orphan)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "cps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 17 - }, - "id": 58, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "rate(kubeskoop_netdev_txerrors[1m])", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", - "range": true, - "refId": "A" - } - ], - "title": "Network Device TX errors(times)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 17 - }, - "id": 52, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "irate(kubeskoop_netdev_txbytes{k8s_pod=~\"$pod\"}[2m])", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", - "range": true, - "refId": "A" - } - ], - "title": "Network Device TX bytes", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "pps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 25 - }, - "id": 85, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "rate(kubeskoop_netdev_rxpackets[2m])", - "format": "heatmap", - "instant": false, - "interval": "", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "rate(kubeskoop_netdev_txpackets[2m])", - "hide": false, - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", - "range": true, - "refId": "B" - } - ], - "title": "Netdev RX/TX Packets", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "cps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 25 - }, - "id": 60, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "rate(kubeskoop_netdev_rxerrors[1m])", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", - "range": true, - "refId": "A" - } - ], - "title": "Network Device RX errors(times)", - "type": "timeseries" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 33 - }, - "id": 2, - "panels": [], - "title": "Risk Overview", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "pps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 34 - }, - "id": 10, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum(rate(kubeskoop_tcp_retranssegs{k8s_node=~\"$node\"}[1m])) by (node)", - "legendFormat": "{{k8s_node}}", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "rate(kubeskoop_tcp_retranssegs{k8s_pod=~\"$pod\"}[1m])", - "hide": false, - "legendFormat": "{{k8s_pod}}", - "range": true, - "refId": "B" - } - ], - "title": "RetranSegs", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 34 - }, - "id": 12, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "sum(kubeskoop_tcpsummary_tcpestablishedconn{k8s_node=~\"$node\"}) by (node)", - "legendFormat": "{{k8s_node}}", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "kubeskoop_tcpsummary_tcpestablishedconn{k8s_pod=~\"$pod\"}", - "hide": false, - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", - "range": true, - "refId": "B" - } - ], - "title": "TCP Established Conn", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "description": "由本地发起的连接出现连接失败是也会造成RTO超时增加", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "cpm" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 42 - }, - "id": 44, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "increase(kubeskoop_tcpext_tcptimeouts{k8s_pod=~\"$pod\"}[1m])", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", - "range": true, - "refId": "A" - } - ], - "title": "TCP RTO-Timeout times", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 42 - }, - "id": 62, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "kubeskoop_tcpsummary_tcptimewaitconn{k8s_pod=~\"$pod\"}", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", - "range": true, - "refId": "A" - } - ], - "title": "TCP Timewait Conn", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "cps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 50 - }, - "id": 64, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "rate(kubeskoop_tcpext_listenoverflows{k8s_pod=~\"$pod\"}[1m])", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", - "range": true, - "refId": "A" - } - ], - "title": "TCP Listen Backlog overflow", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "cps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 50 - }, - "id": 66, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "rate(kubeskoop_tcpext_listendrops{k8s_pod=~\"$pod\"}[1m])", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", - "range": true, - "refId": "A" - } - ], - "title": "TCP handshake drop(listendrop)", - "type": "timeseries" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 58 - }, - "id": 8, - "panels": [], - "title": "Unexpected Delay", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "cps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 59 - }, - "id": 79, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "rate(kubeskoop_socketlatency_read100ms{k8s_pod=~\"$pod\"}[1m])", - "legendFormat": "{{k8s_node}}", - "range": true, - "refId": "A" - } - ], - "title": "Socket Read Latency( > 100ms)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 59 + "h": 9, + "w": 24, + "x": 0, + "y": 1 }, - "id": 74, + "id": 83, "options": { "legend": { "calcs": [], @@ -1599,6 +117,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -1607,22 +126,40 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "kubeskoop_tcpsummary_tcptxqueue{k8s_pod=~\"$pod\"}", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", + "exemplar": false, + "expr": "sum(rate(kubeskoop_packetloss_total{k8s_node=\"$node\"}[1m]))", + "format": "time_series", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "loss", "range": true, "refId": "A" } ], - "title": "Socket Wqueue remain", + "title": "Packet abnormal loss(times)", "type": "timeseries" }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 10 + }, + "id": 48, + "panels": [], + "title": "Network Overview", + "type": "row" + }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "fieldConfig": { "defaults": { @@ -1630,6 +167,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -1643,6 +181,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -1664,7 +203,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1672,17 +212,42 @@ } ] }, - "unit": "bytes" + "unit": "binBps" }, - "overrides": [] + "overrides": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": [ + "kubeskoop/prometheus-deployment-5dc88c6b94-lwcgp" + ], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] }, "gridPos": { "h": 8, "w": 12, "x": 0, - "y": 67 + "y": 11 }, - "id": 72, + "id": 50, "options": { "legend": { "calcs": [], @@ -1691,6 +256,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -1699,22 +265,35 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "kubeskoop_tcpsummary_tcprxqueue{k8s_pod=~\"$pod\"}", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", + "expr": "rate(kubeskoop_netdev_rxbytes{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", + "legendFormat": "Hostnet", "range": true, "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "rate(kubeskoop_netdev_rxbytes{k8s_node=\"$node\", k8s_pod!=\"\"}[1m])", + "hide": false, + "instant": false, + "legendFormat": "{{k8s_namespace}}/{{k8s_pod}}", + "range": true, + "refId": "B" } ], - "title": "Socket Rqueue remain", + "title": "Network Device RX bytes", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "fieldConfig": { "defaults": { @@ -1722,6 +301,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -1735,6 +315,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -1756,7 +337,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1764,7 +346,7 @@ } ] }, - "unit": "cps" + "unit": "bytes" }, "overrides": [] }, @@ -1772,9 +354,9 @@ "h": 8, "w": 12, "x": 12, - "y": 67 + "y": 11 }, - "id": 81, + "id": 52, "options": { "legend": { "calcs": [], @@ -1783,6 +365,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -1791,34 +374,35 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "rate(kubeskoop_kernellatency_rxslow{}[1m])", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", + "expr": "rate(kubeskoop_netdev_txbytes{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", + "legendFormat": "Hostnet", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "rate(kubeskoop_kernellatency_txslow{}[1m])", + "expr": "rate(kubeskoop_netdev_txbytes{k8s_node=\"$node\", k8s_pod!=\"\"}[1m])", "hide": false, - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", + "instant": false, + "legendFormat": "{{k8s_namespace}}/{{k8s_pod}}", "range": true, "refId": "B" } ], - "title": "Kernel Latency (tx && rx)", + "title": "Network Device TX bytes", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "fieldConfig": { "defaults": { @@ -1840,6 +424,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -1861,7 +446,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1877,9 +463,9 @@ "h": 8, "w": 12, "x": 0, - "y": 75 + "y": 19 }, - "id": 34, + "id": 58, "options": { "legend": { "calcs": [], @@ -1888,6 +474,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -1896,22 +483,22 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "rate(kubeskoop_softirq_schedslow{k8s_node=~\"$node\"}[1m]) ", - "legendFormat": "{{softirq_type}}", + "expr": "rate(kubeskoop_netdev_txerrors{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", + "legendFormat": "tx errors", "range": true, "refId": "A" } ], - "title": "Net Softirq sched slow(more than 10ms)", + "title": "Network Device TX errors(times)", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "fieldConfig": { "defaults": { @@ -1919,6 +506,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -1932,6 +520,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -1953,7 +542,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1969,9 +559,9 @@ "h": 8, "w": 12, "x": 12, - "y": 75 + "y": 19 }, - "id": 36, + "id": 60, "options": { "legend": { "calcs": [], @@ -1980,6 +570,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -1988,22 +579,22 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "rate(kubeskoop_softirq_schedslow100ms{k8s_node=~\"$node\"}[1m])", - "legendFormat": "{{softirq_type}}", + "expr": "rate(kubeskoop_netdev_rxerrors{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", + "legendFormat": "rx errors", "range": true, "refId": "A" } ], - "title": "Network softirq Sched more than 100ms", + "title": "Network Device RX errors(times)", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "fieldConfig": { "defaults": { @@ -2025,6 +616,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -2054,7 +646,7 @@ } ] }, - "unit": "cps" + "unit": "pps" }, "overrides": [] }, @@ -2062,9 +654,9 @@ "h": 8, "w": 12, "x": 0, - "y": 83 + "y": 27 }, - "id": 86, + "id": 88, "options": { "legend": { "calcs": [], @@ -2073,6 +665,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -2081,22 +674,26 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "rate(kubeskoop_softirq_excuteslow{k8s_node=~\"$node\"}[1m]) ", - "legendFormat": "{{softirq_type}}", + "exemplar": false, + "expr": "rate(kubeskoop_netdev_txpackets{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", + "format": "heatmap", + "instant": false, + "interval": "", + "legendFormat": "tx packets", "range": true, "refId": "A" } ], - "title": "Net Softirq execute slow(more than 10ms)", + "title": "Network Device TX Packets", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "fieldConfig": { "defaults": { @@ -2118,6 +715,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -2147,7 +745,7 @@ } ] }, - "unit": "cps" + "unit": "pps" }, "overrides": [] }, @@ -2155,9 +753,9 @@ "h": 8, "w": 12, "x": 12, - "y": 83 + "y": 27 }, - "id": 87, + "id": 85, "options": { "legend": { "calcs": [], @@ -2166,6 +764,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -2174,30 +773,47 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "rate(kubeskoop_softirq_excuteslow100ms{k8s_node=~\"$node\"}[1m]) ", - "legendFormat": "{{softirq_type}}", + "exemplar": false, + "expr": "rate(kubeskoop_netdev_rxpackets{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", + "format": "heatmap", + "instant": false, + "interval": "", + "legendFormat": "rx packets", "range": true, "refId": "A" } ], - "title": "Net Softirq execute slow(more than 100ms)", + "title": "Network Device RX Packets", "type": "timeseries" }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 35 + }, + "id": 100, + "panels": [], + "title": "TCP Summary", + "type": "row" + }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, - "description": "在偶发延迟场景中,需要关注是否出现这个指标的增长。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -2211,6 +827,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -2240,7 +857,7 @@ } ] }, - "unit": "cps" + "unit": "none" }, "overrides": [] }, @@ -2248,9 +865,9 @@ "h": 8, "w": 12, "x": 0, - "y": 83 + "y": 36 }, - "id": 38, + "id": 98, "options": { "legend": { "calcs": [], @@ -2259,6 +876,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -2267,22 +885,75 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "kubeskoop_virtcmdlatency_latency{k8s_node=~\"$node\"}", - "legendFormat": "{{k8s_node}}/le {{le}}", + "expr": "kubeskoop_tcpsummary_tcptimewaitconn{k8s_node=\"$node\", k8s_pod=\"\"}", + "instant": false, + "legendFormat": "timewait", "range": true, "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "kubeskoop_tcpsummary_tcpestablishedconn{k8s_node=\"$node\", k8s_pod=\"\"}", + "hide": false, + "instant": false, + "legendFormat": "established", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "kubeskoop_tcpsummary_tcpclosewaitconn{k8s_node=\"$node\", k8s_pod=\"\"}", + "hide": false, + "instant": false, + "legendFormat": "closewait", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "kubeskoop_tcpsummary_tcpsynsentconn{k8s_node=\"$node\", k8s_pod=\"\"}", + "hide": false, + "instant": false, + "legendFormat": "syn sent", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "kubeskoop_tcpsummary_tcpsynrecvconn{k8s_node=\"$node\", k8s_pod=\"\"}", + "hide": false, + "instant": false, + "legendFormat": "syn recv", + "range": true, + "refId": "E" } ], - "title": "Virtio command execute low", + "title": "TCP Connections", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "fieldConfig": { "defaults": { @@ -2290,6 +961,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -2303,6 +975,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -2331,8 +1004,7 @@ "value": 80 } ] - }, - "unit": "bytes" + } }, "overrides": [] }, @@ -2340,9 +1012,9 @@ "h": 8, "w": 12, "x": 12, - "y": 83 + "y": 36 }, - "id": 40, + "id": 101, "options": { "legend": { "calcs": [], @@ -2351,6 +1023,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -2359,22 +1032,49 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "rate(kubeskoop_io_readbytes{k8s_pod=~\"$pod\"}[1m])", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", + "expr": "kubeskoop_sock_inuse{k8s_node=\"$node\", k8s_pod=\"\"}+kubeskoop_sock_orphan{k8s_node=\"$node\", k8s_pod=\"\"}", + "instant": false, + "legendFormat": "Hostnet", "range": true, "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "kubeskoop_sock_inuse{k8s_node=\"$node\",k8s_pod!=\"\"}+kubeskoop_sock_orphan{k8s_node=\"$node\", k8s_pod!=\"\"}", + "hide": false, + "instant": false, + "legendFormat": "{{k8s_namespace}}/{{k8s_pod}}", + "range": true, + "refId": "B" } ], - "title": "IO Read rate", + "title": "TCP Socket Count", "type": "timeseries" }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 44 + }, + "id": 89, + "panels": [], + "title": "TCPExt", + "type": "row" + }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "fieldConfig": { "defaults": { @@ -2382,6 +1082,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -2395,6 +1096,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -2423,8 +1125,7 @@ "value": 80 } ] - }, - "unit": "binBps" + } }, "overrides": [] }, @@ -2432,9 +1133,9 @@ "h": 8, "w": 12, "x": 0, - "y": 91 + "y": 45 }, - "id": 42, + "id": 99, "options": { "legend": { "calcs": [], @@ -2443,6 +1144,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -2451,22 +1153,36 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "rate(kubeskoop_io_writebytes{k8s_pod=~\"$pod\"}[1m])", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", + "expr": "kubeskoop_tcpsummary_tcptxqueue{k8s_node=\"$node\", k8s_pod=\"\"}", + "instant": false, + "legendFormat": "TX Queue", "range": true, "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "kubeskoop_tcpsummary_tcprxqueue{k8s_node=\"$node\", k8s_pod=\"\"}", + "hide": false, + "instant": false, + "legendFormat": "RX Queue", + "range": true, + "refId": "B" } ], - "title": "IO Write rate", + "title": "TCP Queue", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "fieldConfig": { "defaults": { @@ -2474,6 +1190,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -2487,6 +1204,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -2524,9 +1242,9 @@ "h": 8, "w": 12, "x": 12, - "y": 91 + "y": 45 }, - "id": 46, + "id": 97, "options": { "legend": { "calcs": [], @@ -2535,6 +1253,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -2543,47 +1262,36 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "rate(kubeskoop_io_writesyscall{k8s_pod=~\"$pod\"}[1m])", - "legendFormat": "W-{{k8s_pod}}/{{k8s_node}}", + "expr": "rate(kubeskoop_tcp_passiveopens{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", + "instant": false, + "legendFormat": "passive opens", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "rate(kubeskoop_io_readsyscall{k8s_pod=~\"$pod\"}[1m])", + "expr": "rate(kubeskoop_tcp_activeopens{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", "hide": false, - "legendFormat": "R-{{k8s_pod}}/{{k8s_node}}", + "instant": false, + "legendFormat": "active opens", "range": true, "refId": "B" } ], - "title": "IO Syscall times", + "title": "TCP Opens", "type": "timeseries" }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 99 - }, - "id": 6, - "panels": [], - "title": "DNS/UDP Timeout", - "type": "row" - }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "fieldConfig": { "defaults": { @@ -2591,6 +1299,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -2604,6 +1313,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -2632,8 +1342,7 @@ "value": 80 } ] - }, - "unit": "pps" + } }, "overrides": [] }, @@ -2641,9 +1350,9 @@ "h": 8, "w": 12, "x": 0, - "y": 100 + "y": 53 }, - "id": 24, + "id": 90, "options": { "legend": { "calcs": [], @@ -2652,6 +1361,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -2660,22 +1370,23 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "rate(kubeskoop_udp_indatagrams{k8s_pod=~\"$pod\"}[1m])", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", + "expr": "rate(kubeskoop_tcpext_listendrops{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", + "instant": false, + "legendFormat": "listen drops", "range": true, "refId": "A" } ], - "title": "UDP RX rate", + "title": "TCPListenDrops", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "fieldConfig": { "defaults": { @@ -2683,6 +1394,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -2696,6 +1408,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -2724,8 +1437,7 @@ "value": 80 } ] - }, - "unit": "pps" + } }, "overrides": [] }, @@ -2733,9 +1445,9 @@ "h": 8, "w": 12, "x": 12, - "y": 100 + "y": 53 }, - "id": 26, + "id": 93, "options": { "legend": { "calcs": [], @@ -2744,6 +1456,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -2752,22 +1465,23 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "rate(kubeskoop_udp_outdatagrams{k8s_pod=~\"$pod\"}[1m])", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", + "expr": "rate(kubeskoop_tcpext_listenoverflows{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", + "instant": false, + "legendFormat": "listen overflows", "range": true, "refId": "A" } ], - "title": "UDP TX rate", + "title": "ListenOverflows", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "fieldConfig": { "defaults": { @@ -2775,6 +1489,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -2788,6 +1503,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -2816,8 +1532,7 @@ "value": 80 } ] - }, - "unit": "cps" + } }, "overrides": [] }, @@ -2825,9 +1540,9 @@ "h": 8, "w": 12, "x": 0, - "y": 108 + "y": 61 }, - "id": 22, + "id": 94, "options": { "legend": { "calcs": [], @@ -2836,6 +1551,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -2844,22 +1560,23 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "kubeskoop_udp_rcvbuferrors{k8s_pod=~\"$pod\"}", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", + "expr": "rate(kubeskoop_tcpext_tcpsynretrans{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", + "instant": false, + "legendFormat": "syn retrans", "range": true, "refId": "A" } ], - "title": "UDP RCV-Buffer exceeded", + "title": "TCPSynRetrans", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "fieldConfig": { "defaults": { @@ -2867,6 +1584,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -2880,6 +1598,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -2908,8 +1627,7 @@ "value": 80 } ] - }, - "unit": "cps" + } }, "overrides": [] }, @@ -2917,9 +1635,9 @@ "h": 8, "w": 12, "x": 12, - "y": 108 + "y": 61 }, - "id": 28, + "id": 95, "options": { "legend": { "calcs": [], @@ -2928,6 +1646,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -2936,30 +1655,31 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "rate(kubeskoop_udp_sndbuferrors{k8s_pod=~\"$pod\"}[1m])", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", + "expr": "rate(kubeskoop_tcpext_tcprcvqdrop{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", + "instant": false, + "legendFormat": "receive queue drops", "range": true, "refId": "A" } ], - "title": "UDP SND-Buffer exceeded", + "title": "TCPRcvQDrop", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, - "description": "如果出现dns超时,您需要关注这个指标,通常在Serever返回较慢的情况,例如公网DNS场景,回包慢于用户设定超时,会出现这个情况。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -2973,6 +1693,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -3001,8 +1722,7 @@ "value": 80 } ] - }, - "unit": "cps" + } }, "overrides": [] }, @@ -3010,9 +1730,9 @@ "h": 8, "w": 12, "x": 0, - "y": 116 + "y": 69 }, - "id": 30, + "id": 102, "options": { "legend": { "calcs": [], @@ -3021,6 +1741,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -3029,30 +1750,31 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "rate(kubeskoop_udp_noports{k8s_pod=~\"$pod\"}[1m])", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", + "expr": "rate(kubeskoop_tcpext_pfmemallocdrop{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", + "instant": false, + "legendFormat": "memory alloc fail", "range": true, "refId": "A" } ], - "title": "UDP No-Ports", + "title": "TCP Memory Alloc Fail", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, - "description": "在dns超时场景中,如果查询结果的udp在validate中被丢弃,由于没有重传机制,因此会直接导致超时。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -3066,6 +1788,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -3094,8 +1817,7 @@ "value": 80 } ] - }, - "unit": "cps" + } }, "overrides": [] }, @@ -3103,9 +1825,9 @@ "h": 8, "w": 12, "x": 12, - "y": 116 + "y": 69 }, - "id": 32, + "id": 91, "options": { "legend": { "calcs": [], @@ -3114,6 +1836,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -3122,16 +1845,17 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "rate(kubeskoop_udp_inerrors{k8s_pod=~\"$pod\"}[1m])", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", + "expr": "rate(kubeskoop_tcpext_tcpbacklogdrop{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", + "instant": false, + "legendFormat": "backlog drops", "range": true, "refId": "A" } ], - "title": "UDP In Error", + "title": "TCPBacklogDrop", "type": "timeseries" }, { @@ -3140,17 +1864,17 @@ "h": 1, "w": 24, "x": 0, - "y": 124 + "y": 77 }, - "id": 4, + "id": 6, "panels": [], - "title": "TCP Abnormal Reset", + "title": "UDP Metrics", "type": "row" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "fieldConfig": { "defaults": { @@ -3158,6 +1882,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -3171,6 +1896,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -3208,9 +1934,9 @@ "h": 8, "w": 12, "x": 0, - "y": 125 + "y": 78 }, - "id": 14, + "id": 22, "options": { "legend": { "calcs": [], @@ -3219,6 +1945,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -3227,22 +1954,22 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "kubeskoop_tcpext_tcpabortonmemory{k8s_pod=~\"$pod\"}", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", + "expr": "rate(kubeskoop_udp_rcvbuferrors{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", + "legendFormat": "receive buffer errors", "range": true, "refId": "A" } ], - "title": "TCP Send RST of memory", + "title": "UDP RCV-Buffer exceeded", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "fieldConfig": { "defaults": { @@ -3250,6 +1977,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -3263,6 +1991,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -3300,9 +2029,9 @@ "h": 8, "w": 12, "x": 12, - "y": 125 + "y": 78 }, - "id": 16, + "id": 28, "options": { "legend": { "calcs": [], @@ -3311,6 +2040,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -3319,29 +2049,31 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "rate(kubeskoop_tcpext_tcpabortontimeout{k8s_pod=~\"$pod\"}[1m])", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", + "expr": "rate(kubeskoop_udp_sndbuferrors{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", + "legendFormat": "send buffer errors", "range": true, "refId": "A" } ], - "title": "TCP Send RST of keepalive time exceeded", + "title": "UDP SND-Buffer exceeded", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, + "description": "如果出现dns超时,您需要关注这个指标,通常在Serever返回较慢的情况,例如公网DNS场景,回包慢于用户设定超时,会出现这个情况。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -3355,6 +2087,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -3384,7 +2117,7 @@ } ] }, - "unit": "times" + "unit": "cps" }, "overrides": [] }, @@ -3392,9 +2125,9 @@ "h": 8, "w": 12, "x": 0, - "y": 133 + "y": 86 }, - "id": 18, + "id": 30, "options": { "legend": { "calcs": [], @@ -3403,6 +2136,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -3411,29 +2145,31 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "kubeskoop_tcpext_tcpabortonlinger{k8s_pod=~\"$pod\"}", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", + "expr": "rate(kubeskoop_udp_noports{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", + "legendFormat": "no port times", "range": true, "refId": "A" } ], - "title": "TCP Send RST of SO_LINGER", + "title": "UDP No-Ports", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, + "description": "在dns超时场景中,如果查询结果的udp在validate中被丢弃,由于没有重传机制,因此会直接导致超时。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -3447,6 +2183,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -3484,9 +2221,9 @@ "h": 8, "w": 12, "x": 12, - "y": 133 + "y": 86 }, - "id": 20, + "id": 32, "options": { "legend": { "calcs": [], @@ -3495,6 +2232,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -3503,54 +2241,34 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "editorMode": "code", - "expr": "rate(kubeskoop_tcpext_tcpabortonclose{k8s_pod=~\"$pod\"}[1m])", - "legendFormat": "{{k8s_pod}}/{{k8s_node}}", + "expr": "rate(kubeskoop_udp_inerrors{k8s_node=\"$node\", k8s_pod=\"\"}[1m])", + "legendFormat": "input errors", "range": true, "refId": "A" } ], - "title": "TCP Send RST of close when data unread", + "title": "UDP In Error", "type": "timeseries" } ], "refresh": "", "revision": 1, - "schemaVersion": 38, - "style": "dark", + "schemaVersion": 39, "tags": [], "templating": { "list": [ { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "definition": "label_values(pod)", - "hide": 0, - "includeAll": false, - "label": "pod", - "multi": false, - "name": "pod", - "options": [], - "query": { - "query": "label_values(pod)", - "refId": "StandardVariableQuery" + "current": { + "selected": false, + "text": "cn-hongkong.192.168.1.62", + "value": "cn-hongkong.192.168.1.62" }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query" - }, - { - "current": {}, "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "P1809F7CD0C75ACF3" }, "definition": "label_values(node)", "hide": 0, @@ -3575,10 +2293,11 @@ "from": "now-15m", "to": "now" }, + "timeRangeUpdatedDuringEditOrView": false, "timepicker": {}, "timezone": "", - "title": "skoop-exporter", - "uid": "PtAs82D4k", + "title": "skoop-exporter-nodes", + "uid": "bdn87gdt1emtcb", "version": 1, "weekStart": "" } diff --git a/deploy/resource/kubeskoop-exporter-pods-dashboard.json b/deploy/resource/kubeskoop-exporter-pods-dashboard.json new file mode 100644 index 00000000..821ce32b --- /dev/null +++ b/deploy/resource/kubeskoop-exporter-pods-dashboard.json @@ -0,0 +1,2207 @@ +{ + "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": [], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 48, + "panels": [], + "title": "Network Overview", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "binBps" + }, + "overrides": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": [ + "kubeskoop/prometheus-deployment-5dc88c6b94-lwcgp" + ], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 1 + }, + "id": 50, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "rate(kubeskoop_netdev_rxbytes{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "legendFormat": "rx bytes", + "range": true, + "refId": "A" + } + ], + "title": "Network Device RX bytes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 1 + }, + "id": 52, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "rate(kubeskoop_netdev_txbytes{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "legendFormat": "tx bytes", + "range": true, + "refId": "A" + } + ], + "title": "Network Device TX bytes", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "cps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 9 + }, + "id": 58, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "rate(kubeskoop_netdev_txerrors{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "legendFormat": "tx errors", + "range": true, + "refId": "A" + } + ], + "title": "Network Device TX errors(times)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "cps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 9 + }, + "id": 60, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "rate(kubeskoop_netdev_rxerrors{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "legendFormat": "rx errors", + "range": true, + "refId": "A" + } + ], + "title": "Network Device RX errors(times)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "pps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 17 + }, + "id": 88, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "exemplar": false, + "expr": "rate(kubeskoop_netdev_txpackets{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "format": "heatmap", + "instant": false, + "interval": "", + "legendFormat": "tx packets", + "range": true, + "refId": "A" + } + ], + "title": "Network Device TX Packets", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "pps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 17 + }, + "id": 85, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "exemplar": false, + "expr": "rate(kubeskoop_netdev_rxpackets{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "format": "heatmap", + "instant": false, + "interval": "", + "legendFormat": "rx packets", + "range": true, + "refId": "A" + } + ], + "title": "Network Device RX Packets", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 25 + }, + "id": 100, + "panels": [], + "title": "TCP Summary", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "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": 26 + }, + "id": 98, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "kubeskoop_tcpsummary_tcptimewaitconn{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}", + "instant": false, + "legendFormat": "timewait", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "kubeskoop_tcpsummary_tcpestablishedconn{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}", + "hide": false, + "instant": false, + "legendFormat": "established", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "kubeskoop_tcpsummary_tcpclosewaitconn{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}", + "hide": false, + "instant": false, + "legendFormat": "closewait", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "kubeskoop_tcpsummary_tcpsynsentconn{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}", + "hide": false, + "instant": false, + "legendFormat": "syn sent", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "kubeskoop_tcpsummary_tcpsynrecvconn{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}", + "hide": false, + "instant": false, + "legendFormat": "syn recv", + "range": true, + "refId": "E" + } + ], + "title": "TCP Connections", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 26 + }, + "id": 101, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "kubeskoop_sock_inuse{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}+kubeskoop_sock_orphan{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}", + "instant": false, + "legendFormat": "Hostnet", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "kubeskoop_sock_inuse{k8s_node=\"$node\",k8s_pod!=\"\"}+kubeskoop_sock_orphan{k8s_node=\"$node\", k8s_pod!=\"\"}", + "hide": false, + "instant": false, + "legendFormat": "{{k8s_namespace}}/{{k8s_pod}}", + "range": true, + "refId": "B" + } + ], + "title": "TCP Socket Count", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 34 + }, + "id": 89, + "panels": [], + "title": "TCPExt", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 35 + }, + "id": 99, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "kubeskoop_tcpsummary_tcptxqueue{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}", + "instant": false, + "legendFormat": "TX Queue", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "kubeskoop_tcpsummary_tcprxqueue{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}", + "hide": false, + "instant": false, + "legendFormat": "RX Queue", + "range": true, + "refId": "B" + } + ], + "title": "TCP Queue", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "cps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 35 + }, + "id": 97, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "rate(kubeskoop_tcp_passiveopens{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "instant": false, + "legendFormat": "passive opens", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "rate(kubeskoop_tcp_activeopens{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "hide": false, + "instant": false, + "legendFormat": "active opens", + "range": true, + "refId": "B" + } + ], + "title": "TCP Opens", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 43 + }, + "id": 90, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "rate(kubeskoop_tcpext_listendrops{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "instant": false, + "legendFormat": "listen drops", + "range": true, + "refId": "A" + } + ], + "title": "TCPListenDrops", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 43 + }, + "id": 93, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "rate(kubeskoop_tcpext_listenoverflows{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "instant": false, + "legendFormat": "listen overflows", + "range": true, + "refId": "A" + } + ], + "title": "ListenOverflows", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 51 + }, + "id": 94, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "rate(kubeskoop_tcpext_tcpsynretrans{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "instant": false, + "legendFormat": "syn retrans", + "range": true, + "refId": "A" + } + ], + "title": "TCPSynRetrans", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 51 + }, + "id": 95, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "rate(kubeskoop_tcpext_tcprcvqdrop{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "instant": false, + "legendFormat": "receive queue drops", + "range": true, + "refId": "A" + } + ], + "title": "TCPRcvQDrop", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 59 + }, + "id": 102, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "rate(kubeskoop_tcpext_pfmemallocdrop{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "instant": false, + "legendFormat": "memory alloc fail", + "range": true, + "refId": "A" + } + ], + "title": "TCP Memory Alloc Fail", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 59 + }, + "id": 91, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "rate(kubeskoop_tcpext_tcpbacklogdrop{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "instant": false, + "legendFormat": "backlog drops", + "range": true, + "refId": "A" + } + ], + "title": "TCPBacklogDrop", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 67 + }, + "id": 6, + "panels": [], + "title": "UDP Metrics", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "cps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 68 + }, + "id": 22, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "rate(kubeskoop_udp_rcvbuferrors{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "legendFormat": "receive buffer errors", + "range": true, + "refId": "A" + } + ], + "title": "UDP RCV-Buffer exceeded", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "cps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 68 + }, + "id": 28, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "rate(kubeskoop_udp_sndbuferrors{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "legendFormat": "send buffer errors", + "range": true, + "refId": "A" + } + ], + "title": "UDP SND-Buffer exceeded", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "description": "如果出现dns超时,您需要关注这个指标,通常在Serever返回较慢的情况,例如公网DNS场景,回包慢于用户设定超时,会出现这个情况。", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "cps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 76 + }, + "id": 30, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "rate(kubeskoop_udp_noports{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "legendFormat": "no port times", + "range": true, + "refId": "A" + } + ], + "title": "UDP No-Ports", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "description": "在dns超时场景中,如果查询结果的udp在validate中被丢弃,由于没有重传机制,因此会直接导致超时。", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "cps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 76 + }, + "id": 32, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "editorMode": "code", + "expr": "rate(kubeskoop_udp_inerrors{k8s_namespace=\"$namespace\", k8s_pod=\"$pod\"}[1m])", + "legendFormat": "input errors", + "range": true, + "refId": "A" + } + ], + "title": "UDP In Error", + "type": "timeseries" + } + ], + "refresh": "", + "revision": 1, + "schemaVersion": 39, + "tags": [], + "templating": { + "list": [ + { + "current": { + "selected": true, + "text": "kube-system", + "value": "kube-system" + }, + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "definition": "label_values(k8s_namespace)", + "hide": 0, + "includeAll": false, + "label": "Namespace", + "multi": false, + "name": "namespace", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(k8s_namespace)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": { + "selected": true, + "text": "coredns-75947d8479-jrkqs", + "value": "coredns-75947d8479-jrkqs" + }, + "datasource": { + "type": "prometheus", + "uid": "P1809F7CD0C75ACF3" + }, + "definition": "label_values({k8s_namespace=\"$namespace\"},k8s_pod)", + "hide": 0, + "includeAll": false, + "label": "Pod", + "multi": false, + "name": "pod", + "options": [], + "query": { + "qryType": 1, + "query": "label_values({k8s_namespace=\"$namespace\"},k8s_pod)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-15m", + "to": "now" + }, + "timeRangeUpdatedDuringEditOrView": false, + "timepicker": {}, + "timezone": "", + "title": "skoop-exporter-pods", + "uid": "ddn87hjw7bdhcd", + "version": 4, + "weekStart": "" +} diff --git a/tools/scripts/grafana_dashboard.sh b/tools/scripts/grafana_dashboard.sh index 5cf5d505..0a4f1488 100755 --- a/tools/scripts/grafana_dashboard.sh +++ b/tools/scripts/grafana_dashboard.sh @@ -10,8 +10,7 @@ GRAFANA_PASSWORD=${GRAFANA_PASSWORD:-kubeskoop} register_dashboard() { local dashboard='{}' local datasource_id=0 - #dashboard=$(curl -sSL https://raw.githubusercontent.com/alibaba/kubeskoop/main/deploy/resource/kubeskoop-exporter-dashboard.json) - dashboard=$(cat /etc/kubeskoop-exporter-dashboard.json) + dashboard=$(cat "$1") datasource_id=$(curl "http://admin:$GRAFANA_PASSWORD@$GRAFANA_HOST/api/datasources/name/prometheus" | jq .uid) tmp_dashboard_file=$(mktemp) cat < "${tmp_dashboard_file}" @@ -50,5 +49,6 @@ grafana_ready() { } grafana_ready -register_dashboard +register_dashboard /etc/kubeskoop-exporter-pods-dashboard.json +register_dashboard /etc/kubeskoop-exporter-nodes-dashboard.json sleep infinity