{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "datasource", "uid": "grafana" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "description": "Pigsty Consolidated Homepage", "editable": true, "graphTooltip": 0, "id": null, "links": [ { "asDropdown": true, "icon": "dashboard", "includeVars": false, "keepTime": false, "tags": [ "PGSQL" ], "targetBlank": false, "title": "PGSQL", "tooltip": "", "type": "dashboards", "url": "" }, { "asDropdown": true, "icon": "dashboard", "includeVars": false, "keepTime": false, "tags": [ "NODE" ], "targetBlank": false, "title": "NODE", "tooltip": "", "type": "dashboards", "url": "" }, { "asDropdown": true, "icon": "dashboard", "includeVars": false, "keepTime": true, "tags": [ "Pigsty", "INFRA" ], "targetBlank": false, "title": "INFRA", "tooltip": "", "type": "dashboards", "url": "" }, { "asDropdown": true, "icon": "dashboard", "includeVars": false, "keepTime": false, "tags": [ "Pigsty", "HOME" ], "targetBlank": false, "title": "Module", "tooltip": "", "type": "dashboards", "url": "" } ], "panels": [ { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "title": "Infra Overview", "type": "row", "panels": [], "id": 1 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "#3e668f", "value": 0 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Home" }, "properties": [ { "id": "color", "value": { "fixedColor": "#3e668f", "mode": "fixed" } }, { "id": "links", "value": [ { "targetBlank": true, "title": "Pigsty Homepage", "url": "../../" } ] } ] }, { "matcher": { "id": "byName", "options": "Nginx" }, "properties": [ { "id": "color", "value": { "fixedColor": "#346f36cc", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "Nginx Overview", "url": "/d/nginx-instance?${__url_time_range}" } ] } ] }, { "matcher": { "id": "byName", "options": "Metrics" }, "properties": [ { "id": "links", "value": [ { "targetBlank": true, "title": "Victoria Metrics UI", "url": "/vmetrics/vmui/" } ] }, { "id": "color", "value": { "fixedColor": "#e02f44bf", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "Alerting" }, "properties": [ { "id": "links", "value": [ { "targetBlank": true, "title": "Pigsty alerting service: Alertmanager", "url": "/alertmgr/" } ] }, { "id": "color", "value": { "fixedColor": "#e02f44d9", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "Logs" }, "properties": [ { "id": "links", "value": [ { "targetBlank": true, "title": "Victoria Logs UI", "url": "/vlogs/select/vmui/" } ] }, { "id": "color", "value": { "fixedColor": "#d9a637d9", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "Grafana" }, "properties": [ { "id": "color", "value": { "fixedColor": "#db6e37ed", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "Grafana Overview", "url": "/d/grafana-instance?${__url_time_range}" } ] } ] }, { "matcher": { "id": "byName", "options": "Docs" }, "properties": [ { "id": "color", "value": { "fixedColor": "#587591", "mode": "fixed" } }, { "id": "links", "value": [ { "targetBlank": true, "title": "Pigsty Docs", "url": "https://pigsty.io/docs" } ] } ] } ] }, "gridPos": { "h": 7, "w": 4, "x": 0, "y": 1 }, "id": 2, "links": [ { "title": "Pigsty Docs", "url": "https://pigsty.io/docs" } ], "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "showPercentChange": false, "text": { "titleSize": 10, "valueSize": 12 }, "textMode": "name", "wideLayout": true }, "pluginVersion": "12.3.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "1", "format": "time_series", "hide": false, "instant": false, "interval": "", "legendFormat": "Home", "queryType": "measurements", "refId": "G" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "1", "format": "time_series", "hide": false, "instant": false, "interval": "", "legendFormat": "Docs", "queryType": "measurements", "refId": "F" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(up{cls=\"nginx\"})", "format": "time_series", "hide": false, "instant": false, "interval": "", "legendFormat": "Nginx", "queryType": "measurements", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(up{cls=\"vlogs\"})", "format": "time_series", "hide": false, "instant": false, "interval": "", "legendFormat": "Logs", "queryType": "measurements", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(up{cls=\"vmetrics\"})", "format": "time_series", "hide": false, "instant": false, "interval": "", "legendFormat": "Metrics", "queryType": "measurements", "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(up{cls=\"grafana\"})", "format": "time_series", "hide": true, "instant": false, "interval": "", "legendFormat": "Grafana", "queryType": "measurements", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(up{cls=\"alertmanager\"})", "format": "time_series", "hide": false, "instant": false, "interval": "", "legendFormat": "Alerting", "queryType": "measurements", "refId": "E" } ], "title": "Pigsty ${version}", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "#3e668f", "value": 0 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "NODE" }, "properties": [ { "id": "links", "value": [ { "title": "Node Overview", "url": "/d/node-overview?${__url_time_range}" } ] }, { "id": "color", "value": { "fixedColor": "#e6b03ee6", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "PGSQL" }, "properties": [ { "id": "color", "value": { "fixedColor": "#3e668f", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "PGSQL Overview", "url": "/d/pgsql-overview?${__url_time_range}" } ] } ] }, { "matcher": { "id": "byName", "options": "INFRA" }, "properties": [ { "id": "links", "value": [ { "title": "Infra Overview", "url": "/d/infra-overview?${__url_time_range}" } ] }, { "id": "color", "value": { "fixedColor": "#346f36cc", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "REDIS" }, "properties": [ { "id": "links", "value": [ { "title": "Redis Overview", "url": "/d/redis-overview?${__url_time_range}" } ] }, { "id": "color", "value": { "fixedColor": "#cc4637d9", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "ETCD" }, "properties": [ { "id": "color", "value": { "fixedColor": "#5b9cd5", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "ETCD Overview", "url": "/d/etcd-overview?${__url_time_range}" } ] } ] }, { "matcher": { "id": "byName", "options": "MINIO" }, "properties": [ { "id": "color", "value": { "fixedColor": "#d0475799", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "Minio Overview", "url": "/d/minio-overview?${__url_time_range}" } ] } ] }, { "matcher": { "id": "byName", "options": "MONGO" }, "properties": [ { "id": "color", "value": { "fixedColor": "#806c52", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "MongoDB Overview", "url": "/d/mongo-overview?${__url_time_range}" } ] } ] }, { "matcher": { "id": "byName", "options": "MYSQL" }, "properties": [ { "id": "color", "value": { "fixedColor": "#6a8d9d", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "MySQL Overview", "url": "/d/mysql-overview?${__url_time_range}" } ] } ] }, { "matcher": { "id": "byName", "options": "PGRDS" }, "properties": [ { "id": "links", "value": [ { "title": "PGRDS Clusters", "url": "/d/pgrds-cluster?${__url_time_range}" } ] }, { "id": "color", "value": { "fixedColor": "#6986a3", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "KAFKA" }, "properties": [ { "id": "color", "value": { "fixedColor": "#4bb39ce0", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "Kafka Cluster ${__field.labels.cls}", "url": "/d/kafka-overview?var-cls=${__field.labels.cls}&${__url_time_range}" } ] } ] } ] }, "gridPos": { "h": 7, "w": 4, "x": 4, "y": 1 }, "id": 3, "links": [ { "targetBlank": true, "title": "Module: PGSQL", "url": "https://pigsty.io/docs/pgsql" }, { "targetBlank": true, "title": "Module: INFRA", "url": "https://pigsty.io/docs/infra" }, { "targetBlank": true, "title": "Module: NODE", "url": "https://pigsty.io/docs/node" }, { "targetBlank": true, "title": "Module: ETCD", "url": "https://pigsty.io/docs/etcd" }, { "targetBlank": true, "title": "Module: MinIO", "url": "https://pigsty.io/docs/minio" }, { "targetBlank": true, "title": "Module: REDIS", "url": "https://pigsty.io/docs/redis" }, { "targetBlank": true, "title": "Module: FERRET", "url": "https://pigsty.io/docs/ferret" } ], "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "text": { "valueSize": 16 }, "textMode": "name", "wideLayout": true }, "pluginVersion": "12.3.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"pgsql\"})", "hide": false, "interval": "", "legendFormat": "PGSQL", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"pgrds\"})", "hide": true, "interval": "", "legendFormat": "PGRDS", "range": true, "refId": "R" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"mysql\"})", "hide": false, "interval": "", "legendFormat": "MYSQL", "range": true, "refId": "M" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"redis\"})", "hide": false, "interval": "", "legendFormat": "REDIS", "range": true, "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"node\"})", "hide": false, "interval": "", "legendFormat": "NODE", "range": true, "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"minio\"})", "hide": false, "interval": "", "legendFormat": "MINIO", "range": true, "refId": "E" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"etcd\"})", "hide": false, "interval": "", "legendFormat": "ETCD", "range": true, "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"mongo\"})", "hide": false, "interval": "", "legendFormat": "MONGO", "range": true, "refId": "F" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"kafka\"})", "hide": false, "interval": "", "legendFormat": "KAFKA", "range": true, "refId": "G" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"infra\"})", "hide": false, "interval": "", "legendFormat": "INFRA", "range": true, "refId": "X" } ], "title": "Modules", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "Click instance to view the detailed dashboard. \n\nBlue: PostgreSQL\n\nRed: Redis\n\nAmber: Node\n\nAzure: etcd\n\nPink: MinIO\n\nGreen: Infra", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "links": [], "mappings": [ { "options": { "match": "null+nan", "result": { "index": 0, "text": "No Instances" } }, "type": "special" } ], "max": 1.1, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#3e668f", "value": 0 }, { "color": "#aaaaaa", "value": 1 } ] } }, "overrides": [ { "matcher": { "id": "byFrameRefID", "options": "A" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#1f3347", "value": 0 }, { "color": "#3e668f", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "PGSQL Instance ${__field.labels.ins}", "url": "/d/pgsql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "B" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#65231b", "value": 0 }, { "color": "#cc4637d9", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "Redis Instance ${__field.labels.ins} @ ${__field.labels.instance}", "url": "/d/redis-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "C" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#3e3012", "value": 0 }, { "color": "#e6b03ee6", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "Node Instance : ${__field.labels.ip}", "url": "/d/node-instance?var-id=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "D" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#324e64", "value": 0 }, { "color": "#5b9cd5", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "ETCD Overview", "url": "/d/etcd-overview?${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "E" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#561c24", "value": 0 }, { "color": "#d0475799", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "Minio Instance: ${__field.labels.ins}", "url": "/d/minio-overview?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "F" }, "properties": [ { "id": "color" }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#342c22", "value": 0 }, { "color": "#806c52", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "MongoDB Instance : ${__field.labels.ins}", "url": "/d/mongo-overview?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "M" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#252f34", "value": 0 }, { "color": "#6a8d9d", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "MySQL Instance : ${__field.labels.ins}", "url": "/d/mysql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "R" }, "properties": [ { "id": "links", "value": [ { "title": "PGRDS Instance: ${__field.labels.ins}", "url": "/d/pgrds-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#1c232a", "value": 0 }, { "color": "#6986a3", "value": 1 } ] } } ] }, { "matcher": { "id": "byFrameRefID", "options": "K" }, "properties": [ { "id": "color", "value": { "fixedColor": "#4bb39ce0", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "Kafka Instance ${__field.labels.ins}", "url": "/d/kafka-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "NGINX" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#152c16", "value": 0 }, { "color": "#346f36cc", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "Nginx Instance : ${__field.labels.ins}", "url": "/d/nginx-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "GRAFANA" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#3d2a1d", "value": 0 }, { "color": "#f79f64", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "Grafana Instance : ${__field.labels.ins}", "url": "/d/grafana-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "VMETRICS" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#2a1414", "value": 0 }, { "color": "#a64d4d", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "VMetrics Instance : ${__field.labels.ins}", "url": "/d/vmetrics-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "VLOGS" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#2e1d14", "value": 0 }, { "color": "#ba7552", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "VLogs Instance : ${__field.labels.ins}", "url": "/d/vlogs-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "VTRACES" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#31221a", "value": 0 }, { "color": "#c4895c", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "VTraces Instance : ${__field.labels.ins}", "url": "/d/vtraces-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "VMALERT" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#2c161b", "value": 0 }, { "color": "#b3596d", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "VMAlert Instance : ${__field.labels.ins}", "url": "/d/vmalert-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "ALERTMGR" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#361c1c", "value": 0 }, { "color": "#db7070", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "AlertManager Instance : ${__field.labels.ins}", "url": "/d/alertmanager-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] } ] }, "gridPos": { "h": 20, "w": 12, "x": 8, "y": 1 }, "id": 4, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "text": {}, "textMode": "name", "wideLayout": true }, "pluginVersion": "12.3.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins) (up{job=\"pgsql\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins) (pg_up{job=\"pgrds\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "R" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins) (up{job=\"mysql\"}) * min by (ins) (mysql_up{job=\"mysql\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "M" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins) (redis_up{job=\"redis\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins,instance) (up{job=\"mongo\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "F" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins) (up{job=\"node\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins,instance) (up{job=\"kafka\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "K" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max by (ins) (up{cls=\"nginx\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "NGINX" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max by (ins) (up{cls=\"grafana\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "GRAFANA" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max by (ins) (up{cls=\"vmetrics\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "VMETRICS" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max by (ins) (up{cls=\"vlogs\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "VLOGS" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max by (ins) (up{cls=\"vtraces\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "VTRACES" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max by (ins) (up{cls=\"vmalert\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "VMALERT" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max by (ins) (up{cls=\"alertmanager\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "ALERTMGR" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (instance) (up{job!~\"(node|infra|etcd|pgsql|redis|minio|kafka|pgrds)\"})", "hide": true, "instant": true, "interval": "", "legendFormat": "{{ instance }}", "refId": "Z" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins,instance) (up{job=\"minio\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "E" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins,instance) (up{job=\"etcd\"})", "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "D" } ], "title": "Instances", "type": "stat" }, { "gridPos": { "h": 4, "w": 4, "x": 20, "y": 1 }, "id": 5, "options": { "content": "
insight Overview
", "mode": "html" }, "pluginVersion": "12.3.0", "title": "insight Overview", "type": "text" }, { "gridPos": { "h": 16, "w": 4, "x": 20, "y": 5 }, "id": 6, "options": { "includeVars": false, "keepTime": false, "maxItems": 50, "query": "", "showFolderNames": true, "showHeadings": false, "showRecentlyViewed": false, "showSearch": true, "showStarred": false, "tags": [ "Pigsty" ] }, "pluginVersion": "12.3.0", "title": "Dashboards", "type": "dashlist" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 1, "links": [ { "title": "PGSQL Cluster ${__field.labels.cls}", "url": "/d/pgsql-cluster?var-cls=${__field.labels.cls}&${__url_time_range}" } ], "mappings": [ { "options": { "-1": { "color": "gray", "index": 1, "text": "N/A" } }, "type": "value" }, { "options": { "match": "null+nan", "result": { "color": "#3e668f", "index": 0, "text": "No Clusters" } }, "type": "special" } ], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#3e668f", "value": 0 } ] }, "unit": "percentunit" }, "overrides": [ { "matcher": { "id": "byFrameRefID", "options": "A" }, "properties": [ { "id": "links", "value": [ { "title": "PGSQL Cluster ${__field.labels.cls}", "url": "/d/pgsql-cluster?var-cls=${__field.labels.cls}&${__url_time_range}" } ] }, { "id": "color", "value": { "fixedColor": "#3e668f", "mode": "fixed" } } ] }, { "matcher": { "id": "byFrameRefID", "options": "B" }, "properties": [ { "id": "links", "value": [ { "title": "Redis Cluster ${__field.labels.cls}", "url": "/d/redis-cluster?var-cls=${__field.labels.cls}&${__url_time_range}" } ] }, { "id": "color", "value": { "fixedColor": "#cc4637d9", "mode": "fixed" } } ] }, { "matcher": { "id": "byFrameRefID", "options": "C" }, "properties": [ { "id": "links", "value": [ { "title": "Node Cluster : ${__field.labels.cls}", "url": "/d/node-cluster?var-cls=${__field.labels.cls}&${__url_time_range}" } ] }, { "id": "color", "value": { "fixedColor": "#e6b03ee6", "mode": "fixed" } } ] }, { "matcher": { "id": "byFrameRefID", "options": "D" }, "properties": [ { "id": "color", "value": { "fixedColor": "#5b9cd5", "mode": "thresholds" } }, { "id": "links", "value": [ { "title": "ETCD Overview", "url": "/d/etcd-overview?${__url_time_range}" } ] }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "text", "value": 0 }, { "color": "#b783af", "value": 0.5 }, { "color": "red", "value": 0.66666 }, { "color": "#5b9cd5", "value": 1 } ] } }, { "id": "decimals", "value": 0 }, { "id": "mappings", "value": [ { "options": { "0": { "color": "text", "index": 1, "text": "Dead" }, "1": { "color": "#5b9cd5", "index": 0, "text": "Healthy" } }, "type": "value" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "E" }, "properties": [ { "id": "color", "value": { "fixedColor": "#d0475799", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "Minio Overview", "url": "/d/minio-overview?${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "R" }, "properties": [ { "id": "color", "value": { "fixedColor": "#6986a3", "mode": "fixed" } }, { "id": "unit", "value": "tps" }, { "id": "decimals", "value": 0 }, { "id": "links", "value": [ { "title": "PGRDS Cluster : ${__field.labels.cls}", "url": "/d/pgrds-cluster?var-cls=${__field.labels.cls}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "K" }, "properties": [ { "id": "color" }, { "id": "mappings", "value": [ { "options": { "0": { "color": "#193e36e0", "index": 0, "text": "Down" }, "1": { "color": "#4bb39ce0", "index": 1, "text": "Alive" } }, "type": "value" } ] }, { "id": "links", "value": [ { "title": "Kafka Cluster : ${__field.labels.cls}", "url": "/d/kafka-overview?var-cls=${__field.labels.cls}&${__url_time_range}" } ] } ] } ] }, "gridPos": { "h": 13, "w": 8, "x": 0, "y": 8 }, "id": 7, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "showPercentChange": false, "text": {}, "textMode": "value_and_name", "wideLayout": true }, "pluginVersion": "12.3.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "cls:pressure5{job=\"pgsql\"}", "hide": false, "interval": "", "legendFormat": "{{ cls }}", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "pg:cls:xact_commit_rate5m{job=\"pgrds\"}", "hide": false, "interval": "", "legendFormat": "{{ cls }}", "range": true, "refId": "R" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "redis:cls:cpu_usage{job=\"redis\"}", "hide": false, "interval": "", "legendFormat": "{{ cls }}", "range": true, "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "node:cls:cpu_usage{job=\"node\"}", "hide": false, "interval": "", "legendFormat": "{{ cls }}", "range": true, "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "avg by (cls) (rate(minio_node_process_cpu_total_seconds{job=\"minio\"}[1m]))", "hide": false, "interval": "", "legendFormat": "{{ cls }}", "range": true, "refId": "E" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (cls) (up{job=\"kafka\"})", "hide": false, "interval": "", "legendFormat": "{{ cls }}", "range": true, "refId": "K" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(etcd_up{job=\"etcd\"}) by (cls) / count(etcd_up{job=\"etcd\"}) by (cls)", "hide": false, "interval": "", "legendFormat": "{{ cls }}", "range": true, "refId": "D" } ], "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "links": [], "mappings": [], "max": 1, "min": 0, "noValue": "OK", "thresholds": { "mode": "absolute", "steps": [ { "color": "#3e668f", "value": 0 }, { "color": "#fcdb72", "value": 1 }, { "color": "#f79f64", "value": 4 }, { "color": "#b783af", "value": 8 }, { "color": "text", "value": 16 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byFrameRefID", "options": "A" }, "properties": [ { "id": "links", "value": [ { "targetBlank": true, "title": "Pigsty Alertmanager", "url": "/alertmgr/" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "B" }, "properties": [ { "id": "links", "value": [ { "title": "PGSQL Alert", "url": "/d/pgsql-alert?${__url_time_range}" } ] } ] } ] }, "gridPos": { "h": 8, "w": 3, "x": 0, "y": 21 }, "id": 8, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "showPercentChange": false, "text": {}, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.3.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "count(ALERTS{alertstate=\"firing\"}) or on() vector(0)", "interval": "", "legendFormat": "Firing Alert", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "count(ALERTS{alertstate=\"pending\"})", "hide": true, "interval": "", "legendFormat": "Pending Alert", "refId": "B" } ], "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "links": [ { "targetBlank": true, "title": "AlertInfo ${__field.labels.alertname}", "url": "/alertmgr/#/alerts?filter=%7Balertname%3D%22${__field.labels.alertname}%22%7D" } ], "mappings": [], "max": 1, "min": 0, "noValue": "OK", "thresholds": { "mode": "absolute", "steps": [ { "color": "#3e668f", "value": 0 }, { "color": "#fcdb72", "value": 1 }, { "color": "#f79f64", "value": 2 }, { "color": "#b783af", "value": 4 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 8, "w": 5, "x": 3, "y": 21 }, "id": 9, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "showPercentChange": false, "text": { "titleSize": 12 }, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.3.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "count(ALERTS{alertstate=\"firing\"}) by (alertname, severity)", "interval": "", "legendFormat": "{{ alertname }}", "refId": "A" } ], "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "This panel shows all currently firing alerts.\n\nClick on the alert event bar to view or silent it on alertmanager", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "hidden", "axisSoftMin": 0, "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 50, "gradientMode": "none", "hideFrom": { "graph": false, "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "stepBefore", "lineWidth": 0, "pointSize": 1, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": false, "stacking": { "group": "A", "mode": "normal" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 0, "links": [ { "targetBlank": true, "title": "AlertInfo ${__field.labels.alertname} on Cluster ${__field.labels.cls}", "url": "/alertmgr/#/alerts?filter=%7Bcls%3D%22${__field.labels.cls}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" }, { "targetBlank": true, "title": "Silence ${__field.labels.alertname} on Cluster ${__field.labels.cls}", "url": "/alertmgr/#/silences/new?filter=%7Bcls%3D%22${__field.labels.cls}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" }, { "title": "PGSQL Cluster : Alerts for ${__field.labels.cls}", "url": "/d/pgsql-cluster?var-cls=${__field.labels.cls}&${__url_time_range}" } ], "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byFrameRefID", "options": "A" }, "properties": [ { "id": "custom.fillOpacity", "value": 66 } ] }, { "matcher": { "id": "byType", "options": "time" }, "properties": [ { "id": "custom.axisPlacement", "value": "auto" } ] } ] }, "gridPos": { "h": 8, "w": 16, "x": 8, "y": 21 }, "id": 10, "options": { "legend": { "calcs": [ "last" ], "displayMode": "table", "placement": "right", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.3.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum by (job,cls,severity,alertname) (ALERTS{alertstate=\"firing\"})", "interval": "", "legendFormat": "[{{ severity }}] {{alertname}} @ {{ cls }}", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "0", "hide": true, "interval": "", "legendFormat": "Alert", "refId": "C" } ], "title": "Firing Alerts", "type": "timeseries" }, { "gridPos": { "h": 1, "w": 24, "x": 0, "y": 29 }, "id": 11, "options": { "code": { "language": "plaintext", "showLineNumbers": false, "showMiniMap": false }, "content": "
\n\"\"", "mode": "html" }, "pluginVersion": "12.3.0", "transparent": true, "type": "text" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 30 }, "title": "Node", "type": "row", "panels": [], "id": 12 }, { "collapsed": false, "datasource": { "type": "prometheus", "uid": "WAYOn0FGz" }, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 31 }, "id": 13, "panels": [], "title": "\ud83c\udfe1\u8d44\u6e90\u603b\u89c8\uff1a\u5f53\u524dJOB\u3010$origin_prometheus\uff1a$job\u3011\u5f53\u524d\u9009\u4e2d\u4e3b\u673a\u3010$show_hostname\u3011\u5b9e\u4f8b\uff1a$node", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "\u5206\u533a\u4f7f\u7528\u7387\u3001\u78c1\u76d8\u8bfb\u53d6\u3001\u78c1\u76d8\u5199\u5165\u3001\u4e0b\u8f7d\u5e26\u5bbd\u3001\u4e0a\u4f20\u5e26\u5bbd\uff0c\u5982\u679c\u6709\u591a\u4e2a\u7f51\u5361\u6216\u8005\u591a\u4e2a\u5206\u533a\uff0c\u662f\u91c7\u96c6\u7684\u4f7f\u7528\u7387\u6700\u9ad8\u7684\u7f51\u5361\u6216\u8005\u5206\u533a\u7684\u6570\u503c\u3002\n\n\u8fde\u63a5\u6570\uff1aCurrEstab - \u5f53\u524d\u72b6\u6001\u4e3a ESTABLISHED \u6216 CLOSE-WAIT \u7684 TCP \u8fde\u63a5\u6570\u3002\n\n\u5065\u5eb7\u503c\u662f\u4e00\u4e2a\u65b0\u589e\u7684\u6307\u6807\uff0c\u6839\u636eCPU\uff0c\u5185\u5b58\uff0cIO\u8ba1\u7b97\u51fa\u6765\u7684\u4e00\u4e2a\u503c\uff0c\u4f4e\u4e8e90\u5206\u8bf4\u660e\u7cfb\u7edf\u7684\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5\u9700\u8981\u6ce8\u610f\u4e86\uff0c\u8fd9\u662f\u4e00\u4e2a\u6b63\u5728\u6d4b\u8bd5\u7684\u6307\u6807\uff0c\u53c2\u6570\u53ef\u80fd\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u518d\u4f18\u5316\u3002", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "center", "cellOptions": { "type": "auto" }, "filterable": false, "inspect": false }, "decimals": 1, "mappings": [], "max": 100, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byName", "options": "\u5185\u5b58" }, "properties": [ { "id": "unit", "value": "bytes" }, { "id": "decimals" }, { "id": "custom.width", "value": 66 }, { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } }, { "id": "custom.cellOptions", "value": { "type": "color-text" } }, { "id": "decimals", "value": 0 } ] }, { "matcher": { "id": "byName", "options": "\u542f\u52a8(\u5929)" }, "properties": [ { "id": "unit", "value": "none" }, { "id": "custom.width", "value": 69 }, { "id": "decimals" } ] }, { "matcher": { "id": "byName", "options": "\u78c1\u76d8\u8bfb\u53d6*" }, "properties": [ { "id": "unit", "value": "binBps" }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "rgba(50, 172, 45, 0.97)", "value": null }, { "color": "rgba(237, 129, 40, 0.89)", "value": 10485760 }, { "color": "rgba(245, 54, 54, 0.9)", "value": 20485760 } ] } }, { "id": "custom.width", "value": 93 } ] }, { "matcher": { "id": "byName", "options": "\u78c1\u76d8\u5199\u5165*" }, "properties": [ { "id": "unit", "value": "binBps" }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "rgba(50, 172, 45, 0.97)", "value": null }, { "color": "rgba(237, 129, 40, 0.89)", "value": 10485760 }, { "color": "rgba(245, 54, 54, 0.9)", "value": 20485760 } ] } }, { "id": "custom.width", "value": 95 } ] }, { "matcher": { "id": "byName", "options": "\u4e0b\u8f7d\u5e26\u5bbd*" }, "properties": [ { "id": "unit", "value": "binbps" }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "rgba(50, 172, 45, 0.97)", "value": null }, { "color": "rgba(237, 129, 40, 0.89)", "value": 30485760 }, { "color": "rgba(245, 54, 54, 0.9)", "value": 104857600 } ] } }, { "id": "custom.width", "value": 91 }, { "id": "decimals" } ] }, { "matcher": { "id": "byName", "options": "\u4e0a\u4f20\u5e26\u5bbd*" }, "properties": [ { "id": "unit", "value": "binbps" }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "rgba(50, 172, 45, 0.97)", "value": null }, { "color": "rgba(237, 129, 40, 0.89)", "value": 30485760 }, { "color": "rgba(245, 54, 54, 0.9)", "value": 104857600 } ] } }, { "id": "custom.width", "value": 85 }, { "id": "decimals" } ] }, { "matcher": { "id": "byName", "options": "\u8d1f\u8f7d" }, "properties": [ { "id": "decimals", "value": 2 }, { "id": "custom.width", "value": 63 } ] }, { "matcher": { "id": "byName", "options": "\u8fde\u63a5\u6570" }, "properties": [ { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "rgba(50, 172, 45, 0.97)", "value": null }, { "color": "rgba(237, 129, 40, 0.89)", "value": 1000 }, { "color": "rgba(245, 54, 54, 0.9)", "value": 1500 } ] } }, { "id": "custom.width", "value": 59 }, { "id": "decimals" } ] }, { "matcher": { "id": "byName", "options": "TCP_tw" }, "properties": [ { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "rgba(50, 172, 45, 0.97)", "value": null }, { "color": "rgba(237, 129, 40, 0.89)", "value": 5000 }, { "color": "rgba(245, 54, 54, 0.9)", "value": 20000 } ] } }, { "id": "custom.width", "value": 69 }, { "id": "decimals" } ] }, { "matcher": { "id": "byName", "options": "CPU" }, "properties": [ { "id": "custom.width", "value": 63 }, { "id": "decimals", "value": 0 }, { "id": "custom.cellOptions", "value": { "type": "color-text" } }, { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "IP" }, "properties": [ { "id": "custom.width", "value": 111 }, { "id": "custom.filterable", "value": true }, { "id": "custom.align", "value": "left" } ] }, { "matcher": { "id": "byName", "options": "\u4e3b\u673a\u540d" }, "properties": [ { "id": "custom.filterable", "value": true }, { "id": "custom.width" }, { "id": "custom.align", "value": "left" } ] }, { "matcher": { "id": "byName", "options": "\u5065\u5eb7\u503c" }, "properties": [ { "id": "custom.width", "value": 75 }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "orange", "value": 80 }, { "color": "green", "value": 90 } ] } }, { "id": "color", "value": { "mode": "thresholds" } }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } } ] }, { "matcher": { "id": "byRegexp", "options": "/.*\u4f7f\u7528\u7387.*/" }, "properties": [ { "id": "unit", "value": "percent" }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "gauge" } }, { "id": "color", "value": { "mode": "continuous-GrYlRd" } }, { "id": "custom.width", "value": 110 } ] } ] }, "gridPos": { "h": 11, "w": 24, "x": 0, "y": 32 }, "id": 14, "options": { "cellHeight": "sm", "footer": { "countRows": false, "enablePagination": true, "fields": [ "Value #B", "Value #C", "Value #L", "Value #H", "Value #I", "Value #M", "Value #N", "Value #J", "Value #K" ], "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [ { "desc": false, "displayName": "\u5065\u5eb7\u503c" } ] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "node_uname_info{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} - 0", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u4e3b\u673a\u540d", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(time() - node_boot_time_seconds{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"})by(instance)/86400", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u8fd0\u884c\u65f6\u95f4", "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "node_memory_MemTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} - 0", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u603b\u5185\u5b58", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(node_cpu_seconds_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",mode='system'}) by (instance)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u603b\u6838\u6570", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "node_load5{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}", "format": "table", "instant": true, "interval": "", "legendFormat": "5\u5206\u949f\u8d1f\u8f7d", "refId": "L" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "(1 - avg(irate(node_cpu_seconds_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",mode=\"idle\"}[$interval])) by (instance)) * 100", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "CPU\u4f7f\u7528\u7387", "refId": "F" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "(1 - (node_memory_MemAvailable_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} / (node_memory_MemTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"})))* 100", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u5185\u5b58\u4f7f\u7528\u7387", "refId": "G" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max((node_filesystem_size_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"ext.?|xfs\"}-node_filesystem_free_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"ext.?|xfs\"}) *100/(node_filesystem_avail_bytes {origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"ext.?|xfs\"}+(node_filesystem_size_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"ext.?|xfs\"}-node_filesystem_free_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"ext.?|xfs\"})))by(instance)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "__auto", "refId": "E" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max(irate(node_disk_read_bytes_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}[$interval])) by (instance)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u6700\u5927\u8bfb\u53d6", "refId": "H" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max(irate(node_disk_written_bytes_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}[$interval])) by (instance)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u6700\u5927\u5199\u5165", "refId": "I" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "node_netstat_Tcp_CurrEstab{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} - 0", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u8fde\u63a5\u6570", "refId": "M" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "node_sockstat_TCP_tw{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} - 0", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "TIME_WAIT", "refId": "N" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max(irate(node_network_receive_bytes_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}[$interval])*8) by (instance)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u4e0b\u8f7d\u5e26\u5bbd", "refId": "J" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max(irate(node_network_transmit_bytes_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}[$interval])*8) by (instance)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u4e0a\u4f20\u5e26\u5bbd", "refId": "K" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "((1-(1 - avg(irate(node_cpu_seconds_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",mode=\"idle\"}[$interval])) by (instance))^1.3)^(1/3)*0.5 + \r\n(1-(1 - avg(node_memory_MemAvailable_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} / node_memory_MemTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"})by (instance))^6)^(1/3)*0.3 + \r\n(1 - max(irate(node_disk_io_time_seconds_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}[$interval]))by (instance)^1.1)^(1/2)*0.2)*100", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "__auto", "refId": "O" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max(irate(node_disk_io_time_seconds_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}[$interval])) by (instance) *100", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "IOutil\u4f7f\u7528\u7387", "refId": "P" } ], "title": "\u670d\u52a1\u5668\u8d44\u6e90\u603b\u89c8\u8868\u3010\u4e3b\u673a\u603b\u6570\uff1a$total\u3011", "transformations": [ { "id": "merge", "options": { "reducers": [] } }, { "id": "organize", "options": { "excludeByName": { "exp": false, "iid": false }, "includeByName": {}, "indexByName": { "Time": 20, "Value #A": 36, "Value #B": 7, "Value #C": 8, "Value #D": 4, "Value #E": 13, "Value #F": 10, "Value #G": 11, "Value #H": 14, "Value #I": 15, "Value #J": 18, "Value #K": 19, "Value #L": 9, "Value #M": 16, "Value #N": 17, "Value #O": 6, "Value #P": 12, "__name__": 37, "account": 21, "cservice": 22, "domainname": 23, "exp": 5, "group": 24, "iaccount": 25, "igroup": 26, "iid": 3, "iname": 27, "instance": 2, "job": 28, "machine": 29, "name": 1, "nodename": 0, "origin_prometheus": 30, "region": 31, "release": 32, "sysname": 33, "vendor": 34, "version": 35 }, "renameByName": { "Value #B": "\u5185\u5b58", "Value #C": "CPU", "Value #D": "\u542f\u52a8(\u5929)", "Value #E": "\u5206\u533a\u4f7f\u7528\u7387*", "Value #F": "CPU\u4f7f\u7528\u7387", "Value #G": "\u5185\u5b58\u4f7f\u7528\u7387", "Value #H": "\u78c1\u76d8\u8bfb\u53d6*", "Value #I": "\u78c1\u76d8\u5199\u5165*", "Value #J": "\u4e0b\u8f7d\u5e26\u5bbd*", "Value #K": "\u4e0a\u4f20\u5e26\u5bbd*", "Value #L": "\u8d1f\u8f7d", "Value #M": "\u8fde\u63a5\u6570", "Value #N": "TCP_tw", "Value #O": "\u5065\u5eb7\u503c", "Value #P": "IOutil\u4f7f\u7528\u7387*", "exp": "\u5230\u671f\u65e5", "iid": "\u5b9e\u4f8bID", "instance": "IP", "name": "", "nodename": "\u4e3b\u673a\u540d" } } }, { "id": "filterFieldsByName", "options": { "include": { "names": [ "\u4e3b\u673a\u540d", "IP", "\u542f\u52a8(\u5929)", "\u5065\u5eb7\u503c", "\u5185\u5b58", "CPU", "\u8d1f\u8f7d", "CPU\u4f7f\u7528\u7387", "\u5185\u5b58\u4f7f\u7528\u7387", "IOutil\u4f7f\u7528\u7387*", "\u5206\u533a\u4f7f\u7528\u7387*", "\u78c1\u76d8\u8bfb\u53d6*", "\u78c1\u76d8\u5199\u5165*", "\u8fde\u63a5\u6570", "TCP_tw", "\u4e0b\u8f7d\u5e26\u5bbd*", "\u4e0a\u4f20\u5e26\u5bbd*" ] } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "- P99\uff1a\u6570\u636e\u96c6\u6309\u5347\u5e8f\u6392\u5217\uff0c\u7b2c99\u5206\u4f4d\u7f6e\u5927\u7684\u6570\u636e\u3002\uff08\u5373\u5347\u5e8f\u6392\u5217\u540e\u6392\u572899%\u4f4d\u7f6e\u7684\u6570\u636e\uff09\n- \u8be5\u8868\u683c\u9700\u8981\u5728Prometheus\u589e\u52a0\u8bb0\u5f55\u89c4\u5219\uff08\u53c2\u8003\u770b\u677f\u4e0b\u8f7d\u9875\uff09\n- \u589e\u52a0\u8bb0\u5f55\u89c4\u52191\u5c0f\u65f6\u540e\u624d\u4f1a\u6709\u5c55\u793a\u7684\u6570\u636e\u3002\n- \u65f6\u95f4\u8303\u56f4[7d:1h]\u8868\u793a\u8981\u67e5\u770b\u8fc7\u53bb 7 \u5929\u5185\u6bcf\u5c0f\u65f6\u7684\u6570\u636e\u70b9\u3002", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "align": "center", "cellOptions": { "type": "color-text" }, "inspect": false }, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/.*%/" }, "properties": [ { "id": "unit", "value": "percent" }, { "id": "decimals", "value": 1 }, { "id": "custom.width", "value": 72 }, { "id": "color", "value": { "mode": "continuous-GrYlRd" } }, { "id": "custom.cellOptions", "value": { "type": "color-background" } } ] }, { "matcher": { "id": "byName", "options": "IP" }, "properties": [ { "id": "custom.width", "value": 91 }, { "id": "mappings", "value": [ { "options": { "pattern": "/(.+):.+/", "result": { "index": 0, "text": "$1" } }, "type": "regex" } ] } ] }, { "matcher": { "id": "byName", "options": "P99\u5185\u5b58\u4f7f\u7528\u7387" }, "properties": [ { "id": "custom.width", "value": 79 } ] }, { "matcher": { "id": "byName", "options": "P99CPU\u4f7f\u7528\u7387" }, "properties": [ { "id": "custom.width", "value": 101 } ] }, { "matcher": { "id": "byName", "options": "\u540d\u79f0" }, "properties": [ { "id": "custom.width", "value": 128 } ] }, { "matcher": { "id": "byName", "options": "\u4e3b\u673a\u540d" }, "properties": [ { "id": "custom.width", "value": 138 } ] } ] }, "gridPos": { "h": 7, "w": 6, "x": 0, "y": 43 }, "id": 15, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [ { "desc": true, "displayName": "P99\u5185\u5b58%" } ] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "node_uname_info{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} - 0", "format": "table", "instant": true, "interval": "", "legendFormat": "\u4e3b\u673a\u540d", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "quantile_over_time(0.99, cpu:usage:rate1m{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}[7d:1h])", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "CPU\u4f7f\u7528\u7387P99", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "quantile_over_time(0.99, mem:usage:rate1m{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}[7d:1h])", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u5185\u5b58\u4f7f\u7528\u7387P99", "refId": "C" } ], "title": "\u6700\u8fd17\u5929P99\u8d44\u6e90\u4f7f\u7528\u7387", "transformations": [ { "id": "seriesToColumns", "options": { "byField": "instance" } }, { "id": "filterFieldsByName", "options": { "include": { "pattern": "/^Value #[^A]|^instance$|^nodename$/" } } }, { "id": "organize", "options": { "excludeByName": {}, "includeByName": {}, "indexByName": { "Value #B": 2, "Value #C": 3, "instance": 1, "nodename": 0 }, "renameByName": { "Value #B": "P99CPU%", "Value #C": "P99\u5185\u5b58%", "instance": "IP", "name": "", "name 1": "", "nodename": "\u4e3b\u673a\u540d" } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "series", "axisLabel": "\u603b5\u5206\u949f\u8d1f\u8f7d", "axisPlacement": "auto", "axisSoftMin": 0, "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byName", "options": "\u5e73\u5747%" }, "properties": [ { "id": "unit", "value": "percent" }, { "id": "custom.axisLabel", "value": "\u603b\u5e73\u5747\u4f7f\u7528\u7387" }, { "id": "custom.pointSize", "value": 3 }, { "id": "custom.lineWidth", "value": 1 }, { "id": "custom.showPoints", "value": "always" }, { "id": "custom.axisSoftMin" } ] }, { "matcher": { "id": "byName", "options": "\u6838\u6570" }, "properties": [ { "id": "color", "value": { "fixedColor": "#C4162A", "mode": "fixed" } }, { "id": "custom.pointSize", "value": 3 }, { "id": "custom.drawStyle", "value": "points" } ] }, { "matcher": { "id": "byName", "options": "5m\u8d1f\u8f7d" }, "properties": [ { "id": "color", "value": { "fixedColor": "orange", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 7, "w": 6, "x": 6, "y": 43 }, "id": 16, "maxDataPoints": 100, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "maxHeight": 600, "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.0.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(node_load5{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"})", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "5m\u8d1f\u8f7d", "range": true, "refId": "A", "step": 240 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "count(node_cpu_seconds_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",mode='system'})", "format": "time_series", "hide": false, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u6838\u6570", "refId": "B", "step": 240 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "avg(1 - avg(irate(node_cpu_seconds_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",mode=\"idle\"}[$interval])) by (instance)) * 100", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u5e73\u5747%", "range": true, "refId": "F", "step": 240 } ], "title": "\u6574\u4f53\u603b\u8d1f\u8f7d\u4e0e\u6574\u4f53\u5e73\u5747CPU\u4f7f\u7528\u7387", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "series", "axisLabel": "\u603b\u5df2\u7528\u5185\u5b58", "axisPlacement": "auto", "axisSoftMin": 0, "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 0, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "\u603b\u5185\u5b58" }, "properties": [ { "id": "color", "value": { "fixedColor": "#C4162A", "mode": "fixed" } }, { "id": "custom.drawStyle", "value": "points" }, { "id": "custom.pointSize", "value": 3 } ] }, { "matcher": { "id": "byName", "options": "\u5e73\u5747%" }, "properties": [ { "id": "unit", "value": "percent" }, { "id": "decimals", "value": 1 }, { "id": "custom.axisLabel", "value": "\u603b\u5e73\u5747\u4f7f\u7528\u7387" }, { "id": "custom.showPoints", "value": "always" }, { "id": "custom.lineWidth", "value": 1 }, { "id": "custom.pointSize", "value": 3 }, { "id": "custom.axisSoftMin" } ] }, { "matcher": { "id": "byName", "options": "\u603b\u5df2\u7528" }, "properties": [ { "id": "color", "value": { "fixedColor": "orange", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 7, "w": 6, "x": 12, "y": 43 }, "id": 17, "maxDataPoints": 100, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "maxHeight": 600, "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.0.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(node_memory_MemTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} - node_memory_MemAvailable_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"})", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u603b\u5df2\u7528", "range": true, "refId": "B", "step": 4 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(node_memory_MemTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"})", "format": "time_series", "hide": false, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u603b\u5185\u5b58", "refId": "A", "step": 4 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "(sum(node_memory_MemTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} - node_memory_MemAvailable_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}) / sum(node_memory_MemTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}))*100", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u5e73\u5747%", "range": true, "refId": "H" } ], "title": "\u6574\u4f53\u603b\u5185\u5b58\u4e0e\u6574\u4f53\u5e73\u5747\u5185\u5b58\u4f7f\u7528\u7387", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "series", "axisLabel": "\u603b\u78c1\u76d8\u4f7f\u7528\u91cf", "axisPlacement": "auto", "axisSoftMin": 0, "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "\u5e73\u5747%" }, "properties": [ { "id": "unit", "value": "percent" }, { "id": "decimals", "value": 2 }, { "id": "custom.axisLabel", "value": "\u603b\u5e73\u5747\u4f7f\u7528\u7387" }, { "id": "custom.lineWidth", "value": 1 }, { "id": "custom.showPoints", "value": "always" }, { "id": "custom.pointSize", "value": 3 }, { "id": "custom.axisSoftMin" } ] }, { "matcher": { "id": "byName", "options": "\u603b\u78c1\u76d8" }, "properties": [ { "id": "color", "value": { "fixedColor": "#C4162A", "mode": "fixed" } }, { "id": "custom.drawStyle", "value": "points" }, { "id": "custom.pointSize", "value": 3 } ] }, { "matcher": { "id": "byName", "options": "\u4f7f\u7528\u91cf" }, "properties": [ { "id": "color", "value": { "fixedColor": "orange", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 7, "w": 6, "x": 18, "y": 43 }, "id": 18, "maxDataPoints": 100, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "maxHeight": 600, "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.0.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(avg(node_filesystem_size_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"xfs|ext.*\"})by(device,instance)) - sum(avg(node_filesystem_free_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"xfs|ext.*\"})by(device,instance))", "format": "time_series", "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u4f7f\u7528\u91cf", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(avg(node_filesystem_size_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"xfs|ext.*\"})by(device,instance))", "format": "time_series", "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u603b\u78c1\u76d8", "refId": "E" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "(sum(avg(node_filesystem_size_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"xfs|ext.*\"})by(device,instance)) - sum(avg(node_filesystem_free_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"xfs|ext.*\"})by(device,instance))) *100/(sum(avg(node_filesystem_avail_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"xfs|ext.*\"})by(device,instance))+(sum(avg(node_filesystem_size_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"xfs|ext.*\"})by(device,instance)) - sum(avg(node_filesystem_free_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"xfs|ext.*\"})by(device,instance))))", "format": "time_series", "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u5e73\u5747%", "refId": "A" } ], "title": "\u6574\u4f53\u603b\u78c1\u76d8\u4e0e\u6574\u4f53\u5e73\u5747\u78c1\u76d8\u4f7f\u7528\u7387", "type": "timeseries" }, { "collapsed": true, "datasource": { "type": "prometheus", "uid": "WAYOn0FGz" }, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 50 }, "id": 19, "panels": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "\u672c\u770b\u677f\u4e2d\u7684\uff1a\u78c1\u76d8\u603b\u91cf\u3001\u4f7f\u7528\u91cf\u3001\u53ef\u7528\u91cf\u3001\u4f7f\u7528\u7387\u4fdd\u6301\u548cdf\u547d\u4ee4\u7684Size\u3001Used\u3001Avail\u3001Use% \u5217\u7684\u503c\u4e00\u81f4\uff0c\u5e76\u4e14Use%\u7684\u503c\u4f1a\u56db\u820d\u4e94\u5165\u4fdd\u7559\u4e00\u4f4d\u5c0f\u6570\uff0c\u4f1a\u66f4\u52a0\u51c6\u786e\u3002\n\n\u6ce8\uff1adf\u4e2dUse%\u7b97\u6cd5\u4e3a\uff1a(size - free) * 100 / (avail + (size - free))\uff0c\u7ed3\u679c\u662f\u6574\u9664\u5219\u4e3a\u8be5\u503c\uff0c\u975e\u6574\u9664\u5219\u4e3a\u8be5\u503c+1\uff0c\u7ed3\u679c\u7684\u5355\u4f4d\u662f%\u3002\n\u53c2\u8003df\u547d\u4ee4\u6e90\u7801\uff1a", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "center", "cellOptions": { "type": "auto" }, "inspect": false }, "displayName": "", "mappings": [], "thresholds": { "mode": "percentage", "steps": [ { "color": "green" } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byName", "options": "\u5206\u533a" }, "properties": [ { "id": "custom.width", "value": 81 } ] }, { "matcher": { "id": "byName", "options": "\u5269\u4f59\u7a7a\u95f4" }, "properties": [ { "id": "unit", "value": "bytes" }, { "id": "decimals" }, { "id": "custom.cellOptions", "value": { "type": "color-text" } }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "red" }, { "color": "orange", "value": 10000000000 }, { "color": "green", "value": 20000000000 } ] } }, { "id": "custom.width", "value": 72 } ] }, { "matcher": { "id": "byName", "options": "\u4f7f\u7528\u7387" }, "properties": [ { "id": "unit", "value": "percent" }, { "id": "decimals", "value": 0 }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "gauge" } }, { "id": "custom.width", "value": 115 }, { "id": "min", "value": 0 }, { "id": "max", "value": 100 }, { "id": "color", "value": { "mode": "continuous-GrYlRd" } } ] }, { "matcher": { "id": "byName", "options": "\u603b\u7a7a\u95f4" }, "properties": [ { "id": "unit", "value": "bytes" }, { "id": "custom.width", "value": 75 }, { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } }, { "id": "custom.cellOptions", "value": { "type": "color-text" } } ] }, { "matcher": { "id": "byName", "options": "\u7c7b\u578b" }, "properties": [ { "id": "custom.width", "value": 51 } ] }, { "matcher": { "id": "byName", "options": "\u8bbe\u5907\u540d" }, "properties": [ { "id": "custom.width", "value": 120 } ] } ] }, "gridPos": { "h": 6, "w": 8, "x": 0, "y": 20 }, "id": 181, "links": [ { "targetBlank": true, "title": "https://github.com/coreutils/coreutils/blob/master/src/df.c", "url": "https://github.com/coreutils/coreutils/blob/master/src/df.c" } ], "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [ { "desc": true, "displayName": "\u4f7f\u7528\u7387" } ] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "node_filesystem_size_bytes{instance=~\"$node\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}-0", "format": "table", "hide": false, "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "\u603b\u91cf", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "node_filesystem_avail_bytes {instance=~\"$node\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}-0", "format": "table", "hide": false, "instant": true, "interval": "10s", "intervalFactor": 1, "legendFormat": "", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "(node_filesystem_size_bytes{instance=~\"$node\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}-node_filesystem_free_bytes{instance=~\"$node\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}) *100/(node_filesystem_avail_bytes {instance=~\"$node\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}+(node_filesystem_size_bytes{instance=~\"$node\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}-node_filesystem_free_bytes{instance=~\"$node\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}))", "format": "table", "hide": false, "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "", "refId": "B" } ], "title": "\u3010$show_hostname\u3011\uff1a\u5206\u533a\u53ef\u7528\u7a7a\u95f4(EXT.*/XFS/NFS)", "transformations": [ { "id": "merge", "options": { "reducers": [] } }, { "id": "filterFieldsByName", "options": { "include": { "names": [ "device", "fstype", "mountpoint", "Value #C", "Value #A", "Value #B" ] } } }, { "id": "organize", "options": { "excludeByName": {}, "indexByName": {}, "renameByName": { "Value #A": "\u5269\u4f59\u7a7a\u95f4", "Value #B": "\u4f7f\u7528\u7387", "Value #C": "\u603b\u7a7a\u95f4", "device": "\u8bbe\u5907\u540d", "fstype": "\u7c7b\u578b", "mountpoint": "\u5206\u533a" } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 1, "mappings": [ { "options": { "0": { "text": "N/A" } }, "type": "value" } ], "max": 100, "min": 0.1, "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "#EAB839", "value": 70 }, { "color": "red", "value": 90 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 6, "w": 4, "x": 8, "y": 20 }, "id": 177, "options": { "displayMode": "lcd", "maxVizHeight": 300, "minVizHeight": 45, "minVizWidth": 0, "namePlacement": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "showUnfilled": true, "sizing": "auto", "valueMode": "color" }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "100 - (avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"idle\"}[$interval])) * 100)", "instant": true, "interval": "", "legendFormat": "\u603bCPU\u4f7f\u7528\u7387", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"iowait\"}[$interval])) * 100", "hide": true, "instant": true, "interval": "", "legendFormat": "IOwait\u4f7f\u7528\u7387", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "(1 - (node_memory_MemAvailable_bytes{instance=~\"$node\"} / (node_memory_MemTotal_bytes{instance=~\"$node\"})))* 100", "instant": true, "interval": "", "legendFormat": "\u5185\u5b58\u4f7f\u7528\u7387", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "(node_filesystem_size_bytes{instance=~\"$node\",fstype=~\"ext.*|xfs\",mountpoint=\"$maxmount\"}-node_filesystem_free_bytes{instance=~\"$node\",fstype=~\"ext.*|xfs\",mountpoint=\"$maxmount\"})*100 /(node_filesystem_avail_bytes {instance=~\"$node\",fstype=~\"ext.*|xfs\",mountpoint=\"$maxmount\"}+(node_filesystem_size_bytes{instance=~\"$node\",fstype=~\"ext.*|xfs\",mountpoint=\"$maxmount\"}-node_filesystem_free_bytes{instance=~\"$node\",fstype=~\"ext.*|xfs\",mountpoint=\"$maxmount\"}))", "hide": false, "instant": true, "interval": "", "legendFormat": "\u6700\u5927\u5206\u533a\u4f7f\u7528\u7387({{mountpoint}})", "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "(1 - ((node_memory_SwapFree_bytes{instance=~\"$node\"} + 1)/ (node_memory_SwapTotal_bytes{instance=~\"$node\"} + 1))) * 100", "instant": true, "interval": "", "legendFormat": "\u4ea4\u6362\u5206\u533a\u4f7f\u7528\u7387", "refId": "F" } ], "type": "bargauge" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byName", "options": "\u8fd0\u884c\u65f6\u95f4" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "red" }, { "color": "orange", "value": 3600 }, { "color": "green", "value": 7200 } ] } }, { "id": "unit", "value": "s" } ] }, { "matcher": { "id": "byName", "options": "\u603b\u5185\u5b58" }, "properties": [ { "id": "unit", "value": "bytes" }, { "id": "decimals", "value": 0 } ] }, { "matcher": { "id": "byName", "options": "CPU iowait" }, "properties": [ { "id": "unit", "value": "percent" }, { "id": "thresholds", "value": { "mode": "percentage", "steps": [ { "color": "green" }, { "color": "orange", "value": 40 }, { "color": "red", "value": 60 } ] } }, { "id": "decimals", "value": 2 } ] }, { "matcher": { "id": "byName", "options": "\u603b\u6587\u4ef6\u63cf\u8ff0\u7b26" }, "properties": [ { "id": "unit", "value": "short" }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "red" }, { "color": "orange", "value": 50000 }, { "color": "green", "value": 200000 } ] } } ] }, { "matcher": { "id": "byName", "options": "\u6700\u5927\u6253\u5f00\u6587\u4ef6" }, "properties": [ { "id": "unit", "value": "none" }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "red" }, { "color": "orange", "value": 10000 }, { "color": "green", "value": 50000 } ] } } ] } ] }, "gridPos": { "h": 6, "w": 4, "x": 12, "y": 20 }, "id": 206, "interval": "15s", "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "text": { "valueSize": 15 }, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.0.0", "targets": [ { "alias": "", "bucketAggs": [ { "id": "2", "settings": { "interval": "auto" }, "type": "date_histogram" } ], "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "avg(time() - node_boot_time_seconds{instance=~\"$node\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "\u8fd0\u884c\u65f6\u95f4", "metrics": [ { "id": "1", "type": "count" } ], "query": "", "refId": "C", "timeField": "@timestamp" }, { "alias": "", "bucketAggs": [ { "id": "2", "settings": { "interval": "auto" }, "type": "date_histogram" } ], "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "count(node_cpu_seconds_total{instance=~\"$node\", mode='system'})", "instant": true, "interval": "", "legendFormat": "CPU \u6838\u6570", "metrics": [ { "id": "1", "type": "count" } ], "query": "", "refId": "A", "timeField": "@timestamp" }, { "alias": "", "bucketAggs": [ { "id": "2", "settings": { "interval": "auto" }, "type": "date_histogram" } ], "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(node_memory_MemTotal_bytes{instance=~\"$node\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "\u603b\u5185\u5b58", "metrics": [ { "id": "1", "type": "count" } ], "query": "", "refId": "B", "timeField": "@timestamp" }, { "alias": "", "bucketAggs": [ { "id": "2", "settings": { "interval": "auto" }, "type": "date_histogram" } ], "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"iowait\"}[$interval])) * 100", "hide": false, "instant": true, "interval": "", "legendFormat": "CPU iowait", "metrics": [ { "id": "1", "type": "count" } ], "query": "", "refId": "D", "timeField": "@timestamp" }, { "alias": "", "bucketAggs": [ { "id": "2", "settings": { "interval": "auto" }, "type": "date_histogram" } ], "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "node_filefd_maximum{instance=~\"$node\"}", "hide": false, "instant": true, "interval": "", "legendFormat": "\u603b\u6587\u4ef6\u63cf\u8ff0\u7b26", "metrics": [ { "id": "1", "type": "count" } ], "query": "", "refId": "E", "timeField": "@timestamp" }, { "alias": "", "bucketAggs": [ { "id": "2", "settings": { "interval": "auto" }, "type": "date_histogram" } ], "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "process_max_fds{job=\"node_exporter\",instance=~\"$node\"}", "hide": false, "instant": true, "interval": "", "legendFormat": "\u6700\u5927\u6253\u5f00\u6587\u4ef6", "metrics": [ { "id": "1", "type": "count" } ], "query": "", "refId": "F", "timeField": "@timestamp" } ], "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "bars", "fillOpacity": 60, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "cn-shenzhen.i-wz9cq1dcb6zwc39ehw59_cni0_in" }, "properties": [ { "id": "color", "value": { "fixedColor": "light-red", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "cn-shenzhen.i-wz9cq1dcb6zwc39ehw59_cni0_in\u4e0b\u8f7d" }, "properties": [ { "id": "color", "value": { "fixedColor": "green", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "cn-shenzhen.i-wz9cq1dcb6zwc39ehw59_cni0_out\u4e0a\u4f20" }, "properties": [ { "id": "color", "value": { "fixedColor": "yellow", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "cn-shenzhen.i-wz9cq1dcb6zwc39ehw59_eth0_in\u4e0b\u8f7d" }, "properties": [ { "id": "color", "value": { "fixedColor": "purple", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "cn-shenzhen.i-wz9cq1dcb6zwc39ehw59_eth0_out" }, "properties": [ { "id": "color", "value": { "fixedColor": "purple", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "cn-shenzhen.i-wz9cq1dcb6zwc39ehw59_eth0_out\u4e0a\u4f20" }, "properties": [ { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 6, "w": 8, "x": 16, "y": 20 }, "id": 183, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "maxHeight": 600, "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.0.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "increase(node_network_receive_bytes_total{instance=~\"$node\",device=~\"$device\"}[1m])", "interval": "1m", "intervalFactor": 2, "legendFormat": "{{device}}_in\u4e0b\u8f7d", "metric": "", "refId": "A", "step": 600, "target": "" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "increase(node_network_transmit_bytes_total{instance=~\"$node\",device=~\"$device\"}[1m])", "hide": false, "interval": "1m", "intervalFactor": 2, "legendFormat": "{{device}}_out\u4e0a\u4f20", "refId": "B", "step": 600 } ], "title": "\u6bcf\u5206\u949f\u6d41\u91cf$device", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "series", "axisLabel": "\u603b\u4f7f\u7528\u7387", "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": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 0, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "percent" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/.*\u603b\u4f7f\u7528\u7387/" }, "properties": [ { "id": "color", "value": { "fixedColor": "dark-red", "mode": "fixed" } }, { "id": "custom.fillOpacity", "value": 0 }, { "id": "custom.lineWidth", "value": 2 } ] }, { "matcher": { "id": "byName", "options": "\u78c1\u76d8IO\u4f7f\u7528\u7387" }, "properties": [ { "id": "custom.axisPlacement", "value": "right" }, { "id": "custom.axisLabel", "value": "\u78c1\u76d8IO\u4f7f\u7528\u7387" }, { "id": "color", "value": { "fixedColor": "#0ad4ff", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "\u7528\u6237\u4f7f\u7528\u7387" }, "properties": [ { "id": "color", "value": { "fixedColor": "yellow", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "\u7cfb\u7edf\u4f7f\u7528\u7387" }, "properties": [ { "id": "color", "value": { "fixedColor": "green", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 8, "w": 8, "x": 0, "y": 26 }, "id": 207, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true, "sortBy": "Max", "sortDesc": true }, "tooltip": { "maxHeight": 600, "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.0.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "(1 - avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"idle\"}[$interval])) by (instance))*100", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u603b\u4f7f\u7528\u7387", "refId": "F", "step": 240 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"system\"}[$interval])) by (instance) *100", "format": "time_series", "hide": false, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u7cfb\u7edf\u4f7f\u7528\u7387", "refId": "A", "step": 20 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"user\"}[$interval])) by (instance) *100", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u7528\u6237\u4f7f\u7528\u7387", "refId": "B", "step": 240 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"iowait\"}[$interval])) by (instance) *100", "format": "time_series", "hide": false, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u78c1\u76d8IO\u4f7f\u7528\u7387", "refId": "D", "step": 240 } ], "title": "CPU\u4f7f\u7528\u7387", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "series", "axisLabel": "\u5269\u4f59\u5185\u5b58", "axisPlacement": "left", "axisSoftMin": 0, "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "\u53ef\u7528" }, "properties": [ { "id": "color", "value": { "fixedColor": "#9ac48a", "mode": "fixed" } }, { "id": "custom.lineWidth", "value": 2 } ] }, { "matcher": { "id": "byName", "options": "\u603b\u5185\u5b58" }, "properties": [ { "id": "color", "value": { "fixedColor": "#C4162A", "mode": "fixed" } }, { "id": "custom.lineWidth", "value": 1 }, { "id": "custom.pointSize", "value": 3 }, { "id": "custom.showPoints", "value": "always" } ] }, { "matcher": { "id": "byName", "options": "\u4f7f\u7528\u7387" }, "properties": [ { "id": "color", "value": { "fixedColor": "#00d1ff", "mode": "fixed" } }, { "id": "custom.lineWidth", "value": 1 }, { "id": "unit", "value": "percent" }, { "id": "custom.axisLabel", "value": "\u5185\u5b58\u4f7f\u7528\u7387" }, { "id": "custom.pointSize", "value": 3 }, { "id": "custom.showPoints", "value": "always" }, { "id": "custom.axisPlacement", "value": "right" }, { "id": "custom.axisSoftMin" } ] }, { "matcher": { "id": "byName", "options": "\u5df2\u7528" }, "properties": [ { "id": "color", "value": { "fixedColor": "orange", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 8, "w": 8, "x": 8, "y": 26 }, "id": 156, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true, "sortBy": "Max", "sortDesc": true }, "tooltip": { "maxHeight": 600, "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.0.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "node_memory_MemAvailable_bytes{instance=~\"$node\"}", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u53ef\u7528", "refId": "F", "step": 4 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "node_memory_MemTotal_bytes{instance=~\"$node\"}", "format": "time_series", "hide": false, "instant": false, "interval": "2m", "intervalFactor": 1, "legendFormat": "\u603b\u5185\u5b58", "refId": "A", "step": 4 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "node_memory_MemTotal_bytes{instance=~\"$node\"} - node_memory_MemAvailable_bytes{instance=~\"$node\"}", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u5df2\u7528", "refId": "B", "step": 4 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "(1 - (node_memory_MemAvailable_bytes{instance=~\"$node\"} / (node_memory_MemTotal_bytes{instance=~\"$node\"})))* 100", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u4f7f\u7528\u7387", "refId": "H" } ], "title": "\u5185\u5b58\u4fe1\u606f", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "continuous-GrYlRd" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "series", "axisLabel": "\u5bb9\u91cf\u4f7f\u7528\u7387", "axisPlacement": "auto", "axisSoftMax": 100, "axisSoftMin": 0, "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "percent" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/Inodes.*/" }, "properties": [ { "id": "color", "value": { "fixedColor": "#00d1ff", "mode": "fixed" } }, { "id": "custom.lineWidth", "value": 0 }, { "id": "custom.showPoints", "value": "always" }, { "id": "custom.pointSize", "value": 3 }, { "id": "custom.axisLabel", "value": "Inodes\u4f7f\u7528\u7387" } ] } ] }, "gridPos": { "h": 8, "w": 8, "x": 16, "y": 26 }, "id": 174, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "maxHeight": 600, "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.0.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "(node_filesystem_size_bytes{instance=~\"$node\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}-node_filesystem_free_bytes{instance=~\"$node\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}) *100/(node_filesystem_avail_bytes {instance=~\"$node\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}+(node_filesystem_size_bytes{instance=~\"$node\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}-node_filesystem_free_bytes{instance=~\"$node\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}))", "format": "time_series", "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u5bb9\u91cf%\uff1a{{mountpoint}}", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "(1 - node_filesystem_files_free{instance=~\"$node\",fstype=~\"ext.?|xfs|nfs\",mountpoint !~\".*pod.*\"} / node_filesystem_files{instance=~\"$node\",fstype=~\"ext.?|xfs|nfs\",mountpoint !~\".*pod.*\"}) * 100", "hide": false, "interval": "", "legendFormat": "Inodes%\uff1a{{mountpoint}}", "range": true, "refId": "B" } ], "title": "\u78c1\u76d8\u4f7f\u7528\u7387", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "series", "axisLabel": "1\u5206\u949f\u8d1f\u8f7d", "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": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byName", "options": "15\u5206\u949f\u8d1f\u8f7d" }, "properties": [ { "id": "color", "value": { "fixedColor": "purple", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "1\u5206\u949f\u8d1f\u8f7d" }, "properties": [ { "id": "color", "value": { "fixedColor": "orange", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "5\u5206\u949f\u8d1f\u8f7d" }, "properties": [ { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } } ] }, { "matcher": { "id": "byRegexp", "options": "/.*\u603b\u6838\u6570/" }, "properties": [ { "id": "color", "value": { "fixedColor": "#C4162A", "mode": "fixed" } }, { "id": "custom.lineWidth", "value": 1 }, { "id": "custom.pointSize", "value": 4 }, { "id": "custom.showPoints", "value": "always" } ] } ] }, "gridPos": { "h": 8, "w": 8, "x": 0, "y": 34 }, "id": 13, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "maxHeight": 600, "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.0.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "node_load1{instance=~\"$node\"}", "format": "time_series", "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "1\u5206\u949f\u8d1f\u8f7d", "metric": "", "refId": "A", "step": 20, "target": "" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": " sum(count(node_cpu_seconds_total{instance=~\"$node\", mode='system'}) by (cpu,instance)) by(instance)", "format": "time_series", "instant": false, "interval": "2m", "intervalFactor": 1, "legendFormat": "CPU\u603b\u6838\u6570", "refId": "D", "step": 20 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "node_load5{instance=~\"$node\"}", "format": "time_series", "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "5\u5206\u949f\u8d1f\u8f7d", "refId": "B", "step": 20 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "node_load15{instance=~\"$node\"}", "format": "time_series", "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "15\u5206\u949f\u8d1f\u8f7d", "refId": "C", "step": 20 } ], "title": "\u7cfb\u7edf\u5e73\u5747\u8d1f\u8f7d", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "bars", "fillOpacity": 100, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "normal" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byName", "options": "\u7b49\u5f85IO\u5b8c\u6210\u963b\u585e\u7684\u8fdb\u7a0b" }, "properties": [ { "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "\u8fd0\u884c\u6001\u7684\u8fdb\u7a0b" }, "properties": [ { "id": "color", "value": { "fixedColor": "green", "mode": "fixed" } } ] }, { "matcher": { "id": "byValue", "options": { "op": "gte", "reducer": "allIsZero", "value": 0 } }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": true, "tooltip": true, "viz": false } } ] }, { "matcher": { "id": "byValue", "options": { "op": "gte", "reducer": "allIsNull", "value": 0 } }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": true, "tooltip": true, "viz": false } } ] } ] }, "gridPos": { "h": 8, "w": 8, "x": 8, "y": 34 }, "id": 202, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "maxHeight": 600, "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.0.2", "targets": [ { "calculatedInterval": "2m", "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "datasourceErrors": {}, "errors": {}, "exemplar": true, "expr": "node_procs_running{instance=~\"$node\"}", "format": "time_series", "interval": "1m", "intervalFactor": 1, "legendFormat": "\u8fd0\u884c\u6001\u7684\u8fdb\u7a0b", "metric": "", "prometheusLink": "/api/datasources/proxy/1/graph#%5B%7B%22expr%22%3A%22node_procs_running%7Binstance%3D%5C%22%24host%5C%22%7D%22%2C%22range_input%22%3A%2243200s%22%2C%22end_input%22%3A%222015-9-18%2013%3A46%22%2C%22step_input%22%3A%22%22%2C%22stacked%22%3Atrue%2C%22tab%22%3A0%7D%5D", "refId": "A", "step": 5, "target": "" }, { "calculatedInterval": "2m", "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "datasourceErrors": {}, "errors": {}, "exemplar": true, "expr": "node_procs_blocked{instance=~\"$node\"}", "format": "time_series", "interval": "1m", "intervalFactor": 1, "legendFormat": "\u7b49\u5f85IO\u5b8c\u6210\u963b\u585e\u7684\u8fdb\u7a0b", "metric": "", "prometheusLink": "/api/datasources/proxy/1/graph#%5B%7B%22expr%22%3A%22node_procs_blocked%7Binstance%3D%5C%22%24host%5C%22%7D%22%2C%22range_input%22%3A%2243200s%22%2C%22end_input%22%3A%222015-9-18%2013%3A46%22%2C%22step_input%22%3A%22%22%2C%22stacked%22%3Atrue%2C%22tab%22%3A0%7D%5D", "refId": "B", "step": 5, "target": "" } ], "title": "\u8fdb\u7a0b\u8fd0\u884c\u72b6\u6001", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "series", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byName", "options": "\u603b\u4f7f\u7528FD" }, "properties": [ { "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "\u603b\u4f7f\u7528FD\u5360\u6bd4" }, "properties": [ { "id": "color", "value": { "fixedColor": "yellow", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "\u6bcf\u79d2\u4e0a\u4e0b\u6587\u5207\u6362" }, "properties": [ { "id": "color", "value": { "fixedColor": "dark-blue", "mode": "fixed" } } ] }, { "matcher": { "id": "byRegexp", "options": "/.*\u5360\u6bd4/" }, "properties": [ { "id": "custom.lineWidth", "value": 0 }, { "id": "unit", "value": "percent" }, { "id": "custom.showPoints", "value": "always" }, { "id": "custom.pointSize", "value": 3 }, { "id": "custom.axisSoftMax", "value": 100 }, { "id": "custom.axisSoftMin", "value": 0 } ] }, { "matcher": { "id": "byName", "options": "\u8fdb\u7a0b\u4f7f\u7528FD\u5360\u6bd4" }, "properties": [ { "id": "color", "value": { "fixedColor": "dark-orange", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 8, "w": 8, "x": 16, "y": 34 }, "hideTimeOverride": false, "id": 16, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "maxHeight": 600, "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.0.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "irate(node_context_switches_total{instance=~\"$node\"}[$interval])", "interval": "", "intervalFactor": 1, "legendFormat": "\u6bcf\u79d2\u4e0a\u4e0b\u6587\u5207\u6362", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "node_filefd_allocated{instance=~\"$node\"}", "format": "time_series", "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u603b\u4f7f\u7528FD", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "(node_filefd_allocated{instance=~\"$node\"}/node_filefd_maximum{instance=~\"$node\"}) *100", "format": "time_series", "hide": false, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u603b\u4f7f\u7528FD\u5360\u6bd4", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "(process_open_fds{instance=~\"$node\"}/process_max_fds{instance=~\"$node\"}) *100", "format": "time_series", "hide": false, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u8fdb\u7a0b\u4f7f\u7528FD\u5360\u6bd4", "refId": "D" } ], "title": "\u6587\u4ef6\u63cf\u8ff0\u7b26(FD)/\u6bcf\u79d2\u4e0a\u4e0b\u6587\u5207\u6362", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "Read time seconds \u6bcf\u4e2a\u78c1\u76d8\u5206\u533a\u8bfb\u64cd\u4f5c\u82b1\u8d39\u7684\u79d2\u6570\n\nWrite time seconds \u6bcf\u4e2a\u78c1\u76d8\u5206\u533a\u5199\u64cd\u4f5c\u82b1\u8d39\u7684\u79d2\u6570\n\nIO time seconds \u6bcf\u4e2a\u78c1\u76d8\u5206\u533a\u8f93\u5165/\u8f93\u51fa\u64cd\u4f5c\u82b1\u8d39\u7684\u79d2\u6570\n\nIO time weighted seconds\u6bcf\u4e2a\u78c1\u76d8\u5206\u533a\u8f93\u5165/\u8f93\u51fa\u64cd\u4f5c\u82b1\u8d39\u7684\u52a0\u6743\u79d2\u6570", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "\u8bfb\u53d6\uff08-\uff09/\u5199\u5165\uff08+\uff09", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "s" }, "overrides": [ { "matcher": { "id": "byName", "options": "vda" }, "properties": [ { "id": "color", "value": { "fixedColor": "#6ED0E0", "mode": "fixed" } } ] }, { "matcher": { "id": "byRegexp", "options": "/,*_\u8bfb\u53d6$/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] }, { "matcher": { "id": "byValue", "options": { "op": "gte", "reducer": "allIsZero", "value": 0 } }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": true, "tooltip": true, "viz": false } } ] }, { "matcher": { "id": "byValue", "options": { "op": "gte", "reducer": "allIsNull", "value": 0 } }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": true, "tooltip": true, "viz": false } } ] } ] }, "gridPos": { "h": 8, "w": 6, "x": 0, "y": 42 }, "id": 160, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "maxHeight": 600, "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "irate(node_disk_read_time_seconds_total{instance=~\"$node\"}[$interval]) / irate(node_disk_reads_completed_total{instance=~\"$node\"}[$interval])", "format": "time_series", "hide": false, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "{{device}}_\u8bfb\u53d6", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "irate(node_disk_write_time_seconds_total{instance=~\"$node\"}[$interval]) / irate(node_disk_writes_completed_total{instance=~\"$node\"}[$interval])", "format": "time_series", "hide": false, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "{{device}}_\u5199\u5165", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "irate(node_disk_io_time_seconds_total{instance=~\"$node\"}[$interval])", "format": "time_series", "hide": true, "interval": "", "intervalFactor": 1, "legendFormat": "{{device}}", "refId": "A", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "irate(node_disk_io_time_weighted_seconds_total{instance=~\"$node\"}[$interval])", "format": "time_series", "hide": true, "interval": "", "intervalFactor": 1, "legendFormat": "{{device}}_\u52a0\u6743", "refId": "D" } ], "title": "\u6bcf\u6b21IO\u8bfb\u5199\u7684\u8017\u65f6\uff08\u53c2\u8003\uff1a\u5c0f\u4e8e100ms\uff09", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "Reads completed: \u6bcf\u4e2a\u78c1\u76d8\u5206\u533a\u6bcf\u79d2\u8bfb\u5b8c\u6210\u6b21\u6570\n\nWrites completed: \u6bcf\u4e2a\u78c1\u76d8\u5206\u533a\u6bcf\u79d2\u5199\u5b8c\u6210\u6b21\u6570\n\nIO now \u6bcf\u4e2a\u78c1\u76d8\u5206\u533a\u6bcf\u79d2\u6b63\u5728\u5904\u7406\u7684\u8f93\u5165/\u8f93\u51fa\u8bf7\u6c42\u6570", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "\u8bfb\u53d6\uff08-\uff09/\u5199\u5165\uff08+\uff09I/O ops/sec", "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": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byName", "options": "vda_write" }, "properties": [ { "id": "color", "value": { "fixedColor": "#6ED0E0", "mode": "fixed" } } ] }, { "matcher": { "id": "byRegexp", "options": "/.*_\u8bfb\u53d6$/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] }, { "matcher": { "id": "byValue", "options": { "op": "gte", "reducer": "allIsZero", "value": 0 } }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": true, "tooltip": true, "viz": false } } ] }, { "matcher": { "id": "byValue", "options": { "op": "gte", "reducer": "allIsNull", "value": 0 } }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": true, "tooltip": true, "viz": false } } ] } ] }, "gridPos": { "h": 8, "w": 6, "x": 6, "y": 42 }, "id": 161, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "maxHeight": 600, "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "irate(node_disk_reads_completed_total{instance=~\"$node\"}[$interval])", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "{{device}}_\u8bfb\u53d6", "refId": "A", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "irate(node_disk_writes_completed_total{instance=~\"$node\"}[$interval])", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "{{device}}_\u5199\u5165", "refId": "B", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "node_disk_io_now{instance=~\"$node\"}", "format": "time_series", "hide": true, "interval": "", "intervalFactor": 1, "legendFormat": "{{device}}", "refId": "C" } ], "title": "\u78c1\u76d8\u8bfb\u5199\u901f\u7387\uff08IOPS\uff09", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "Read bytes \u6bcf\u4e2a\u78c1\u76d8\u5206\u533a\u6bcf\u79d2\u8bfb\u53d6\u7684\u6bd4\u7279\u6570\nWritten bytes \u6bcf\u4e2a\u78c1\u76d8\u5206\u533a\u6bcf\u79d2\u5199\u5165\u7684\u6bd4\u7279\u6570", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "\u8bfb\u53d6\uff08-\uff09/\u5199\u5165\uff08+\uff09", "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": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "Bps" }, "overrides": [ { "matcher": { "id": "byName", "options": "vda_write" }, "properties": [ { "id": "color", "value": { "fixedColor": "#6ED0E0", "mode": "fixed" } } ] }, { "matcher": { "id": "byRegexp", "options": "/.*_\u8bfb\u53d6$/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] }, { "matcher": { "id": "byValue", "options": { "op": "gte", "reducer": "allIsZero", "value": 0 } }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": true, "tooltip": true, "viz": false } } ] }, { "matcher": { "id": "byValue", "options": { "op": "gte", "reducer": "allIsNull", "value": 0 } }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": true, "tooltip": true, "viz": false } } ] } ] }, "gridPos": { "h": 8, "w": 6, "x": 12, "y": 42 }, "id": 168, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "maxHeight": 600, "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "irate(node_disk_read_bytes_total{instance=~\"$node\"}[$interval])", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "{{device}}_\u8bfb\u53d6", "refId": "A", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "irate(node_disk_written_bytes_total{instance=~\"$node\"}[$interval])", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "{{device}}_\u5199\u5165", "refId": "B", "step": 10 } ], "title": "\u6bcf\u79d2\u78c1\u76d8\u8bfb\u5199\u5bb9\u91cf", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "\u6bcf\u4e00\u79d2\u949f\u7684\u81ea\u7136\u65f6\u95f4\u5185\uff0c\u82b1\u8d39\u5728I/O\u4e0a\u7684\u8017\u65f6\u3002\uff08wall-clock time\uff09\n\nnode_disk_io_time_seconds_total\uff1a\n\u78c1\u76d8\u82b1\u8d39\u5728\u8f93\u5165/\u8f93\u51fa\u64cd\u4f5c\u4e0a\u7684\u79d2\u6570\u3002\u8be5\u503c\u4e3a\u7d2f\u52a0\u503c\u3002\uff08Milliseconds Spent Doing I/Os\uff09\n\nirate(node_disk_io_time_seconds_total[1m])\uff1a\n\u8ba1\u7b97\u6bcf\u79d2\u7684\u901f\u7387\uff1a(last\u503c-last\u524d\u4e00\u4e2a\u503c)/\u65f6\u95f4\u6233\u5dee\u503c\uff0c\u5373\uff1a1\u79d2\u949f\u5185\u78c1\u76d8\u82b1\u8d39\u5728I/O\u64cd\u4f5c\u7684\u65f6\u95f4\u5360\u6bd4\u3002", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "percentunit" }, "overrides": [ { "matcher": { "id": "byName", "options": "Idle - Waiting for something to happen" }, "properties": [ { "id": "color", "value": { "fixedColor": "#052B51", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "guest" }, "properties": [ { "id": "color", "value": { "fixedColor": "#9AC48A", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "idle" }, "properties": [ { "id": "color", "value": { "fixedColor": "#052B51", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "iowait" }, "properties": [ { "id": "color", "value": { "fixedColor": "#EAB839", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "irq" }, "properties": [ { "id": "color", "value": { "fixedColor": "#BF1B00", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "nice" }, "properties": [ { "id": "color", "value": { "fixedColor": "#C15C17", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "sdb_\u6bcf\u79d2I/O\u64cd\u4f5c%" }, "properties": [ { "id": "color", "value": { "fixedColor": "#d683ce", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "softirq" }, "properties": [ { "id": "color", "value": { "fixedColor": "#E24D42", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "steal" }, "properties": [ { "id": "color", "value": { "fixedColor": "#FCE2DE", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "system" }, "properties": [ { "id": "color", "value": { "fixedColor": "#508642", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "user" }, "properties": [ { "id": "color", "value": { "fixedColor": "#5195CE", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "\u78c1\u76d8\u82b1\u8d39\u5728I/O\u64cd\u4f5c\u5360\u6bd4" }, "properties": [ { "id": "color", "value": { "fixedColor": "#ba43a9", "mode": "fixed" } } ] }, { "matcher": { "id": "byValue", "options": { "op": "gte", "reducer": "allIsZero", "value": 0 } }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": true, "tooltip": true, "viz": false } } ] }, { "matcher": { "id": "byValue", "options": { "op": "gte", "reducer": "allIsNull", "value": 0 } }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": true, "tooltip": true, "viz": false } } ] } ] }, "gridPos": { "h": 8, "w": 6, "x": 18, "y": 42 }, "id": 175, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "maxHeight": 600, "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "irate(node_disk_io_time_seconds_total{instance=~\"$node\"}[$interval])", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "{{device}}_\u6bcf\u79d2I/O\u64cd\u4f5c%", "refId": "C" } ], "title": "\u6bcf1\u79d2\u5185I/O\u64cd\u4f5c\u8017\u65f6\u5360\u6bd4\uff08I/O Util\uff09", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "Sockets_used - \u5df2\u4f7f\u7528\u7684\u6240\u6709\u534f\u8bae\u5957\u63a5\u5b57\u603b\u91cf\n\nCurrEstab - \u5f53\u524d\u72b6\u6001\u4e3a ESTABLISHED \u6216 CLOSE-WAIT \u7684 TCP \u8fde\u63a5\u6570\n\nTCP_alloc - \u5df2\u5206\u914d\uff08\u5df2\u5efa\u7acb\u3001\u5df2\u7533\u8bf7\u5230sk_buff\uff09\u7684TCP\u5957\u63a5\u5b57\u6570\u91cf\n\nTCP_tw - \u7b49\u5f85\u5173\u95ed\u7684TCP\u8fde\u63a5\u6570\n\nUDP_inuse - \u6b63\u5728\u4f7f\u7528\u7684 UDP \u5957\u63a5\u5b57\u6570\u91cf\n\nRetransSegs - TCP \u91cd\u4f20\u62a5\u6587\u6570\n\nOutSegs - TCP \u53d1\u9001\u7684\u62a5\u6587\u6570\n\nInSegs - TCP \u63a5\u6536\u7684\u62a5\u6587\u6570", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "series", "axisLabel": "CurrEstab", "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": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byName", "options": "TCP_alloc" }, "properties": [ { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } } ] }, { "matcher": { "id": "byRegexp", "options": "/.*Sockets_used/" }, "properties": [ { "id": "color", "value": { "fixedColor": "#E02F44", "mode": "fixed" } }, { "id": "custom.lineWidth", "value": 1 }, { "id": "custom.axisLabel", "value": "\u5df2\u4f7f\u7528\u7684\u6240\u6709\u534f\u8bae\u5957\u63a5\u5b57\u603b\u91cf" }, { "id": "custom.showPoints", "value": "always" } ] } ] }, "gridPos": { "h": 8, "w": 16, "x": 0, "y": 50 }, "id": 158, "interval": "", "options": { "legend": { "calcs": [ "last", "max" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Max", "sortDesc": true }, "tooltip": { "maxHeight": 600, "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.0.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "node_netstat_Tcp_CurrEstab{instance=~\"$node\"}", "format": "time_series", "hide": false, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "CurrEstab", "refId": "A", "step": 20 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "node_sockstat_TCP_tw{instance=~\"$node\"}", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "TCP_tw", "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "node_sockstat_sockets_used{instance=~\"$node\"}", "hide": false, "interval": "2m", "intervalFactor": 1, "legendFormat": "Sockets_used", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "node_sockstat_UDP_inuse{instance=~\"$node\"}", "interval": "", "legendFormat": "UDP_inuse", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "node_sockstat_TCP_alloc{instance=~\"$node\"}", "interval": "", "legendFormat": "TCP_alloc", "refId": "E" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "irate(node_netstat_Tcp_PassiveOpens{instance=~\"$node\"}[$interval])", "hide": true, "interval": "", "legendFormat": "{{instance}}_Tcp_PassiveOpens", "refId": "G" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "irate(node_netstat_Tcp_ActiveOpens{instance=~\"$node\"}[$interval])", "hide": true, "interval": "", "legendFormat": "{{instance}}_Tcp_ActiveOpens", "refId": "F" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "irate(node_netstat_Tcp_InSegs{instance=~\"$node\"}[$interval])", "interval": "", "legendFormat": "Tcp_InSegs", "refId": "H" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "irate(node_netstat_Tcp_OutSegs{instance=~\"$node\"}[$interval])", "interval": "", "legendFormat": "Tcp_OutSegs", "refId": "I" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "irate(node_netstat_Tcp_RetransSegs{instance=~\"$node\"}[$interval])", "hide": false, "interval": "", "legendFormat": "Tcp_RetransSegs", "refId": "J" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "irate(node_netstat_TcpExt_ListenDrops{instance=~\"$node\"}[$interval])", "hide": true, "interval": "", "legendFormat": "", "refId": "K" } ], "title": "\u7f51\u7edcSocket\u8fde\u63a5\u4fe1\u606f", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "\u4e0a\u4f20\uff08-\uff09/\u4e0b\u8f7d\uff08+\uff09", "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": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "bps" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/.*_out\u4e0a\u4f20$/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" }, { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } } ] }, { "matcher": { "id": "byValue", "options": { "op": "gte", "reducer": "allIsZero", "value": 0 } }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": true, "tooltip": true, "viz": false } } ] }, { "matcher": { "id": "byValue", "options": { "op": "gte", "reducer": "allIsNull", "value": 0 } }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": true, "tooltip": true, "viz": false } } ] }, { "matcher": { "id": "byRegexp", "options": "/.*_in\u4e0b\u8f7d$/" }, "properties": [ { "id": "color", "value": { "fixedColor": "yellow", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 8, "w": 8, "x": 16, "y": 50 }, "id": 157, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "maxHeight": 600, "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.0.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "irate(node_network_receive_bytes_total{instance=~\"$node\",device=~\"$device\"}[$interval])*8", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "{{device}}_in\u4e0b\u8f7d", "refId": "A", "step": 4 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "irate(node_network_transmit_bytes_total{instance=~\"$node\",device=~\"$device\"}[$interval])*8", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "{{device}}_out\u4e0a\u4f20", "refId": "B", "step": 4 } ], "title": "\u6bcf\u79d2\u7f51\u7edc\u5e26\u5bbd\u4f7f\u7528$device", "type": "timeseries" } ], "title": "\ud83e\uddee\u8d44\u6e90\u660e\u7ec6\uff1a\u3010$show_hostname\u3011\u3010$node\u3011", "type": "row" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 51 }, "title": "K8S Cluster", "type": "row", "panels": [], "id": 20 }, { "collapsed": false, "datasource": { "type": "prometheus", "uid": "WAYOn0FGz" }, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 52 }, "id": 21, "panels": [], "title": "\u8282\u70b9\u8d44\u6e90\u603b\u89c8\uff1a\u6240\u9009\u8282\u70b9:\u3010$Node\u3011", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "decimals": 1, "mappings": [], "max": 1, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 0.8 }, { "color": "red", "value": 0.9 } ] }, "unit": "percentunit" }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 0, "y": 53 }, "id": 22, "options": { "displayMode": "basic", "maxVizHeight": 300, "minVizHeight": 10, "minVizWidth": 0, "namePlacement": "auto", "orientation": "vertical", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "showUnfilled": false, "sizing": "auto", "text": {}, "valueMode": "color" }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(container_memory_working_set_bytes{origin_prometheus=~\"$origin_prometheus\",container!=\"\",node=~\"^$Node$\"}) / sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\", node=~\"^$Node$\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "legendFormat": "\u5185\u5b58\u4f7f\u7528\u7387", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(kube_pod_container_resource_requests{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\",node=~\"^$Node$\"}) / sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\", node=~\"^$Node$\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "legendFormat": "\u5185\u5b58\u8bf7\u6c42\u7387", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(kube_pod_container_resource_limits{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\",node=~\"^$Node$\"}) / sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\", node=~\"^$Node$\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "\u5185\u5b58\u9650\u5236\u7387", "refId": "B", "step": 10 } ], "title": "\u8282\u70b9\u5185\u5b58\u6bd4\u4f8b", "type": "bargauge" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "decimals": 1, "mappings": [], "max": 1, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 0.7 }, { "color": "red", "value": 0.9 } ] }, "unit": "percentunit" }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 4, "y": 53 }, "id": 23, "options": { "displayMode": "basic", "maxVizHeight": 300, "minVizHeight": 10, "minVizWidth": 0, "namePlacement": "auto", "orientation": "vertical", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "showUnfilled": false, "sizing": "auto", "text": {}, "valueMode": "color" }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum (irate(container_cpu_usage_seconds_total{origin_prometheus=~\"$origin_prometheus\",container!=\"\",node=~\"^$Node$\"}[2m])) / sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\", node=~\"^$Node$\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "legendFormat": "CPU\u4f7f\u7528\u7387", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(kube_pod_container_resource_requests{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\",node=~\"^$Node$\"}) / sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\", node=~\"^$Node$\"})", "format": "time_series", "instant": true, "interval": "", "legendFormat": "CPU\u8bf7\u6c42\u7387", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(kube_pod_container_resource_limits{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\",node=~\"^$Node$\"}) / sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\", node=~\"^$Node$\"})", "format": "time_series", "instant": true, "interval": "", "legendFormat": "CPU\u9650\u5236\u7387", "refId": "B" } ], "title": "\u8282\u70b9CPU\u6bd4\u4f8b", "type": "bargauge" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "\u96c6\u7fa4\u8282\u70b9\u6570\uff0c\u8282\u70b9POD\u6570\uff0c\u8282\u70b9POD\u4e0a\u9650", "fieldConfig": { "defaults": { "mappings": [], "max": 100, "min": 1, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 1000 }, { "color": "red", "value": 2000 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 8, "y": 53 }, "id": 24, "options": { "displayMode": "basic", "maxVizHeight": 300, "minVizHeight": 10, "minVizWidth": 0, "namePlacement": "auto", "orientation": "vertical", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "showUnfilled": false, "sizing": "auto", "text": {}, "valueMode": "color" }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "count(kube_node_info{origin_prometheus=~\"$origin_prometheus\"})", "instant": true, "interval": "", "legendFormat": "\u8282\u70b9\u6570", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "count(kube_pod_info{origin_prometheus=~\"$origin_prometheus\",created_by_kind!~\"|Job\",node=~\"^$Node$\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "Pod\u6570", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"pods\", unit=\"integer\",node=~\"^$Node$\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "\u4e0a\u9650Pod", "refId": "C" } ], "title": "\u8282\u70b9\u4e0ePod", "type": "bargauge" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "align": "center", "cellOptions": { "type": "color-text" }, "filterable": false, "inspect": false }, "mappings": [], "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byName", "options": "\u7a7a\u95f4" }, "properties": [ { "id": "custom.width", "value": 59 } ] }, { "matcher": { "id": "byName", "options": "Pod" }, "properties": [ { "id": "custom.width", "value": 21 } ] }, { "matcher": { "id": "byName", "options": "SVC" }, "properties": [ { "id": "custom.width", "value": 7 } ] }, { "matcher": { "id": "byName", "options": "\u5fae\u670d\u52a1" }, "properties": [ { "id": "custom.width", "value": 4 } ] }, { "matcher": { "id": "byName", "options": "\u914d\u7f6e" }, "properties": [ { "id": "custom.width", "value": 16 } ] }, { "matcher": { "id": "byName", "options": "\u5bc6\u7801" }, "properties": [ { "id": "custom.width", "value": 33 } ] } ] }, "gridPos": { "h": 8, "w": 5, "x": 11, "y": 53 }, "id": 25, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": true }, "showHeader": true, "sortBy": [ { "desc": true, "displayName": "\u5fae\u670d\u52a1" } ] }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "expr": "count(kube_pod_info{origin_prometheus=~\"$origin_prometheus\",node=~\"^$Node$\"}) by (namespace)", "format": "table", "instant": true, "interval": "", "legendFormat": "", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "expr": "count(kube_service_info{origin_prometheus=~\"$origin_prometheus\"}) by(namespace)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "expr": "count by (namespace)({__name__=~\"kube_deployment_metadata_generation|kube_daemonset_metadata_generation|kube_statefulset_metadata_generation\",origin_prometheus=~\"$origin_prometheus\"})", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "__auto", "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "expr": "count(kube_configmap_info{origin_prometheus=~\"$origin_prometheus\"}) by(namespace)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "configmap", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "expr": "count(kube_secret_info{origin_prometheus=~\"$origin_prometheus\"}) by(namespace)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "secret", "refId": "E" } ], "title": "\u547d\u540d\u7a7a\u95f4\u8d44\u6e90\u7edf\u8ba1", "transformations": [ { "id": "seriesToColumns", "options": { "byField": "namespace" } }, { "id": "organize", "options": { "excludeByName": { "Time": true, "Time 1": true, "Time 2": true, "Time 3": true, "Time 4": true, "Time 5": true }, "includeByName": {}, "indexByName": { "Time 1": 2, "Time 2": 4, "Time 3": 6, "Value #A": 3, "Value #C": 5, "Value #D": 1, "namespace": 0 }, "renameByName": { "Time 1": "", "Time 2": "", "Value #A": "Pod", "Value #B": "\u914d\u7f6e", "Value #C": "SVC", "Value #D": "\u5fae\u670d\u52a1", "Value #E": "\u5bc6\u7801", "namespace": "\u7a7a\u95f4" } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "series", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 30, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" }, "lineWidth": 2, "pointSize": 4, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "binbps" }, "overrides": [] }, "gridPos": { "h": 8, "w": 8, "x": 16, "y": 53 }, "id": 26, "options": { "legend": { "calcs": [ "max" ], "displayMode": "list", "placement": "bottom", "showLegend": true, "width": 200 }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum (irate(container_network_receive_bytes_total{origin_prometheus=~\"$origin_prometheus\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}[2m]))*8", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "\u63a5\u6536", "metric": "network", "range": true, "refId": "A", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum (irate(container_network_transmit_bytes_total{origin_prometheus=~\"$origin_prometheus\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}[2m]))*8", "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u53d1\u9001", "metric": "network", "refId": "B", "step": 10 } ], "title": "$NameSpace\uff1a\u7f51\u7edc\u603b\u89c8\uff08\u53ef\u5173\u8054\u8282\u70b9\u4e0e\u547d\u540d\u7a7a\u95f4\uff09", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "decimals": 1, "mappings": [], "max": 2000000000000, "min": 1, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 100000000000 }, { "color": "red", "value": 2000000000000 } ] }, "unit": "bytes" }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 0, "y": 57 }, "id": 27, "options": { "displayMode": "basic", "maxVizHeight": 300, "minVizHeight": 10, "minVizWidth": 0, "namePlacement": "auto", "orientation": "vertical", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "showUnfilled": false, "sizing": "auto", "text": {}, "valueMode": "color" }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\", node=~\"^$Node$\"})", "instant": true, "interval": "", "legendFormat": "\u603b\u5185\u5b58", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum (container_memory_working_set_bytes{origin_prometheus=~\"$origin_prometheus\",container!=\"\",node=~\"^$Node$\"})", "instant": true, "interval": "", "legendFormat": "\u4f7f\u7528\u91cf", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum(kube_pod_container_resource_requests{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\",node=~\"^$Node$\"})", "instant": true, "interval": "", "legendFormat": "\u8bf7\u6c42\u91cf", "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum(kube_pod_container_resource_limits{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\",node=~\"^$Node$\"})", "instant": true, "interval": "", "legendFormat": "\u9650\u5236\u91cf", "refId": "B" } ], "title": "\u8282\u70b9\u5185\u5b58\u4fe1\u606f", "type": "bargauge" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "decimals": 1, "mappings": [], "max": 500, "min": 1, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "#EAB839", "value": 500 }, { "color": "red", "value": 1000 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 4, "y": 57 }, "id": 28, "options": { "displayMode": "basic", "maxVizHeight": 300, "minVizHeight": 10, "minVizWidth": 0, "namePlacement": "auto", "orientation": "vertical", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "showUnfilled": false, "sizing": "auto", "text": {}, "valueMode": "color" }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\", node=~\"^$Node$\"})", "instant": true, "interval": "", "legendFormat": "\u603b\u6838\u6570", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum (irate(container_cpu_usage_seconds_total{origin_prometheus=~\"$origin_prometheus\",id=\"/\",node=~\"^$Node$\"}[2m]))", "instant": true, "interval": "", "legendFormat": "\u4f7f\u7528\u91cf", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum(kube_pod_container_resource_requests{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\",node=~\"^$Node$\"})", "instant": true, "interval": "", "legendFormat": "\u8bf7\u6c42\u91cf", "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum(kube_pod_container_resource_limits{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\",node=~\"^$Node$\"})", "instant": true, "interval": "", "legendFormat": "\u9650\u5236\u91cf", "refId": "B" } ], "title": "\u8282\u70b9CPU\u6838\u6570", "type": "bargauge" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "decimals": 1, "mappings": [], "max": 8000000000000, "min": 1, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "#EAB839", "value": 5000000000000 }, { "color": "red", "value": 10000000000000 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "\u4f7f\u7528\u7387" }, "properties": [ { "id": "unit", "value": "percentunit" }, { "id": "max" }, { "id": "min", "value": 0 }, { "id": "thresholds", "value": { "mode": "percentage", "steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 80 }, { "color": "red", "value": 90 } ] } } ] }, { "matcher": { "id": "byName", "options": "\u603b\u91cf" }, "properties": [ { "id": "decimals", "value": 0 } ] } ] }, "gridPos": { "h": 4, "w": 3, "x": 8, "y": 57 }, "id": 29, "options": { "displayMode": "basic", "maxVizHeight": 300, "minVizHeight": 10, "minVizWidth": 0, "namePlacement": "auto", "orientation": "vertical", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "showUnfilled": false, "sizing": "auto", "text": {}, "valueMode": "color" }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "sum (container_fs_usage_bytes{origin_prometheus=~\"$origin_prometheus\",device=~\"^/dev/.*$\",id=\"/\",node=~\"^$Node$\"}) / sum (container_fs_limit_bytes{origin_prometheus=~\"$origin_prometheus\",device=~\"^/dev/.*$\",id=\"/\",node=~\"^$Node$\"})", "instant": true, "interval": "", "legendFormat": "\u4f7f\u7528\u7387", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "sum (container_fs_usage_bytes{origin_prometheus=~\"$origin_prometheus\",device=~\"^/dev/.*$\",id=\"/\",node=~\"^$Node$\"})", "instant": true, "interval": "", "legendFormat": "\u4f7f\u7528\u91cf", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "sum (container_fs_limit_bytes{origin_prometheus=~\"$origin_prometheus\",device=~\"^/dev/.*$\",id=\"/\",node=~\"^$Node$\"})", "instant": true, "interval": "", "legendFormat": "\u603b\u91cf", "refId": "B" } ], "title": "\u8282\u70b9\u5b58\u50a8\u4fe1\u606f", "type": "bargauge" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/\u5f02\u5e38.*/" }, "properties": [ { "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 2, "w": 24, "x": 0, "y": 61 }, "id": 30, "maxPerRow": 2, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "auto", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "showPercentChange": false, "text": {}, "textMode": "auto", "wideLayout": true }, "pluginVersion": "10.4.1", "repeat": "origin_prometheus", "repeatDirection": "v", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count({__name__=~\"kube_deployment_metadata_generation|kube_daemonset_metadata_generation|kube_statefulset_metadata_generation\",origin_prometheus=~\"$origin_prometheus\"})", "hide": false, "instant": true, "legendFormat": "\u5de5\u4f5c\u8d1f\u8f7d", "range": false, "refId": "F" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(kube_pod_info{origin_prometheus=~\"$origin_prometheus\"})", "hide": false, "instant": true, "legendFormat": "\u603bPod", "range": false, "refId": "E" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count by(key,origin_prometheus)(kube_node_spec_taint{origin_prometheus=~\"$origin_prometheus\",key=~\"node.kubernetes.io.*\"})", "format": "time_series", "hide": false, "instant": true, "legendFormat": "{{key}}", "range": false, "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count by(origin_prometheus)(kube_node_info{origin_prometheus=~\"$origin_prometheus\"})", "hide": false, "instant": true, "legendFormat": "\u603b\u8282\u70b9", "range": false, "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count by(origin_prometheus)(kube_node_info{origin_prometheus=~\"$origin_prometheus\"}) - count by(origin_prometheus)(kube_node_spec_taint{origin_prometheus=~\"$origin_prometheus\",key!~\"node.kubernetes.io.*\"})", "hide": false, "instant": true, "legendFormat": "\u6b63\u5e38\u8282\u70b9", "range": false, "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count by(key,origin_prometheus)(kube_node_spec_taint{origin_prometheus=~\"$origin_prometheus\",key!~\"node.kubernetes.io.*\"})", "hide": false, "instant": true, "legendFormat": "{{key}}", "range": false, "refId": "A" } ], "transformations": [ { "id": "renameByRegex", "options": { "regex": "(node.kubernetes.io/)(.*)", "renamePattern": "\u5f02\u5e38:$2" } } ], "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 15, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "\u603b\u5185\u5b58" }, "properties": [ { "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } }, { "id": "custom.lineWidth", "value": 2 } ] } ] }, "gridPos": { "h": 5, "w": 8, "x": 0, "y": 63 }, "id": 31, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": false }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\", node=~\"^$Node$\"})", "instant": false, "interval": "", "legendFormat": "\u603b\u5185\u5b58", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum (container_memory_working_set_bytes{origin_prometheus=~\"$origin_prometheus\",container!=\"\",node=~\"^$Node$\"})", "instant": false, "interval": "", "legendFormat": "\u4f7f\u7528\u91cf", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum(kube_pod_container_resource_requests{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\",node=~\"^$Node$\"})", "hide": true, "instant": false, "interval": "", "legendFormat": "\u8bf7\u6c42\u91cf", "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum(kube_pod_container_resource_limits{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\",node=~\"^$Node$\"})", "hide": true, "instant": false, "interval": "", "legendFormat": "\u9650\u5236\u91cf", "refId": "B" } ], "title": "\u5185\u5b58\u4f7f\u7528\u91cf\u3010$Node\u3011", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 15, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byName", "options": "\u603b\u6838\u6570" }, "properties": [ { "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } }, { "id": "custom.lineWidth", "value": 2 } ] } ] }, "gridPos": { "h": 5, "w": 8, "x": 8, "y": 63 }, "id": 32, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": false }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\", node=~\"^$Node$\"})", "instant": false, "interval": "", "legendFormat": "\u603b\u6838\u6570", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum (irate(container_cpu_usage_seconds_total{origin_prometheus=~\"$origin_prometheus\",id=\"/\",node=~\"^$Node$\"}[2m]))", "instant": false, "interval": "", "legendFormat": "\u4f7f\u7528\u91cf", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum(kube_pod_container_resource_requests{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\",node=~\"^$Node$\"})", "hide": true, "instant": false, "interval": "", "legendFormat": "\u8bf7\u6c42\u91cf", "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum(kube_pod_container_resource_limits{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\",node=~\"^$Node$\"})", "hide": true, "instant": true, "interval": "", "legendFormat": "\u9650\u5236\u91cf", "refId": "B" } ], "title": "CPU\u4f7f\u7528\u6838\u3010$Node\u3011", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "\u96c6\u7fa4\u8282\u70b9\u6570\uff0c\u8282\u70b9POD\u6570\uff0c\u8282\u70b9POD\u4e0a\u9650", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "series", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 15, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byName", "options": "\u4e0a\u9650Pod" }, "properties": [ { "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } }, { "id": "custom.lineWidth", "value": 2 } ] }, { "matcher": { "id": "byName", "options": "\u8282\u70b9\u6570" }, "properties": [ { "id": "custom.axisPlacement", "value": "right" }, { "id": "custom.drawStyle", "value": "points" }, { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } }, { "id": "custom.pointSize", "value": 3 } ] } ] }, "gridPos": { "h": 5, "w": 8, "x": 16, "y": 63 }, "id": 33, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "count(kube_node_info{origin_prometheus=~\"$origin_prometheus\"})", "hide": false, "instant": false, "interval": "", "legendFormat": "\u8282\u70b9\u6570", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "count(kube_pod_info{origin_prometheus=~\"$origin_prometheus\",created_by_kind!~\"|Job\",node=~\"^$Node$\"})", "hide": false, "instant": false, "interval": "", "legendFormat": "Pod\u6570", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"pods\", unit=\"integer\",node=~\"^$Node$\"})", "hide": false, "instant": false, "interval": "", "legendFormat": "\u4e0a\u9650Pod", "refId": "C" } ], "title": "Pod\u6570\u4e0e\u8282\u70b9\u6570\u3010$Node\u3011", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "percent" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/\u603b\u6838\u6570.*/" }, "properties": [ { "id": "color", "value": { "fixedColor": "#C4162A", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 6, "w": 8, "x": 0, "y": 68 }, "id": 34, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": false }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum (irate(container_cpu_usage_seconds_total{origin_prometheus=~\"$origin_prometheus\",container!=\"\",node=~\"^$Node$\"}[2m]))by (node) / sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\", node=~\"^$Node$\"})by (node)*100", "format": "time_series", "hide": false, "instant": false, "interval": "", "legendFormat": "{{node}}", "refId": "I" } ], "title": "$Node\uff1a\u8282\u70b9CPU\u660e\u7ec6", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 8, "y": 68 }, "id": 35, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": false }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum (container_memory_working_set_bytes{origin_prometheus=~\"$origin_prometheus\",container!=\"\",node=~\"^$Node$\"})by (node) / sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\", node=~\"^$Node$\"})by (node)*100", "format": "time_series", "hide": false, "instant": false, "interval": "", "legendFormat": "{{node}}", "refId": "I" } ], "title": "$Node\uff1a\u8282\u70b9\u5185\u5b58\u660e\u7ec6", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "series", "axisLabel": "\u2190\u6d41\u5165/\u6d41\u51fa\u2192", "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": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "binbps" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/\u6d41\u5165.*/" }, "properties": [ { "id": "custom.transform", "value": "negative-Y" } ] } ] }, "gridPos": { "h": 6, "w": 8, "x": 16, "y": 68 }, "id": 36, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": false }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum (irate(container_network_receive_bytes_total{origin_prometheus=~\"$origin_prometheus\",node=~\"^$Node$\"}[2m]))by (node) *8", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "\u6d41\u5165:{{node}}", "metric": "network", "refId": "A", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum (irate(container_network_transmit_bytes_total{origin_prometheus=~\"$origin_prometheus\",node=~\"^$Node$\"}[2m]))by (node) *8", "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u6d41\u51fa:{{node}}", "metric": "network", "refId": "B", "step": 10 } ], "title": "$Node\uff1a\u8282\u70b9\u7f51\u7edc\u603b\u89c8", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "center", "cellOptions": { "type": "auto" }, "filterable": false, "inspect": false }, "mappings": [], "max": 1, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "CPU\u9650\u5236" }, "properties": [ { "id": "custom.width", "value": 76 } ] }, { "matcher": { "id": "byName", "options": "\u5185\u5b58\u4f7f\u7528" }, "properties": [ { "id": "custom.width", "value": 71 } ] }, { "matcher": { "id": "byName", "options": "\u5185\u5b58\u9650\u5236" }, "properties": [ { "id": "custom.width", "value": 74 } ] }, { "matcher": { "id": "byName", "options": "\u78c1\u76d8\u4f7f\u7528" }, "properties": [ { "id": "custom.width", "value": 74 } ] }, { "matcher": { "id": "byRegexp", "options": ".*%" }, "properties": [ { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "color", "value": { "mode": "continuous-GrYlRd" } }, { "id": "custom.width", "value": 85 }, { "id": "unit", "value": "percentunit" }, { "id": "decimals", "value": 0 } ] }, { "matcher": { "id": "byRegexp", "options": "(\u5185\u5b58\u4f7f\u7528|\u5185\u5b58\u603b|\u5185\u5b58\u8bf7\u6c42|\u5185\u5b58\u9650\u5236|\u78c1\u76d8\u4f7f\u7528|\u78c1\u76d8\u603b)" }, "properties": [ { "id": "unit", "value": "bytes" } ] }, { "matcher": { "id": "byName", "options": "\u8282\u70b9" }, "properties": [ { "id": "custom.width", "value": 96 } ] }, { "matcher": { "id": "byName", "options": "\u5185\u5b58\u8bf7\u6c42" }, "properties": [ { "id": "custom.width", "value": 76 } ] }, { "matcher": { "id": "byName", "options": "CPU\u8bf7\u6c42" }, "properties": [ { "id": "custom.width", "value": 75 } ] }, { "matcher": { "id": "byRegexp", "options": "(CPU\u603b|\u5185\u5b58\u603b|\u78c1\u76d8\u603b|Pod\u4e0a\u9650)" }, "properties": [ { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "blue" } ] } } ] }, { "matcher": { "id": "byName", "options": "Pod\u4e0a\u9650" }, "properties": [ { "id": "custom.width", "value": 66 } ] }, { "matcher": { "id": "byRegexp", "options": "CPU\u6838\u4f7f\u7528$|\u5185\u5b58\u4f7f\u7528$|\u78c1\u76d8\u4f7f\u7528$|Pod\u6570" }, "properties": [ { "id": "custom.cellOptions", "value": { "type": "color-text" } }, { "id": "color", "value": { "fixedColor": "orange", "mode": "fixed" } } ] }, { "matcher": { "id": "byRegexp", "options": "/.*\u603b/" }, "properties": [ { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } }, { "id": "decimals", "value": 0 } ] }, { "matcher": { "id": "byName", "options": "Pod\u6570" }, "properties": [ { "id": "custom.width", "value": 58 } ] }, { "matcher": { "id": "byName", "options": "CPU\u6838\u603b" }, "properties": [ { "id": "custom.width", "value": 69 } ] }, { "matcher": { "id": "byName", "options": "\u5185\u5b58\u603b" }, "properties": [ { "id": "custom.width", "value": 75 } ] }, { "matcher": { "id": "byName", "options": "\u78c1\u76d8\u603b" }, "properties": [ { "id": "custom.width", "value": 74 } ] }, { "matcher": { "id": "byName", "options": "CPU\u6838\u4f7f\u7528" }, "properties": [ { "id": "custom.width", "value": 74 } ] }, { "matcher": { "id": "byName", "options": "\u5185\u5b58\u4f7f\u7528%" }, "properties": [ { "id": "custom.width", "value": 102 } ] } ] }, "gridPos": { "h": 11, "w": 24, "x": 0, "y": 74 }, "id": 37, "options": { "cellHeight": "sm", "footer": { "countRows": false, "enablePagination": true, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [ { "desc": true, "displayName": "\u5185\u5b58\u4f7f\u7528%" } ] }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "count(kube_pod_info{origin_prometheus=~\"$origin_prometheus\",created_by_kind!~\"|Job\",node=~\"^$Node$\"}) by (node)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "pod\u6570", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "kube_node_status_condition{origin_prometheus=~\"$origin_prometheus\",status=\"true\",node=~\"^$Node$\"} == 1", "format": "table", "hide": true, "instant": true, "interval": "", "legendFormat": "\u72b6\u6001", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum (irate(container_cpu_usage_seconds_total{origin_prometheus=~\"$origin_prometheus\",container!=\"\",node=~\"^$Node$\"}[2m])) by (node)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "I" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\", node=~\"^$Node$\"} - 0", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(kube_pod_container_resource_requests{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\",node=~\"^$Node$\"}) by (node)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "E" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(kube_pod_container_resource_limits{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\",node=~\"^$Node$\"}) by (node)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "F" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum (container_memory_working_set_bytes{origin_prometheus=~\"$origin_prometheus\",container!=\"\",node=~\"^$Node$\"}) by (node)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "J" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\", node=~\"^$Node$\"}) by (node) - 0", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(kube_pod_container_resource_requests{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\",node=~\"^$Node$\"}) by (node)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "G" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(kube_pod_container_resource_limits{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\",node=~\"^$Node$\"}) by (node)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "H" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum (container_fs_usage_bytes{origin_prometheus=~\"$origin_prometheus\",device=~\"^/dev/.*$\",id=\"/\",node=~\"^$Node$\"}) by (node)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "K" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum (container_fs_limit_bytes{origin_prometheus=~\"$origin_prometheus\",device=~\"^/dev/.*$\",id=\"/\",node=~\"^$Node$\"}) by (node)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "L" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum (container_memory_working_set_bytes{origin_prometheus=~\"$origin_prometheus\",container!=\"\",node=~\"^$Node$\"})by (node) / sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\", node=~\"^$Node$\"})by (node)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u5185\u5b58\u4f7f\u7528%", "refId": "M" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(kube_pod_container_resource_requests{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\",node=~\"^$Node$\"})by (node) / sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\", node=~\"^$Node$\"})by (node)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u5185\u5b58\u8bf7\u6c42%", "refId": "N" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(kube_pod_container_resource_limits{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\",node=~\"^$Node$\"})by (node) / sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\", node=~\"^$Node$\"})by (node)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u5185\u5b58\u9650\u5236%", "refId": "O" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum (irate(container_cpu_usage_seconds_total{origin_prometheus=~\"$origin_prometheus\",container!=\"\",node=~\"^$Node$\"}[2m]))by (node) / sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\", node=~\"^$Node$\"})by (node)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "CPU\u4f7f\u7528%", "refId": "P" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(kube_pod_container_resource_requests{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\",node=~\"^$Node$\"})by (node) / sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\", node=~\"^$Node$\"})by (node)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "CPU\u8bf7\u6c42%", "refId": "Q" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(kube_pod_container_resource_limits{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\",node=~\"^$Node$\"})by (node) / sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\", node=~\"^$Node$\"})by (node)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u5185\u5b58\u9650\u5236%", "refId": "R" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum (container_fs_usage_bytes{origin_prometheus=~\"$origin_prometheus\",device=~\"^/dev/.*$\",id=\"/\",node=~\"^$Node$\"})by (node) / sum (container_fs_limit_bytes{origin_prometheus=~\"$origin_prometheus\",device=~\"^/dev/.*$\",id=\"/\",node=~\"^$Node$\"})by (node)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u78c1\u76d8\u4f7f\u7528%", "refId": "S" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(kube_node_status_allocatable{origin_prometheus=~\"$origin_prometheus\",resource=\"pods\", unit=\"integer\",node=~\"^$Node$\"})by (node)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "Pod\u4e0a\u9650", "refId": "T" } ], "title": "$Node\uff1a\u8282\u70b9\u4fe1\u606f\u660e\u7ec6", "transformations": [ { "id": "merge", "options": {} }, { "id": "organize", "options": { "excludeByName": { "Time": true, "Time 1": true, "Time 10": true, "Time 11": true, "Time 12": true, "Time 13": true, "Time 14": true, "Time 15": true, "Time 16": true, "Time 17": true, "Time 18": true, "Time 19": true, "Time 2": true, "Time 20": true, "Time 3": true, "Time 4": true, "Time 5": true, "Time 6": true, "Time 7": true, "Time 8": true, "Time 9": true, "Value #B": true, "Value #E": false, "Value #F": false, "__name__": true, "app_kubernetes_io_name": true, "app_kubernetes_io_name 1": true, "app_kubernetes_io_name 2": true, "app_kubernetes_io_name 3": true, "app_kubernetes_io_version": true, "app_kubernetes_io_version 1": true, "app_kubernetes_io_version 2": true, "app_kubernetes_io_version 3": true, "condition": true, "instance": true, "instance 1": true, "instance 2": true, "instance 3": true, "job": true, "job 1": true, "job 2": true, "job 3": true, "k8s_namespace": true, "k8s_namespace 1": true, "k8s_namespace 2": true, "k8s_namespace 3": true, "k8s_sname": true, "k8s_sname 1": true, "k8s_sname 2": true, "k8s_sname 3": true, "origin_prometheus": true, "origin_prometheus 1": true, "origin_prometheus 2": true, "origin_prometheus 3": true, "resource": true, "status": true, "unit": true }, "includeByName": {}, "indexByName": { "Time": 22, "Value #A": 2, "Value #C": 6, "Value #D": 8, "Value #E": 16, "Value #F": 17, "Value #G": 18, "Value #H": 19, "Value #I": 7, "Value #J": 9, "Value #K": 11, "Value #L": 10, "Value #M": 4, "Value #N": 13, "Value #O": 15, "Value #P": 3, "Value #Q": 12, "Value #R": 14, "Value #S": 5, "Value #T": 1, "instance": 23, "job": 24, "node": 0, "origin_prometheus": 25, "resource": 20, "unit": 21 }, "renameByName": { "Value #A": "Pod\u6570", "Value #C": "CPU\u6838\u603b", "Value #D": "\u5185\u5b58\u603b", "Value #E": "CPU\u8bf7\u6c42", "Value #F": "CPU\u9650\u5236", "Value #G": "\u5185\u5b58\u8bf7\u6c42", "Value #H": "\u5185\u5b58\u9650\u5236", "Value #I": "CPU\u6838\u4f7f\u7528", "Value #J": "\u5185\u5b58\u4f7f\u7528", "Value #K": "\u78c1\u76d8\u4f7f\u7528", "Value #L": "\u78c1\u76d8\u603b", "Value #M": "\u5185\u5b58\u4f7f\u7528%", "Value #N": "\u5185\u5b58\u8bf7\u6c42%", "Value #O": "\u5185\u5b58\u9650\u5236%", "Value #P": "CPU\u4f7f\u7528%", "Value #Q": "CPU\u8bf7\u6c42%", "Value #R": "CPU\u9650\u5236%", "Value #S": "\u78c1\u76d8\u4f7f\u7528%", "Value #T": "Pod\u4e0a\u9650", "condition": "\u72b6\u6001", "node": "\u8282\u70b9" } } }, { "id": "filterFieldsByName", "options": {} } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "align": "center", "cellOptions": { "type": "color-background" }, "inspect": false }, "decimals": 0, "links": [], "mappings": [ { "options": { "0": { "color": "red", "index": 0 } }, "type": "value" }, { "options": { "match": "null", "result": { "color": "red", "index": 1 } }, "type": "special" } ], "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "\u4f7f\u7528\u7387" }, "properties": [ { "id": "unit", "value": "percent" }, { "id": "custom.width", "value": 54 }, { "id": "color", "value": { "fixedColor": "purple", "mode": "fixed" } }, { "id": "decimals" }, { "id": "mappings", "value": [ { "options": { "from": 75, "result": { "color": "semi-dark-red", "index": 0 }, "to": 110 }, "type": "range" } ] } ] }, { "matcher": { "id": "byName", "options": "\u6302\u8f7dPod\u6570" }, "properties": [ { "id": "unit", "value": "none" }, { "id": "custom.width", "value": 59 } ] }, { "matcher": { "id": "byName", "options": "\u547d\u540d\u7a7a\u95f4" }, "properties": [ { "id": "custom.width", "value": 58 } ] }, { "matcher": { "id": "byName", "options": "PVC" }, "properties": [ { "id": "custom.width", "value": 94 } ] }, { "matcher": { "id": "byName", "options": "\u4f7f\u7528\u91cf" }, "properties": [ { "id": "custom.width", "value": 57 } ] }, { "matcher": { "id": "byName", "options": "\u603b\u91cf" }, "properties": [ { "id": "custom.width", "value": 54 } ] } ] }, "gridPos": { "h": 8, "w": 6, "x": 0, "y": 85 }, "id": 38, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [ { "desc": true, "displayName": "\u4f7f\u7528\u7387" } ] }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max by (namespace,persistentvolumeclaim) (kubelet_volume_stats_used_bytes{origin_prometheus=~\"$origin_prometheus\"})", "format": "table", "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "{{namespace}}:{{ persistentvolumeclaim }}", "metric": "container_memory_usage:sort_desc", "range": false, "refId": "A", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (namespace,persistentvolumeclaim) (kubelet_volume_stats_available_bytes{origin_prometheus=~\"$origin_prometheus\"}) + max by (namespace,persistentvolumeclaim) (kubelet_volume_stats_used_bytes{origin_prometheus=~\"$origin_prometheus\"})", "format": "table", "hide": false, "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "__auto", "metric": "container_memory_usage:sort_desc", "range": false, "refId": "B", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max by (namespace,persistentvolumeclaim) (kubelet_volume_stats_used_bytes{origin_prometheus=~\"$origin_prometheus\"}) /(min by (namespace,persistentvolumeclaim) (kubelet_volume_stats_available_bytes{origin_prometheus=~\"$origin_prometheus\"}) + max by (namespace,persistentvolumeclaim) (kubelet_volume_stats_used_bytes{origin_prometheus=~\"$origin_prometheus\"}))*100", "format": "table", "hide": false, "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "{{namespace}}:{{ persistentvolumeclaim }}", "metric": "container_memory_usage:sort_desc", "range": false, "refId": "C", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count by (namespace,persistentvolumeclaim)(kube_pod_spec_volumes_persistentvolumeclaims_info{origin_prometheus=~\"$origin_prometheus\"})", "format": "table", "hide": false, "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "__auto", "metric": "container_memory_usage:sort_desc", "range": false, "refId": "D", "step": 10 } ], "title": "PVC\u5b58\u50a8\u4f7f\u7528\u60c5\u51b5", "transformations": [ { "id": "merge", "options": {} }, { "id": "organize", "options": { "excludeByName": { "Time": true }, "includeByName": {}, "indexByName": {}, "renameByName": { "Value #A": "\u4f7f\u7528\u91cf", "Value #B": "\u603b\u91cf", "Value #C": "\u4f7f\u7528\u7387", "Value #D": "\u6302\u8f7dPod\u6570", "namespace": "\u547d\u540d\u7a7a\u95f4", "persistentvolumeclaim": "PVC" } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 8, "w": 9, "x": 6, "y": 85 }, "id": 39, "options": { "legend": { "calcs": [ "last", "max" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Max", "sortDesc": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(irate(container_cpu_usage_seconds_total{origin_prometheus=~\"$origin_prometheus\",container !=\"\",container!=\"POD\"}[2m])) by (namespace)>0.5", "hide": false, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "{{ namespace }}", "metric": "container_cpu", "refId": "A", "step": 10 } ], "title": "\u5404\u547d\u540d\u7a7a\u95f4CPU\u4f7f\u7528\u6838(>0.5)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 0, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [] }, "gridPos": { "h": 8, "w": 9, "x": 15, "y": 85 }, "id": 40, "options": { "legend": { "calcs": [ "last", "max" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Max", "sortDesc": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum (container_memory_working_set_bytes{origin_prometheus=~\"$origin_prometheus\",container !=\"\",container!=\"POD\"}) by (namespace) > 1*1024*1024*1024", "interval": "", "intervalFactor": 1, "legendFormat": "{{namespace} {{ pod }}", "metric": "container_memory_usage:sort_desc", "range": true, "refId": "A", "step": 10 } ], "title": "\u547d\u540d\u7a7a\u95f4WSS\u5185\u5b58\u4f7f\u7528(>1G)", "type": "timeseries" }, { "collapsed": false, "datasource": { "type": "prometheus", "uid": "WAYOn0FGz" }, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 93 }, "id": 41, "panels": [], "title": "Pod\u8d44\u6e90\u603b\u89c8\uff1a\u6240\u9009Pod:\u3010$Pod\u3011", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "center", "cellOptions": { "type": "auto" }, "filterable": false, "inspect": false }, "displayName": "", "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "percentage", "steps": [ { "color": "green", "value": null }, { "color": "#EAB839", "value": 80 }, { "color": "red", "value": 90 } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byName", "options": "\u547d\u540d\u7a7a\u95f4" }, "properties": [ { "id": "custom.width", "value": 96 } ] }, { "matcher": { "id": "byName", "options": "Pod\u540d\u79f0" }, "properties": [ { "id": "custom.width", "value": 207 }, { "id": "custom.align", "value": "right" } ] }, { "matcher": { "id": "byName", "options": "\u4f7f\u7528\u6838\u6570" }, "properties": [ { "id": "custom.width", "value": 71 } ] }, { "matcher": { "id": "byName", "options": "\u91cd\u542f" }, "properties": [ { "id": "custom.width", "value": 38 }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "#EAB839", "value": 1 }, { "color": "red", "value": 3 } ] } }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } }, { "id": "decimals" } ] }, { "matcher": { "id": "byRegexp", "options": ".*%" }, "properties": [ { "id": "unit", "value": "percentunit" }, { "id": "custom.cellOptions", "value": { "type": "color-background" } }, { "id": "color", "value": { "mode": "continuous-GrYlRd" } }, { "id": "decimals", "value": 1 }, { "id": "custom.width", "value": 55 }, { "id": "min", "value": 0 }, { "id": "max", "value": 1 } ] }, { "matcher": { "id": "byRegexp", "options": ".*\u9650\u5236" }, "properties": [ { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "color-background" } } ] }, { "matcher": { "id": "byName", "options": "\u8282\u70b9" }, "properties": [ { "id": "custom.width", "value": 100 } ] }, { "matcher": { "id": "byRegexp", "options": "\u4f7f\u7528\u6838$|WSS$|RSS$|\u5b58\u6d3b|\u6d41\u5165|\u6d41\u51fa" }, "properties": [ { "id": "custom.cellOptions", "value": { "type": "color-text" } }, { "id": "color", "value": { "fixedColor": "orange", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "\u5bb9\u5668\u540d" }, "properties": [ { "id": "custom.width", "value": 57 }, { "id": "custom.align", "value": "left" } ] }, { "matcher": { "id": "byName", "options": "\u5b58\u6d3b" }, "properties": [ { "id": "unit", "value": "s" }, { "id": "custom.width", "value": 80 } ] }, { "matcher": { "id": "byName", "options": "\u4f7f\u7528\u6838" }, "properties": [ { "id": "custom.width", "value": 62 } ] }, { "matcher": { "id": "byName", "options": "CPU\u9650\u5236" }, "properties": [ { "id": "custom.width", "value": 58 } ] }, { "matcher": { "id": "byName", "options": "\u5185\u5b58\u9650\u5236" }, "properties": [ { "id": "custom.width", "value": 68 } ] }, { "matcher": { "id": "byName", "options": "\u5185\u5b58\u9700\u6c42" }, "properties": [ { "id": "custom.width", "value": 88 } ] }, { "matcher": { "id": "byRegexp", "options": "WSS$|RSS$|\u5185\u5b58\u9700\u6c42$|\u5185\u5b58\u9650\u5236$|\u78c1\u76d8.*$" }, "properties": [ { "id": "unit", "value": "bytes" } ] }, { "matcher": { "id": "byName", "options": "WSS" }, "properties": [ { "id": "custom.width", "value": 81 } ] }, { "matcher": { "id": "byName", "options": "RSS" }, "properties": [ { "id": "custom.width", "value": 74 } ] }, { "matcher": { "id": "byName", "options": "CPU\u9700\u6c42" }, "properties": [ { "id": "custom.width", "value": 72 } ] }, { "matcher": { "id": "byName", "options": "\u78c1\u76d8\u9650\u5236" }, "properties": [ { "id": "custom.width", "value": 83 } ] }, { "matcher": { "id": "byName", "options": "\u78c1\u76d8\u4f7f\u7528" }, "properties": [ { "id": "custom.width", "value": 72 }, { "id": "custom.cellOptions", "value": { "type": "color-background" } }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 10737418240 }, { "color": "red", "value": 16106127360 } ] } } ] }, { "matcher": { "id": "byName", "options": "WSS%" }, "properties": [ { "id": "custom.width", "value": 77 } ] }, { "matcher": { "id": "byRegexp", "options": "/\u6d41\u5165|\u6d41\u51fa/" }, "properties": [ { "id": "unit", "value": "binbps" }, { "id": "custom.width", "value": 80 } ] } ] }, "gridPos": { "h": 8, "w": 24, "x": 0, "y": 94 }, "id": 42, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [ { "desc": true, "displayName": "WSS%" } ] }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(irate(container_cpu_usage_seconds_total{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}[2m])) by (container, pod,node,namespace) / (sum(container_spec_cpu_quota{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}/100000) by (container, pod,node,namespace)) ", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(irate(container_cpu_usage_seconds_total{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}[2m])) by (container, pod,node,namespace)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "CPU\u6838\u6570\u4f7f\u7528", "refId": "Q" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(kube_pod_container_resource_requests{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\",pod=~\"$Pod\",container =~\"$Container\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container,pod,node,namespace)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(kube_pod_container_resource_limits{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\",pod=~\"$Pod\",container =~\"$Container\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container,pod,node,namespace)", "format": "table", "instant": true, "interval": "", "legendFormat": "", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum (container_memory_working_set_bytes{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container, pod,node,namespace)/ sum(container_spec_memory_limit_bytes{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container, pod,node,namespace)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "wss%", "refId": "I" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum (container_memory_working_set_bytes{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container, pod,node,namespace)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "wss", "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum (container_memory_rss{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container, pod,node,namespace)/ sum(container_spec_memory_limit_bytes{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container, pod,node,namespace)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "rss%", "refId": "L" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum (container_memory_rss{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container, pod,node,namespace)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "rss", "refId": "K" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(kube_pod_container_resource_requests{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\",pod=~\"$Pod\",container =~\"$Container\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container,pod,node,namespace)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "E" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(kube_pod_container_resource_limits{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\",pod=~\"$Pod\",container =~\"$Container\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container,pod,node,namespace)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "F" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(container_fs_usage_bytes{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container,pod,node,namespace)", "format": "table", "instant": true, "interval": "", "legendFormat": "", "refId": "J" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "kube_pod_container_status_restarts_total{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"} * on (pod) group_left(node) kube_pod_info{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "H" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "time() - kube_pod_created{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",namespace=~\"$NameSpace\"} * on(pod) group_right kube_pod_container_info{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",namespace=~\"$NameSpace\",container =~\"$Container\"}", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "__auto", "refId": "R" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(container_fs_limit_bytes{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container,pod,node,namespace)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "S" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(sum(irate(container_network_receive_bytes_total{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}[2m])) by (pod)* on(pod) group_right kube_pod_container_info{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",namespace=~\"$NameSpace\",container =~\"$Container\"}) by(pod) *8", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "__auto", "refId": "T" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(sum(irate(container_network_transmit_bytes_total{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}[2m])) by (pod)* on(pod) group_right kube_pod_container_info{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",namespace=~\"$NameSpace\",container =~\"$Container\"}) by(pod) *8", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "__auto", "refId": "U" } ], "title": "$Node\uff1aPod\u8d44\u6e90\u660e\u7ec6(\u53ef\u5173\u8054\u8282\u70b9)", "transformations": [ { "id": "merge", "options": {} }, { "id": "organize", "options": { "excludeByName": { "Time": true, "Time 1": true, "Time 10": true, "Time 11": true, "Time 12": true, "Time 13": true, "Time 2": true, "Time 3": true, "Time 4": true, "Time 5": true, "Time 6": true, "Time 7": true, "Time 8": true, "Time 9": true, "Value #G": false, "__name__": true, "app_kubernetes_io_name": true, "app_kubernetes_io_name 1": true, "app_kubernetes_io_name 2": true, "app_kubernetes_io_version": true, "app_kubernetes_io_version 1": true, "app_kubernetes_io_version 2": true, "container 1": true, "container 10": true, "container 11": true, "container 12": true, "container 2": true, "container 3": true, "container 4": true, "container 5": true, "container 6": true, "container 7": true, "container 8": true, "container 9": true, "created_by_kind": true, "created_by_name": true, "host_ip": true, "instance": true, "instance 1": true, "instance 2": true, "job": true, "job 1": true, "job 2": true, "k8s_namespace": true, "k8s_namespace 1": true, "k8s_namespace 2": true, "k8s_sname": true, "k8s_sname 1": true, "k8s_sname 2": true, "namespace": false, "namespace 1": true, "namespace 10": true, "namespace 11": true, "namespace 12": false, "namespace 2": true, "namespace 3": true, "namespace 4": true, "namespace 5": true, "namespace 6": true, "namespace 7": true, "namespace 8": true, "namespace 9": true, "node 1": true, "node 10": true, "node 11": false, "node 12": true, "node 2": true, "node 3": true, "node 4": true, "node 5": true, "node 6": true, "node 7": true, "node 8": true, "node 9": true, "origin_prometheus": true, "origin_prometheus 1": true, "origin_prometheus 2": true, "phase": true, "pod_ip": true, "priority_class": true, "uid": true }, "includeByName": {}, "indexByName": { "Time": 21, "Value #A": 4, "Value #B": 16, "Value #C": 7, "Value #D": 10, "Value #E": 17, "Value #F": 9, "Value #G": 23, "Value #H": 14, "Value #I": 5, "Value #J": 13, "Value #K": 11, "Value #L": 6, "Value #M": 24, "Value #N": 25, "Value #O": 26, "Value #P": 27, "Value #Q": 8, "Value #R": 15, "Value #S": 12, "container": 2, "instance": 18, "ip": 28, "job": 19, "namespace": 1, "node": 0, "origin_prometheus": 20, "pod": 3, "uid": 22 }, "renameByName": { "Value #A": "CPU%", "Value #B": "CPU\u9700\u6c42", "Value #C": "CPU\u9650\u5236", "Value #D": "WSS", "Value #E": "\u5185\u5b58\u9700\u6c42", "Value #F": "\u5185\u5b58\u9650\u5236", "Value #H": "\u91cd\u542f", "Value #I": "WSS%", "Value #J": "\u78c1\u76d8\u4f7f\u7528", "Value #K": "RSS", "Value #L": "RSS%", "Value #M": "\u5806\u5185\u5b58", "Value #N": "max\u5806", "Value #O": "\u975e\u5806", "Value #P": "max\u975e\u5806", "Value #Q": "\u4f7f\u7528\u6838", "Value #R": "\u5b58\u6d3b", "Value #S": "\u78c1\u76d8\u9650\u5236", "Value #T": "\u6d41\u5165", "Value #U": "\u6d41\u51fa", "container": "\u5bb9\u5668\u540d", "instance": "", "ip": "POD IP", "namespace": "\u547d\u540d\u7a7a\u95f4", "namespace 1": "", "namespace 12": "\u547d\u540d\u7a7a\u95f4", "node": "\u8282\u70b9", "node 1": "", "node 11": "\u8282\u70b9", "pod": "Pod\u540d\u79f0", "priority_class": "" } } }, { "id": "filterFieldsByName", "options": { "include": { "names": [ "\u8282\u70b9", "\u547d\u540d\u7a7a\u95f4", "\u5bb9\u5668\u540d", "Pod\u540d\u79f0", "CPU%", "WSS%", "RSS%", "CPU\u9650\u5236", "\u4f7f\u7528\u6838", "\u5185\u5b58\u9650\u5236", "WSS", "RSS", "\u78c1\u76d8\u9650\u5236", "\u78c1\u76d8\u4f7f\u7528", "\u91cd\u542f", "CPU\u9700\u6c42", "\u5185\u5b58\u9700\u6c42", "\u6d41\u5165", "\u6d41\u51fa", "\u5b58\u6d3b" ] } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 9, "w": 8, "x": 0, "y": 102 }, "id": 43, "options": { "legend": { "calcs": [ "mean", "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "max(irate(container_cpu_usage_seconds_total{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}[2m])) by (container, pod) / (max(container_spec_cpu_quota{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}/100000) by (container, pod)) * 100", "hide": false, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "{{ pod }}", "metric": "container_cpu", "refId": "A", "step": 10 } ], "title": "Pod\u5bb9\u5668CPU\u4f7f\u7528\u7387(\u6700\u5927100%\u53ef\u5173\u8054\u8282\u70b9)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 9, "w": 8, "x": 8, "y": 102 }, "id": 44, "options": { "legend": { "calcs": [ "max", "last", "mean" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max (container_memory_working_set_bytes{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container, pod)/ max(container_spec_memory_limit_bytes{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container, pod) * 100", "interval": "", "intervalFactor": 1, "legendFormat": "WSS\uff1a{{ pod }}", "metric": "container_memory_usage:sort_desc", "range": true, "refId": "A", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max (container_memory_rss{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container, pod)/ max(container_spec_memory_limit_bytes{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container, pod) * 100", "interval": "", "intervalFactor": 1, "legendFormat": "RSS\uff1a{{ pod }}", "metric": "container_memory_usage:sort_desc", "range": true, "refId": "B", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "(cass_jvm_heap{service=~\"$Container\"} * on (pod_ip) group_right(service) kube_pod_info{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",namespace=~\"$NameSpace\"}) / (cass_jvm_heap_max{service=~\"$Container\"} * on (pod_ip) group_right(service) kube_pod_info{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",namespace=~\"$NameSpace\"}) * 100", "hide": true, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "Heap\uff1a{{ pod }}", "metric": "container_memory_usage:sort_desc", "refId": "C", "step": 10 } ], "title": "Pod\u5bb9\u5668\u5185\u5b58\u4f7f\u7528\u7387(\u53ef\u5173\u8054\u8282\u70b9)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "binbps" }, "overrides": [] }, "gridPos": { "h": 9, "w": 8, "x": 16, "y": 102 }, "id": 45, "options": { "legend": { "calcs": [ "max", "last", "mean" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max(max(irate(container_network_receive_bytes_total{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}[2m])) by (pod)* on(pod) group_right kube_pod_container_info{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",namespace=~\"$NameSpace\",container =~\"$Container\"}) by(pod) *8", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u6d41\u5165:{{ pod}}", "metric": "network", "range": true, "refId": "A", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max(max(irate(container_network_transmit_bytes_total{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}[2m])) by (pod)* on(pod) group_right kube_pod_container_info{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",namespace=~\"$NameSpace\",container =~\"$Container\"}) by(pod) *8", "interval": "", "intervalFactor": 1, "legendFormat": "\u6d41\u51fa:{{ pod}}", "metric": "network", "range": true, "refId": "B", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "expr": "sum(sum(irate(container_network_receive_bytes_total{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",image!=\"\",name=~\"^k8s_.*\",node=~\"^$Node$\",namespace=~\"$NameSpace\",pod=~\".*$Container.*\"}[2m])) by (pod)* on(pod) group_right kube_pod_container_info) by(pod) *8", "hide": true, "interval": "", "intervalFactor": 1, "legendFormat": "__auto", "metric": "network", "range": true, "refId": "C", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "expr": "sum(sum(irate(container_network_transmit_bytes_total{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",image!=\"\",name=~\"^k8s_.*\",node=~\"^$Node$\",namespace=~\"$NameSpace\",pod=~\".*$Container.*\"}[2m])) by (pod)* on(pod) group_right kube_pod_container_info) by(pod) *8", "hide": true, "interval": "", "intervalFactor": 1, "legendFormat": "__auto", "metric": "network", "range": true, "refId": "D", "step": 10 } ], "title": "Pod\u6bcf\u79d2\u7f51\u7edc\u5e26\u5bbd (\u53ef\u5173\u8054\u8282\u70b9)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/\u9650\u5236.*/" }, "properties": [ { "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 9, "w": 8, "x": 0, "y": 111 }, "id": 46, "options": { "legend": { "calcs": [ "max", "last", "mean" ], "displayMode": "table", "placement": "bottom", "showLegend": true, "sortBy": "Max", "sortDesc": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "max(irate(container_cpu_usage_seconds_total{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}[2m])) by (container, pod,node,namespace)", "hide": false, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "CPU\u4f7f\u7528\uff1a{{ pod }}", "metric": "container_cpu", "refId": "A", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "max(max(kube_pod_container_resource_limits{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\",pod=~\"$Pod\",container =~\"$Container\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container,pod,node,namespace)) by(container)", "hide": false, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "Pod CPU\u9650\u5236\uff1a{{ container}}", "metric": "container_cpu", "refId": "B", "step": 10 } ], "title": "Pod\u5bb9\u5668CPU\u6838\u4f7f\u7528", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/.*\u9650\u5236/" }, "properties": [ { "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 9, "w": 8, "x": 8, "y": 111 }, "id": 47, "options": { "legend": { "calcs": [ "max", "last", "mean" ], "displayMode": "table", "placement": "bottom", "showLegend": true, "sortBy": "Max", "sortDesc": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max (container_memory_working_set_bytes{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container, pod,node,namespace)", "interval": "", "intervalFactor": 1, "legendFormat": "WSS\uff1a{{ pod }}", "metric": "container_memory_usage:sort_desc", "range": true, "refId": "A", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max(max(kube_pod_container_resource_limits{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\",pod=~\"$Pod\",container =~\"$Container\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container,pod,node,namespace)) by(container)", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "Pod\u5185\u5b58\u9650\u5236\uff1a{{ container}}", "metric": "container_memory_usage:sort_desc", "range": true, "refId": "B", "step": 10 } ], "title": "Pod\u5bb9\u5668WSS\u5185\u5b58\u4f7f\u7528(\u53ef\u5173\u8054\u8282\u70b9)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [] }, "gridPos": { "h": 9, "w": 8, "x": 16, "y": 111 }, "id": 48, "options": { "legend": { "calcs": [ "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "max (container_memory_rss{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",container =~\"$Container\",container !=\"\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}) by (container, pod,node,namespace)", "interval": "", "intervalFactor": 1, "legendFormat": "RSS\uff1a{{ pod }}", "metric": "container_memory_usage:sort_desc", "range": true, "refId": "A", "step": 10 } ], "title": "Pod\u5bb9\u5668RSS\u5185\u5b58\u4f7f\u7528(\u53ef\u5173\u8054\u8282\u70b9)", "type": "timeseries" }, { "collapsed": true, "datasource": { "type": "prometheus", "uid": "WAYOn0FGz" }, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 120 }, "id": 49, "panels": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "center", "cellOptions": { "type": "auto" }, "filterable": false, "inspect": false }, "displayName": "", "mappings": [], "thresholds": { "mode": "percentage", "steps": [ { "color": "green" } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": ".*%" }, "properties": [ { "id": "unit", "value": "percentunit" }, { "id": "custom.cellOptions", "value": { "mode": "gradient", "type": "gauge", "valueDisplayMode": "color" } }, { "id": "max", "value": 1 }, { "id": "min", "value": 0 }, { "id": "color", "value": { "mode": "continuous-GrYlRd" } }, { "id": "decimals", "value": 0 } ] }, { "matcher": { "id": "byRegexp", "options": ".*\u5185\u5b58\u4f7f\u7528$|.*\u5185\u5b58\u9650\u5236$|.*\u5185\u5b58\u9700\u6c42$|.*\u78c1\u76d8\u4f7f\u7528$|.*\u78c1\u76d8\u9650\u5236$" }, "properties": [ { "id": "unit", "value": "bytes" } ] }, { "matcher": { "id": "byName", "options": "\u547d\u540d\u7a7a\u95f4" }, "properties": [ { "id": "custom.width", "value": 92 } ] }, { "matcher": { "id": "byName", "options": "\u5bb9\u5668\u540d" }, "properties": [ { "id": "custom.width", "value": 187 } ] }, { "matcher": { "id": "byName", "options": "\u603bCPU\u6838\u4f7f\u7528" }, "properties": [ { "id": "custom.width", "value": 100 } ] }, { "matcher": { "id": "byName", "options": "Pod" }, "properties": [ { "id": "custom.width", "value": 44 }, { "id": "custom.cellOptions", "value": { "type": "color-background" } }, { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "\u5e73\u5747CPU\u4f7f\u7528%" }, "properties": [ { "id": "custom.width", "value": 116 } ] }, { "matcher": { "id": "byName", "options": "\u5e73\u5747RSS\u5185\u5b58\u4f7f\u7528%" }, "properties": [ { "id": "custom.width", "value": 141 } ] }, { "matcher": { "id": "byName", "options": "\u5e73\u5747WSS\u5185\u5b58\u4f7f\u7528%" }, "properties": [ { "id": "custom.width", "value": 165 } ] }, { "matcher": { "id": "byName", "options": "\u603bCPU\u9650\u5236" }, "properties": [ { "id": "custom.width", "value": 86 } ] }, { "matcher": { "id": "byName", "options": "\u603b\u5185\u5b58\u9650\u5236" }, "properties": [ { "id": "custom.width", "value": 86 } ] }, { "matcher": { "id": "byRegexp", "options": "/.*\u9650\u5236$/" }, "properties": [ { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } }, { "id": "custom.cellOptions", "value": { "type": "color-background" } } ] }, { "matcher": { "id": "byRegexp", "options": "/.*\u5185\u5b58\u4f7f\u7528$|.*\u6838\u4f7f\u7528$/" }, "properties": [ { "id": "custom.cellOptions", "value": { "type": "color-text" } }, { "id": "color", "value": { "fixedColor": "orange", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "\u603bRSS\u5185\u5b58\u4f7f\u7528" }, "properties": [ { "id": "custom.width", "value": 107 } ] }, { "matcher": { "id": "byName", "options": "\u603bWSS\u5185\u5b58\u4f7f\u7528" }, "properties": [ { "id": "custom.width", "value": 113 } ] }, { "matcher": { "id": "byName", "options": "\u5e73\u5747\u78c1\u76d8\u4f7f\u7528" }, "properties": [ { "id": "custom.width", "value": 96 }, { "id": "custom.cellOptions", "value": { "type": "color-background" } }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "orange", "value": 10737418240 }, { "color": "red", "value": 16106127360 } ] } } ] }, { "matcher": { "id": "byName", "options": "\u5e73\u5747\u78c1\u76d8\u9650\u5236" }, "properties": [ { "id": "custom.width", "value": 96 } ] }, { "matcher": { "id": "byName", "options": "\u603bCPU\u9700\u6c42" }, "properties": [ { "id": "custom.width", "value": 80 } ] }, { "matcher": { "id": "byName", "options": "\u603b\u5185\u5b58\u9700\u6c42" }, "properties": [ { "id": "custom.width", "value": 80 } ] } ] }, "gridPos": { "h": 9, "w": 24, "x": 0, "y": 3 }, "id": 87, "options": { "cellHeight": "sm", "footer": { "countRows": false, "enablePagination": true, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [ { "desc": true, "displayName": "\u5e73\u5747WSS\u5185\u5b58\u4f7f\u7528%" } ] }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(irate(container_cpu_usage_seconds_total{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}[2m])) by (container) / (sum(container_spec_cpu_quota{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}/100000) by (container))", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(irate(container_cpu_usage_seconds_total{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}[2m])) by (container)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u603b\u6838\u6570\u4f7f\u7528", "refId": "L" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(kube_pod_container_resource_requests{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(kube_pod_container_resource_limits{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container)", "format": "table", "instant": true, "interval": "", "legendFormat": "", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum (container_memory_working_set_bytes{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container)/ sum(container_spec_memory_limit_bytes{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "I" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum (container_memory_working_set_bytes{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum (container_memory_rss{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container)/ sum(container_spec_memory_limit_bytes{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u5e73\u5747\u5185\u5b58%(RSS)", "refId": "H" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum (container_memory_rss{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "\u603b\u5185\u5b58\u4f7f\u7528(RSS) ", "refId": "K" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum by(container) (kube_pod_container_resource_requests{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"})", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "E" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "sum(kube_pod_container_resource_limits{origin_prometheus=~\"$origin_prometheus\",resource=\"memory\", unit=\"byte\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "F" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "avg(container_fs_usage_bytes{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container)", "format": "table", "instant": true, "interval": "", "legendFormat": "", "refId": "J" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(kube_pod_container_info{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by(container,namespace)", "format": "table", "instant": true, "interval": "", "legendFormat": "", "refId": "G" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "avg(container_fs_limit_bytes{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container)", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "", "refId": "M" } ], "title": "\u5fae\u670d\u52a1(\u5bb9\u5668\u540d)\u8d44\u6e90\u7edf\u8ba1", "transformations": [ { "id": "merge", "options": {} }, { "id": "organize", "options": { "excludeByName": { "Time": true, "Time 1": true, "Time 10": true, "Time 11": true, "Time 12": true, "Time 2": true, "Time 3": true, "Time 4": true, "Time 5": true, "Time 6": true, "Time 7": true, "Time 8": true, "Time 9": true }, "includeByName": {}, "indexByName": { "Time": 15, "Value #A": 3, "Value #B": 13, "Value #C": 6, "Value #D": 9, "Value #E": 14, "Value #F": 8, "Value #G": 2, "Value #H": 5, "Value #I": 4, "Value #J": 12, "Value #K": 10, "Value #L": 7, "Value #M": 11, "container": 1, "namespace": 0 }, "renameByName": { "Time 1": "", "Value #A": "\u5e73\u5747CPU\u4f7f\u7528%", "Value #B": "\u603bCPU\u9700\u6c42", "Value #C": "\u603bCPU\u9650\u5236", "Value #D": "\u603bWSS\u5185\u5b58\u4f7f\u7528", "Value #E": "\u603b\u5185\u5b58\u9700\u6c42", "Value #F": "\u603b\u5185\u5b58\u9650\u5236", "Value #G": "Pod", "Value #H": "\u5e73\u5747RSS\u5185\u5b58\u4f7f\u7528%", "Value #I": "\u5e73\u5747WSS\u5185\u5b58\u4f7f\u7528%", "Value #J": "\u5e73\u5747\u78c1\u76d8\u4f7f\u7528", "Value #K": "\u603bRSS\u5185\u5b58\u4f7f\u7528", "Value #L": "\u603bCPU\u6838\u4f7f\u7528", "Value #M": "\u5e73\u5747\u78c1\u76d8\u9650\u5236", "container": "\u5bb9\u5668\u540d", "namespace": "\u547d\u540d\u7a7a\u95f4" } } }, { "id": "filterFieldsByName", "options": {} } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 7, "w": 8, "x": 0, "y": 12 }, "id": 24, "options": { "legend": { "calcs": [ "max", "last", "mean" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": true, "expr": "sum(irate(container_cpu_usage_seconds_total{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}[2m])) by (container) / (sum(container_spec_cpu_quota{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}/100000) by (container)) * 100", "hide": false, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "{{ container}}", "metric": "container_cpu", "refId": "A", "step": 10 } ], "title": "\u5fae\u670d\u52a1(\u5bb9\u5668\u540d)\u5e73\u5747CPU\u4f7f\u7528\u7387(\u6700\u5927100%)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 7, "w": 8, "x": 8, "y": 12 }, "id": 89, "options": { "legend": { "calcs": [ "max", "last", "mean" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "sum (container_memory_working_set_bytes{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container)/ sum(container_spec_memory_limit_bytes{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container) * 100", "interval": "", "intervalFactor": 1, "legendFormat": "WSS\uff1a{{ container }}", "metric": "container_memory_usage:sort_desc", "refId": "A", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "sum (container_memory_rss{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container)/ sum(container_spec_memory_limit_bytes{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container) * 100", "interval": "", "intervalFactor": 1, "legendFormat": "RSS\uff1a{{ container }}", "metric": "container_memory_usage:sort_desc", "refId": "B", "step": 10 } ], "title": "\u5fae\u670d\u52a1(\u5bb9\u5668\u540d)\u5e73\u5747\u5185\u5b58\u4f7f\u7528\u7387", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "binbps" }, "overrides": [] }, "gridPos": { "h": 7, "w": 8, "x": 16, "y": 12 }, "id": 16, "options": { "legend": { "calcs": [ "mean", "last", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(sum(irate(container_network_receive_bytes_total{origin_prometheus=~\"$origin_prometheus\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}[2m])) by (pod)* on(pod) group_right kube_pod_container_info{origin_prometheus=~\"$origin_prometheus\",namespace=~\"$NameSpace\",container =~\"$Container\"}) by(container) *8", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "\u6d41\u5165:{{ container }}", "metric": "network", "range": true, "refId": "A", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(sum(irate(container_network_transmit_bytes_total{origin_prometheus=~\"$origin_prometheus\",node=~\"^$Node$\",namespace=~\"$NameSpace\"}[2m])) by (pod)* on(pod) group_right kube_pod_container_info{origin_prometheus=~\"$origin_prometheus\",namespace=~\"$NameSpace\",container =~\"$Container\"}) by(container) *8", "interval": "", "intervalFactor": 1, "legendFormat": "\u6d41\u51fa:{{ container }}", "metric": "network", "range": true, "refId": "B", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "sum (rate (container_network_receive_bytes_total{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",image!=\"\",name=~\"^k8s_.*\",node=~\"^$Node$\",namespace=~\"$NameSpace\",pod=~\".*$Container.*\"}[2m])) by (pod)", "hide": true, "interval": "", "intervalFactor": 1, "legendFormat": "-> {{ pod }}", "metric": "network", "refId": "C", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "expr": "- sum (rate (container_network_transmit_bytes_total{origin_prometheus=~\"$origin_prometheus\",pod=~\"$Pod\",image!=\"\",name=~\"^k8s_.*\",node=~\"^$Node$\",namespace=~\"$NameSpace\",pod=~\".*$Container.*\"}[2m])) by (pod)", "hide": true, "interval": "", "intervalFactor": 1, "legendFormat": "<- {{ pod }}", "metric": "network", "refId": "D", "step": 10 } ], "title": "\u5fae\u670d\u52a1(\u5bb9\u5668\u540d)\u6bcf\u79d2\u7f51\u7edc\u5e26\u5bbd (\u53ef\u5173\u8054\u8282\u70b9)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/CPU\u9650\u5236.*/" }, "properties": [ { "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 8, "w": 8, "x": 0, "y": 19 }, "id": 91, "options": { "legend": { "calcs": [ "max", "last", "mean" ], "displayMode": "table", "placement": "bottom", "showLegend": true, "sortBy": "Max", "sortDesc": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(kube_pod_container_resource_limits{origin_prometheus=~\"$origin_prometheus\",resource=\"cpu\", unit=\"core\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container)", "hide": false, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "CPU\u9650\u5236\uff1a{{ container}}", "metric": "container_cpu", "refId": "A", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": true, "expr": "sum(irate(container_cpu_usage_seconds_total{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}[2m])) by (container)", "hide": false, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "CPU\u6838\u4f7f\u7528\uff1a{{ container}}", "metric": "container_cpu", "refId": "B", "step": 10 } ], "title": "\u5fae\u670d\u52a1(\u5bb9\u5668\u540d)\u6574\u4f53CPU\u4f7f\u7528\u6838", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/\u5185\u5b58\u9650\u5236.*/" }, "properties": [ { "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 8, "w": 8, "x": 8, "y": 19 }, "id": 90, "options": { "legend": { "calcs": [ "max", "last", "mean" ], "displayMode": "table", "placement": "bottom", "showLegend": true, "sortBy": "Max", "sortDesc": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "expr": "sum (container_memory_working_set_bytes{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container)", "interval": "", "intervalFactor": 1, "legendFormat": "WSS\uff1a{{ container }}", "metric": "container_memory_usage:sort_desc", "range": true, "refId": "A", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "expr": "sum(container_spec_memory_limit_bytes{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container)", "interval": "", "intervalFactor": 1, "legendFormat": "\u5185\u5b58\u9650\u5236\uff1a{{ container }}", "metric": "container_memory_usage:sort_desc", "range": true, "refId": "B", "step": 10 }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "expr": "sum (container_memory_rss{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by (container)", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "RSS\uff1a{{ container }}", "metric": "container_memory_usage:sort_desc", "range": true, "refId": "C", "step": 10 } ], "title": "\u5fae\u670d\u52a1(\u5bb9\u5668\u540d)\u6574\u4f53\u5185\u5b58\u4f7f\u7528\u91cf", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 8, "w": 8, "x": 16, "y": 19 }, "id": 59, "options": { "legend": { "calcs": [ "max", "last", "mean" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "expr": "count(kube_pod_container_info{origin_prometheus=~\"$origin_prometheus\",container =~\"$Container\",container !=\"\",container!=\"POD\",namespace=~\"$NameSpace\"}) by(container,namespace)", "interval": "", "intervalFactor": 1, "legendFormat": "{{namespace}}\uff1a{{ container }}", "metric": "container_memory_usage:sort_desc", "range": true, "refId": "A", "step": 10 } ], "title": "\u5fae\u670d\u52a1(\u5bb9\u5668\u540d)Pod\u6570", "type": "timeseries" } ], "title": "\u5fae\u670d\u52a1(\u5bb9\u5668\u540d)\u8d44\u6e90\u603b\u89c8\uff1a\u6240\u9009\u5fae\u670d\u52a1:\u3010$Container\u3011", "type": "row" } ], "schemaVersion": 39, "tags": [ "HOME", "Pigsty" ], "templating": { "list": [ { "name": "version", "type": "constant", "query": "v4.0.0", "hide": 2 }, { "name": "origin_prometheus", "label": "\u6570\u636e\u6e90", "type": "query", "datasource": { "uid": "ds-prometheus" }, "query": "label_values(kube_node_info,origin_prometheus)", "refresh": 1 }, { "name": "Node", "label": "\u8282\u70b9", "type": "query", "datasource": { "uid": "ds-prometheus" }, "query": "label_values(kube_node_info{origin_prometheus=~\"$origin_prometheus\"},node)" }, { "name": "NameSpace", "label": "\u547d\u540d\u7a7a\u95f4", "type": "query", "datasource": { "uid": "ds-prometheus" }, "query": "label_values(kube_namespace_created{origin_prometheus=~\"$origin_prometheus\"},namespace)" }, { "name": "Container", "label": "\u5fae\u670d\u52a1(\u5bb9\u5668\u540d)", "type": "query", "datasource": { "uid": "ds-prometheus" }, "query": "label_values(kube_pod_container_info{origin_prometheus=~\"$origin_prometheus\",namespace=~\"$NameSpace\"},container)" }, { "name": "Pod", "label": "Pod", "type": "query", "datasource": { "uid": "ds-prometheus" }, "query": "label_values(kube_pod_container_info{origin_prometheus=~\"$origin_prometheus\",namespace=~\"$NameSpace\",container=~\"$Container\"},pod)" }, { "name": "job", "label": "JOB", "type": "query", "datasource": { "uid": "ds-prometheus" }, "query": "label_values(node_uname_info{origin_prometheus=~\"$origin_prometheus\"},job)" }, { "name": "hostname", "label": "\u540d\u79f0", "type": "query", "datasource": { "uid": "ds-prometheus" }, "query": "label_values(node_uname_info{origin_prometheus=~\"$origin_prometheus\", job=~\"$job\"},nodename)" }, { "name": "node", "label": "IP", "type": "query", "datasource": { "uid": "ds-prometheus" }, "query": "label_values(node_uname_info{origin_prometheus=~\"$origin_prometheus\", job=~\"$job\", nodename=~\"$hostname\"},instance)" }, { "name": "device", "label": "\u7f51\u5361", "type": "query", "datasource": { "uid": "ds-prometheus" }, "query": "label_values(node_network_info{origin_prometheus=~\"$origin_prometheus\", job=~\"$job\", instance=~\"$node\", device!~\"'tap.*|veth.*|br.*|docker.*|virbr.*|lo.*|cni.*'\"},device)" }, { "name": "interval", "label": "\u95f4\u9694", "type": "interval", "query": "3m,5m,10m,30m,1h,6h,12h,1d" }, { "name": "maxmount", "hide": 2, "type": "query", "datasource": { "uid": "ds-prometheus" }, "query": "query_result(topk(1,sort_desc(max(node_filesystem_size_bytes{origin_prometheus=~\"$origin_prometheus\",instance=~\"$node\",fstype=~\"ext.?|xfs\",mountpoint!~\".*pods.*\"}) by (mountpoint))))" }, { "name": "show_hostname", "hide": 2, "type": "query", "datasource": { "uid": "ds-prometheus" }, "query": "label_values(node_uname_info{origin_prometheus=~\"$origin_prometheus\", job=~\"$job\", nodename=~\"$hostname\", instance=~\"$node\"},nodename)" }, { "name": "total", "hide": 2, "type": "query", "datasource": { "uid": "ds-prometheus" }, "query": "query_result(count(node_uname_info{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}))" } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "Homepage", "uid": "home", "version": 1 }