部署Prometheus+Grafana批量监控Linux服务器

devtools/2024/9/19 9:45:48/ 标签: prometheus, grafana

在 Linux 服务器上使用 Docker 容器快速部署 Prometheus 和 Grafana 监控系统,同时通过 node_exporter 采集全面的系统性能数据。整个流程涵盖了从环境配置到搭建一个全面监控平台的每个步骤。

一键安装Node Exporter

Node Exporter 是 Prometheus 生态系统中的一个关键组件,它专门用于收集和导出 Linux 系统的硬件和操作系统指标,如 CPU 使用率、内存利用率、磁盘 IO、网络统计等。这些数据可以帮助你深入了解服务器的性能表现,从而提高系统的监控和管理效率。

该服务所有需要监控的服务器安装,属于数据采集Agent。

下面是一键安装的脚本,脚本设置了国内加速

#!/bin/bash# 定义变量
URL="https://mirror.ghproxy.com/https://github.com/prometheus/node_exporter/releases/download/v1.8.2/node_exporter-1.8.2.linux-amd64.tar.gz"
TAR_FILE="node_exporter-1.8.2.linux-amd64.tar.gz"
DIR_NAME="node_exporter-1.8.2.linux-amd64"
LISTEN_PORT="9100"# 下载文件
echo "Downloading $TAR_FILE..."
wget -c $URL -O $TAR_FILE
if [ $? -ne 0 ]; thenecho "Error: Failed to download $TAR_FILE."exit 1
fi# 解压文件
echo "Extracting $TAR_FILE..."
tar -zxvf $TAR_FILE
if [ $? -ne 0 ]; thenecho "Error: Failed to extract $TAR_FILE."exit 1
fi# 进入解压后的目录
echo "Changing directory to $DIR_NAME..."
cd $DIR_NAME
if [ $? -ne 0 ]; thenecho "Error: Failed to change directory to $DIR_NAME."exit 1
fi# 后台运行 node_exporter
echo "Starting node_exporter on port $LISTEN_PORT..."
nohup ./node_exporter --web.listen-address=":$LISTEN_PORT" > node_exporter.stdout 2>&1 &
if [ $? -ne 0 ]; thenecho "Error: Failed to start node_exporter."exit 1
fiecho "node_exporter started successfully and is listening on port $LISTEN_PORT."

安装prometheus

创建数据存储目录

mkdir /data/prometheus_data && chmod 777 /data/prometheus_data

创建配置文件

将需要监控的节点和添加进配置文件

  - job_name: "node_exporter"static_configs:- targets:- "192.168.1.12:9100"- "192.168.1.13:9100"- "192.168.1.14:9100"- "192.168.1.15:9100"- "192.168.1.3:9100"- "192.168.1.4:9100"- "192.168.1.5:9100"- "192.168.1.6:9100"- "192.168.1.7:9100"

完整的配置文件内容为

# my global config
global:scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.# scrape_timeout is set to the global default (10s).# Alertmanager configuration
alerting:alertmanagers:- static_configs:- targets:# - alertmanager:9093# Load rules once and periodically evaluate them according to the global "evaluation_interval".
rule_files:# - "first_rules.yml"# - "second_rules.yml"# A scrape configuration containing exactly one endpoint to scrape:
# Here it"s Prometheus itself.
scrape_configs:# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.- job_name: "prometheus"static_configs:- targets: ["localhost:9090"]- job_name: "node_exporter"static_configs:- targets:- "192.168.1.12:9100"- "192.168.1.13:9100"- "192.168.1.14:9100"- "192.168.1.15:9100"- "192.168.1.3:9100"- "192.168.1.4:9100"- "192.168.1.5:9100"- "192.168.1.6:9100"- "192.168.1.7:9100"

tips:这里格式一定要对齐,否则可能会启动失败

设置配置文件权限

chmod 777 /etc/prometheus.yml

下载运行Prometheus

下载运行服务

docker run -d \--name=prometheus \-p 9090:9090 \-v /etc/prometheus.yml:/etc/prometheus/prometheus.yml \-v /data/prometheus_data:/prometheus \--restart always \prom/prometheus

如果拉取不了可以用下面这个

docker run -d \--name=prometheus \-p 9090:9090 \-v /etc/prometheus.yml:/etc/prometheus/prometheus.yml \-v /data/prometheus_data:/prometheus \--restart always \registry.cn-hangzhou.aliyuncs.com/jast-docker/prometheus:latest
参数说明
`-d`使容器在后台运行(分离模式)。
`--name=prometheus`为容器指定名称 `prometheus`,便于管理。
`-p 9090:9090`将宿主机的 `9090` 端口映射到容器的 `9090` 端口,便于访问 Prometheus。
`-v /etc/prometheus.yml:/etc/prometheus/prometheus.yml`挂载宿主机的 Prometheus 配置文件到容器中。
`-v /data/prometheus_data:/prometheus`挂载宿主机的目录用于存储 Prometheus 数据,确保数据持久化。
`--restart always`设定容器在停止后自动重启,保证持续运行。
`prom/prometheus`使用 Prometheus 的官方 Docker 镜像启动容器。

访问:http://localhost:9090 验证是否启动生效

安装Grafana

创建数据目录

mkdir -p grafana/data

下载运行Grafana

docker run -d -p 3000:3000 --name=grafana \--user "$(id -u)" \  --volume "$PWD/grafana/data:/var/lib/grafana" \grafana/grafana  

上面的如果用不了,用下面的国内镜像

docker run -d -p 3000:3000 --name=grafana \--user "$(id -u)" \--restart always \--volume "$PWD/grafana/data:/var/lib/grafana" \registry.cn-hangzhou.aliyuncs.com/jast-docker/grafana:latest

运行完成访问: http://localhost:3000

配置Grafana监控Linux服务器

登录

默认账号密码admin/admin

首次登录后设置密码

添加数据源

选择prometheus

填写prometheus地址

最下方点击保存

导入模板

导入8189模板,官方提供的监控模板

输入名称和数据源导入

监控效果

到此监控已经配置完成,你也可以配置预警值,进行一些告警操作,第一时间发现问题。

json文件内容

{"__inputs": [{"name": "DS__VICTORIAMETRICS-PROD-ALL","label": "Prometheus","description": "","type": "datasource","pluginId": "prometheus","pluginName": "Prometheus"}],"__elements": {},"__requires": [{"type": "panel","id": "bargauge","name": "Bar gauge","version": ""},{"type": "grafana","id": "grafana","name": "Grafana","version": "11.0.0"},{"type": "datasource","id": "prometheus","name": "Prometheus","version": "1.0.0"},{"type": "panel","id": "stat","name": "Stat","version": ""},{"type": "panel","id": "table","name": "Table","version": ""},{"type": "panel","id": "timeseries","name": "Time series","version": ""}],"annotations": {"list": [{"$$hashKey": "object:2875","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": "【中文版本】2024.05.20更新,基于TenSunS采集的ECS,可匹配自动同步方式采集ECS信息字段的展示,优化重要指标展示。使用Grafana10新样式重建,新增健康评分概念,并新增了整体资源消耗信息的一些图表。包含整体资源展示与资源明细图表:CPU 内存 磁盘 IO 网络等监控指标。https://github.com/starsliao/TenSunS","editable": true,"fiscalYearStartMonth": 0,"gnetId": 8919,"graphTooltip": 0,"id": null,"links": [{"$$hashKey": "object:2300","icon": "bolt","tags": [],"targetBlank": true,"title": "Update","tooltip": "更多仪表板","type": "link","url": "https://grafana.com/orgs/starsliao/dashboards"},{"$$hashKey": "object:2301","icon": "question","tags": [],"targetBlank": true,"title": "GitHub","tooltip": "GITHUB:TenSunS","type": "link","url": "https://github.com/starsliao/TenSunS"},{"$$hashKey": "object:2302","asDropdown": true,"icon": "external link","tags": [],"targetBlank": true,"title": "","type": "dashboards"}],"liveNow": false,"panels": [{"collapsed": false,"datasource": {"type": "prometheus","uid": "WAYOn0FGz"},"gridPos": {"h": 1,"w": 24,"x": 0,"y": 0},"id": 187,"panels": [],"title": "🏡资源总览:当前选中主机:$show_name,实例:$instance","type": "row"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"description": "分区使用率、磁盘读取、磁盘写入、下载带宽、上传带宽,如果有多个网卡或者多个分区,是采集的使用率最高的网卡或者分区的数值。\n\n连接数:CurrEstab - 当前状态为 ESTABLISHED 或 CLOSE-WAIT 的 TCP 连接数。\n\n健康值是一个新增的指标,根据CPU,内存,IO计算出来的一个值,低于90分说明系统的资源使用情况需要注意了,这是一个正在测试的指标,参数可能需要根据实际情况再优化。","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": "内存"},"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": "启动(天)"},"properties": [{"id": "unit","value": "none"},{"id": "custom.width","value": 68},{"id": "decimals"}]},{"matcher": {"id": "byName","options": "磁盘读取*"},"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": "磁盘写入*"},"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": "下载带宽*"},"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": "上传带宽*"},"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": "负载"},"properties": [{"id": "decimals","value": 2},{"id": "custom.width","value": 67}]},{"matcher": {"id": "byName","options": "连接数"},"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": 46},{"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": 91},{"id": "custom.filterable","value": true},{"id": "mappings","value": [{"options": {"pattern": "/(.*):9100/","result": {"index": 0,"text": "$1"}},"type": "regex"}]}]},{"matcher": {"id": "byName","options": "名称"},"properties": [{"id": "custom.filterable","value": true},{"id": "custom.width","value": 145}]},{"matcher": {"id": "byName","options": "健康值"},"properties": [{"id": "custom.width","value": 57},{"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": "/.*使用率.*/"},"properties": [{"id": "unit","value": "percent"},{"id": "custom.cellOptions","value": {"mode": "gradient","type": "gauge"}},{"id": "color","value": {"mode": "continuous-GrYlRd"}},{"id": "custom.width","value": 110}]},{"matcher": {"id": "byName","options": "到期日"},"properties": [{"id": "custom.width","value": 97}]},{"matcher": {"id": "byName","options": "实例ID"},"properties": [{"id": "custom.width","value": 115}]}]},"gridPos": {"h": 10,"w": 24,"x": 0,"y": 1},"id": 198,"options": {"cellHeight": "sm","footer": {"countRows": false,"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": true,"displayName": "到期日"}]},"pluginVersion": "11.0.0","targets": [{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": false,"expr": "node_uname_info{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"} - 0","format": "table","hide": false,"instant": true,"interval": "","legendFormat": "主机名","refId": "A"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": false,"expr": "sum(time() - node_boot_time_seconds{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"})by(instance)/86400","format": "table","hide": false,"instant": true,"interval": "","legendFormat": "运行时间","refId": "D"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "node_memory_MemTotal_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"} - 0","format": "table","hide": false,"instant": true,"interval": "","legendFormat": "总内存","refId": "B"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "count(node_cpu_seconds_total{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",mode='system',name=~\".*$sname.*\"}) by (instance)","format": "table","hide": false,"instant": true,"interval": "","legendFormat": "总核数","refId": "C"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "node_load5{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}","format": "table","instant": true,"interval": "","legendFormat": "5分钟负载","refId": "L"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "(1 - avg(irate(node_cpu_seconds_total{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",mode=\"idle\",name=~\".*$sname.*\"}[$interval])) by (instance)) * 100","format": "table","hide": false,"instant": true,"interval": "","legendFormat": "CPU使用率","refId": "F"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "(1 - (node_memory_MemAvailable_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"} / (node_memory_MemTotal_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"})))* 100","format": "table","hide": false,"instant": true,"interval": "","legendFormat": "内存使用率","refId": "G"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "max((node_filesystem_size_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",fstype=~\"ext.?|xfs\"}-node_filesystem_free_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",fstype=~\"ext.?|xfs\"}) *100/(node_filesystem_avail_bytes {vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",fstype=~\"ext.?|xfs\"}+(node_filesystem_size_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",fstype=~\"ext.?|xfs\"}-node_filesystem_free_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",fstype=~\"ext.?|xfs\"})))by(instance)","format": "table","hide": false,"instant": true,"interval": "","legendFormat": "分区使用率","refId": "E"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "max(irate(node_disk_read_bytes_total{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}[$interval])) by (instance)","format": "table","hide": false,"instant": true,"interval": "","legendFormat": "最大读取","refId": "H"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "max(irate(node_disk_written_bytes_total{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}[$interval])) by (instance)","format": "table","hide": false,"instant": true,"interval": "","legendFormat": "最大写入","refId": "I"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "node_netstat_Tcp_CurrEstab{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"} - 0","format": "table","hide": false,"instant": true,"interval": "","legendFormat": "连接数","refId": "M"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "node_sockstat_TCP_tw{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"} - 0","format": "table","hide": false,"instant": true,"interval": "","legendFormat": "TIME_WAIT","refId": "N"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "max(irate(node_network_receive_bytes_total{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}[$interval])*8) by (instance)","format": "table","hide": false,"instant": true,"interval": "","legendFormat": "下载带宽","refId": "J"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "max(irate(node_network_transmit_bytes_total{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}[$interval])*8) by (instance)","format": "table","hide": false,"instant": true,"interval": "","legendFormat": "上传带宽","refId": "K"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "((1-(1 - avg(irate(node_cpu_seconds_total{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",mode=\"idle\"}[$interval])) by (instance))^1.3)^(1/3)*0.5 + \r\n(1-(1 - avg(node_memory_MemAvailable_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"} / node_memory_MemTotal_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"})by (instance))^6)^(1/3)*0.3 + \r\n(1 - max(irate(node_disk_io_time_seconds_total{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}[$interval]))by (instance)^1.1)^(1/2)*0.2)*100","format": "table","hide": false,"instant": true,"interval": "","legendFormat": "健康评分","refId": "O"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "max(irate(node_disk_io_time_seconds_total{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}[$interval])) by (instance) *100","format": "table","hide": false,"instant": true,"interval": "","legendFormat": "IOutil使用率","refId": "P"}],"title": "服务器资源总览表【分组:$group,主机总数:$total】","transformations": [{"id": "merge","options": {"reducers": []}},{"id": "filterFieldsByName","options": {"include": {"pattern": "/^Value #[^A]|^instance$|^name$|^iid$|^exp$/"}}},{"id": "organize","options": {"excludeByName": {"exp": false},"indexByName": {"Value #B": 6,"Value #C": 7,"Value #D": 3,"Value #E": 12,"Value #F": 9,"Value #G": 10,"Value #H": 13,"Value #I": 14,"Value #J": 17,"Value #K": 18,"Value #L": 8,"Value #M": 15,"Value #N": 16,"Value #O": 5,"Value #P": 11,"exp": 4,"iid": 2,"instance": 1,"name": 0},"renameByName": {"Value #B": "内存","Value #C": "CPU","Value #D": "启动(天)","Value #E": "分区使用率*","Value #F": "CPU使用率","Value #G": "内存使用率","Value #H": "磁盘读取*","Value #I": "磁盘写入*","Value #J": "下载带宽*","Value #K": "上传带宽*","Value #L": "负载","Value #M": "连接数","Value #N": "TCP_tw","Value #O": "健康值","Value #P": "IOutil使用率*","exp": "到期日","iid": "实例ID","instance": "IP","name": "名称","nodename": "主机名"}}}],"type": "table"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"description": "- P99:数据集按升序排列,第99分位置大的数据。(即升序排列后排在99%位置的数据)\n- 该表格需要在Prometheus增加记录规则(参考看板下载页)\n- 采集1小时后出数据\n- 时间范围[7d:1h]表示要查看过去 7 天内每小时的数据点。","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内存使用率"},"properties": [{"id": "custom.width","value": 79}]},{"matcher": {"id": "byName","options": "P99CPU使用率"},"properties": [{"id": "custom.width","value": 101}]},{"matcher": {"id": "byName","options": "名称"},"properties": [{"id": "custom.width","value": 128}]}]},"gridPos": {"h": 7,"w": 6,"x": 0,"y": 11},"id": 200,"options": {"cellHeight": "sm","footer": {"countRows": false,"fields": "","reducer": ["sum"],"show": false},"showHeader": true,"sortBy": [{"desc": true,"displayName": "P99内存%"}]},"pluginVersion": "11.0.0","targets": [{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "node_uname_info{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"} - 0","format": "table","instant": true,"interval": "","legendFormat": "主机名","refId": "A"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": false,"expr": "quantile_over_time(0.99, cpu:usage:rate1m{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}[7d:1h])","format": "table","hide": false,"instant": true,"interval": "","legendFormat": "CPU使用率P99","refId": "B"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": false,"expr": "quantile_over_time(0.99, mem:usage:rate1m{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}[7d:1h])","format": "table","hide": false,"instant": true,"interval": "","legendFormat": "内存使用率P99","refId": "C"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": false,"expr": " ((quantile_over_time(0.95, cpu:usage:rate1m{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\"}[7d:1h]) < 10) \r\n and ignoring(cservice,exp,iaccount,igroup,iid,iname,job,region)\r\n (quantile_over_time(0.95, mem:usage:rate1m{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\"}[7d:1h]) < 10)) ","format": "table","hide": true,"instant": true,"interval": "","legendFormat": "内存使用率P99","refId": "D"}],"title": "最近7天P99资源使用率","transformations": [{"id": "seriesToColumns","options": {"byField": "instance"}},{"id": "filterFieldsByName","options": {"include": {"pattern": "/^Value #[^A]|^instance$|^name 1$/"}}},{"id": "organize","options": {"excludeByName": {},"indexByName": {"Value #B": 2,"Value #C": 3,"instance": 1,"name 1": 0},"renameByName": {"Value #B": "P99CPU%","Value #C": "P99内存%","instance": "IP","name": "名称","name 1": "名称","nodename": "主机名"}}}],"type": "table"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"description": "","fieldConfig": {"defaults": {"color": {"mode": "palette-classic"},"custom": {"axisBorderShow": false,"axisCenteredZero": false,"axisColorMode": "series","axisLabel": "总5分钟负载","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": "平均%"},"properties": [{"id": "unit","value": "percent"},{"id": "custom.axisLabel","value": "总平均使用率"},{"id": "custom.pointSize","value": 3},{"id": "custom.lineWidth","value": 1},{"id": "custom.showPoints","value": "always"},{"id": "custom.axisSoftMin"}]},{"matcher": {"id": "byName","options": "核数"},"properties": [{"id": "color","value": {"fixedColor": "#C4162A","mode": "fixed"}},{"id": "custom.pointSize","value": 3},{"id": "custom.drawStyle","value": "points"}]},{"matcher": {"id": "byName","options": "5m负载"},"properties": [{"id": "color","value": {"fixedColor": "orange","mode": "fixed"}}]}]},"gridPos": {"h": 7,"w": 6,"x": 6,"y": 11},"id": 191,"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__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": true,"expr": "sum(node_load5{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\".*$sname.*\",name=~\"$name\"})","format": "time_series","hide": false,"interval": "","intervalFactor": 1,"legendFormat": "5m负载","range": true,"refId": "A","step": 240},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": true,"expr": "count(node_cpu_seconds_total{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",mode='system'})","format": "time_series","hide": false,"instant": false,"interval": "","intervalFactor": 1,"legendFormat": "核数","refId": "B","step": 240},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": true,"expr": "avg(1 - avg(irate(node_cpu_seconds_total{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",mode=\"idle\"}[$interval])) by (instance)) * 100","format": "time_series","hide": false,"interval": "","intervalFactor": 1,"legendFormat": "平均%","range": true,"refId": "F","step": 240}],"title": "整体总负载与整体平均CPU使用率","type": "timeseries"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"fieldConfig": {"defaults": {"color": {"mode": "palette-classic"},"custom": {"axisBorderShow": false,"axisCenteredZero": false,"axisColorMode": "series","axisLabel": "总已用内存","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": "总内存"},"properties": [{"id": "color","value": {"fixedColor": "#C4162A","mode": "fixed"}},{"id": "custom.drawStyle","value": "points"},{"id": "custom.pointSize","value": 3}]},{"matcher": {"id": "byName","options": "总平均%"},"properties": [{"id": "unit","value": "percent"},{"id": "decimals","value": 1},{"id": "custom.axisLabel","value": "总平均使用率"},{"id": "custom.showPoints","value": "always"},{"id": "custom.lineWidth","value": 1},{"id": "custom.pointSize","value": 3},{"id": "custom.axisSoftMin"}]},{"matcher": {"id": "byName","options": "总已用"},"properties": [{"id": "color","value": {"fixedColor": "orange","mode": "fixed"}}]}]},"gridPos": {"h": 7,"w": 6,"x": 12,"y": 11},"id": 195,"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__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": true,"expr": "sum(node_memory_MemTotal_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"} - node_memory_MemAvailable_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"})","format": "time_series","hide": false,"interval": "","intervalFactor": 1,"legendFormat": "总已用","range": true,"refId": "B","step": 4},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": true,"expr": "sum(node_memory_MemTotal_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"})","format": "time_series","hide": false,"instant": false,"interval": "","intervalFactor": 1,"legendFormat": "总内存","refId": "A","step": 4},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": true,"expr": "(sum(node_memory_MemTotal_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"} - node_memory_MemAvailable_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}) / sum(node_memory_MemTotal_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}))*100","format": "time_series","hide": false,"interval": "","intervalFactor": 1,"legendFormat": "总平均%","range": true,"refId": "H"}],"title": "整体总内存与整体平均内存使用率","type": "timeseries"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"description": "","fieldConfig": {"defaults": {"color": {"mode": "palette-classic"},"custom": {"axisBorderShow": false,"axisCenteredZero": false,"axisColorMode": "series","axisLabel": "总磁盘使用量","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": "平均%"},"properties": [{"id": "unit","value": "percent"},{"id": "decimals","value": 2},{"id": "custom.axisLabel","value": "总平均使用率"},{"id": "custom.lineWidth","value": 1},{"id": "custom.showPoints","value": "always"},{"id": "custom.pointSize","value": 3},{"id": "custom.axisSoftMin"}]},{"matcher": {"id": "byName","options": "总磁盘量"},"properties": [{"id": "color","value": {"fixedColor": "#C4162A","mode": "fixed"}},{"id": "custom.drawStyle","value": "points"},{"id": "custom.pointSize","value": 3}]},{"matcher": {"id": "byName","options": "总使用量"},"properties": [{"id": "color","value": {"fixedColor": "orange","mode": "fixed"}}]}]},"gridPos": {"h": 7,"w": 6,"x": 18,"y": 11},"id": 197,"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__VICTORIAMETRICS-PROD-ALL}"},"exemplar": true,"expr": "sum(avg(node_filesystem_size_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",fstype=~\"xfs|ext.*\"})by(device,instance)) - sum(avg(node_filesystem_free_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",fstype=~\"xfs|ext.*\"})by(device,instance))","format": "time_series","instant": false,"interval": "","intervalFactor": 1,"legendFormat": "总使用量","refId": "C"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": true,"expr": "sum(avg(node_filesystem_size_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",fstype=~\"xfs|ext.*\"})by(device,instance))","format": "time_series","instant": false,"interval": "","intervalFactor": 1,"legendFormat": "总磁盘量","refId": "E"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": true,"expr": "(sum(avg(node_filesystem_size_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",fstype=~\"xfs|ext.*\"})by(device,instance)) - sum(avg(node_filesystem_free_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",fstype=~\"xfs|ext.*\"})by(device,instance))) *100/(sum(avg(node_filesystem_avail_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",fstype=~\"xfs|ext.*\"})by(device,instance))+(sum(avg(node_filesystem_size_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",fstype=~\"xfs|ext.*\"})by(device,instance)) - sum(avg(node_filesystem_free_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",fstype=~\"xfs|ext.*\"})by(device,instance))))","format": "time_series","instant": false,"interval": "","intervalFactor": 1,"legendFormat": "平均%","refId": "A"}],"title": "整体总磁盘与整体平均磁盘使用率","type": "timeseries"},{"collapsed": true,"datasource": {"type": "prometheus","uid": "WAYOn0FGz"},"gridPos": {"h": 1,"w": 24,"x": 0,"y": 18},"id": 189,"panels": [{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"description": "本看板中的:磁盘总量、使用量、可用量、使用率保持和df命令的Size、Used、Avail、Use% 列的值一致,并且Use%的值会四舍五入保留一位小数,会更加准确。\n\n注:df中Use%算法为:(size - free) * 100 / (avail + (size - free)),结果是整除则为该值,非整除则为该值+1,结果的单位是%。\n参考df命令源码:","fieldConfig": {"defaults": {"color": {"mode": "thresholds"},"custom": {"align": "center","cellOptions": {"type": "auto"},"inspect": false},"displayName": "","mappings": [],"thresholds": {"mode": "percentage","steps": [{"color": "green","value": null}]},"unit": "none"},"overrides": [{"matcher": {"id": "byName","options": "分区"},"properties": [{"id": "custom.width","value": 81}]},{"matcher": {"id": "byName","options": "剩余空间"},"properties": [{"id": "unit","value": "bytes"},{"id": "decimals"},{"id": "custom.cellOptions","value": {"type": "color-text"}},{"id": "thresholds","value": {"mode": "absolute","steps": [{"color": "red","value": null},{"color": "orange","value": 10000000000},{"color": "green","value": 20000000000}]}},{"id": "custom.width","value": 72}]},{"matcher": {"id": "byName","options": "使用率"},"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": "总空间"},"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": "类型"},"properties": [{"id": "custom.width","value": 51}]},{"matcher": {"id": "byName","options": "设备名"},"properties": [{"id": "custom.width","value": 120}]}]},"gridPos": {"h": 6,"w": 8,"x": 0,"y": 19},"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": "使用率"}]},"pluginVersion": "11.0.0","targets": [{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": false,"expr": "node_filesystem_size_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}-0","format": "table","hide": false,"instant": true,"interval": "","intervalFactor": 1,"legendFormat": "总量","refId": "C"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": false,"expr": "node_filesystem_avail_bytes {instance=~\"$instance\",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__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "(node_filesystem_size_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}-node_filesystem_free_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}) *100/(node_filesystem_avail_bytes {instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}+(node_filesystem_size_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}-node_filesystem_free_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}))","format": "table","hide": false,"instant": true,"interval": "","intervalFactor": 1,"legendFormat": "","refId": "B"}],"title": "【$show_name】:分区可用空间(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": "剩余空间","Value #B": "使用率","Value #C": "总空间","device": "设备名","fstype": "类型","mountpoint": "分区"}}}],"type": "table"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"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","value": null},{"color": "#EAB839","value": 70},{"color": "red","value": 90}]},"unit": "percent"},"overrides": []},"gridPos": {"h": 6,"w": 4,"x": 8,"y": 19},"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__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "100 - (avg(irate(node_cpu_seconds_total{instance=~\"$instance\",mode=\"idle\"}[$interval])) * 100)","instant": true,"interval": "","legendFormat": "总CPU使用率","refId": "A"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": false,"expr": "avg(irate(node_cpu_seconds_total{instance=~\"$instance\",mode=\"iowait\"}[$interval])) * 100","hide": true,"instant": true,"interval": "","legendFormat": "IOwait使用率","refId": "C"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "(1 - (node_memory_MemAvailable_bytes{instance=~\"$instance\"} / (node_memory_MemTotal_bytes{instance=~\"$instance\"})))* 100","instant": true,"interval": "","legendFormat": "内存使用率","refId": "B"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": false,"expr": "(node_filesystem_size_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs\",mountpoint=\"$maxmount\"}-node_filesystem_free_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs\",mountpoint=\"$maxmount\"})*100 /(node_filesystem_avail_bytes {instance=~\"$instance\",fstype=~\"ext.*|xfs\",mountpoint=\"$maxmount\"}+(node_filesystem_size_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs\",mountpoint=\"$maxmount\"}-node_filesystem_free_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs\",mountpoint=\"$maxmount\"}))","hide": false,"instant": true,"interval": "","legendFormat": "最大分区使用率({{mountpoint}})","refId": "D"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": false,"expr": "(1 - ((node_memory_SwapFree_bytes{instance=~\"$instance\"} + 1)/ (node_memory_SwapTotal_bytes{instance=~\"$instance\"} + 1))) * 100","instant": true,"interval": "","legendFormat": "交换分区使用率","refId": "F"}],"type": "bargauge"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"fieldConfig": {"defaults": {"color": {"mode": "thresholds"},"mappings": [],"thresholds": {"mode": "absolute","steps": [{"color": "green","value": null}]},"unit": "none"},"overrides": [{"matcher": {"id": "byName","options": "运行时间"},"properties": [{"id": "thresholds","value": {"mode": "absolute","steps": [{"color": "red","value": null},{"color": "orange","value": 3600},{"color": "green","value": 7200}]}},{"id": "unit","value": "s"}]},{"matcher": {"id": "byName","options": "总内存"},"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","value": null},{"color": "orange","value": 40},{"color": "red","value": 60}]}},{"id": "decimals","value": 2}]},{"matcher": {"id": "byName","options": "总文件描述符"},"properties": [{"id": "unit","value": "short"},{"id": "thresholds","value": {"mode": "absolute","steps": [{"color": "red","value": null},{"color": "orange","value": 50000},{"color": "green","value": 200000}]}}]},{"matcher": {"id": "byName","options": "最大打开文件"},"properties": [{"id": "unit","value": "none"},{"id": "thresholds","value": {"mode": "absolute","steps": [{"color": "red","value": null},{"color": "orange","value": 10000},{"color": "green","value": 50000}]}}]}]},"gridPos": {"h": 6,"w": 4,"x": 12,"y": 19},"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__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "avg(time() - node_boot_time_seconds{instance=~\"$instance\"})","hide": false,"instant": true,"interval": "","legendFormat": "运行时间","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__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "count(node_cpu_seconds_total{instance=~\"$instance\", mode='system'})","instant": true,"interval": "","legendFormat": "CPU 核数","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__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "sum(node_memory_MemTotal_bytes{instance=~\"$instance\"})","hide": false,"instant": true,"interval": "","legendFormat": "总内存","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__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "avg(irate(node_cpu_seconds_total{instance=~\"$instance\",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__VICTORIAMETRICS-PROD-ALL}"},"exemplar": false,"expr": "node_filefd_maximum{instance=~\"$instance\"}","hide": false,"instant": true,"interval": "","legendFormat": "总文件描述符","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__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": false,"expr": "process_max_fds{job=\"node_exporter\",instance=~\"$instance\"}","hide": false,"instant": true,"interval": "","legendFormat": "最大打开文件","metrics": [{"id": "1","type": "count"}],"query": "","refId": "F","timeField": "@timestamp"}],"type": "stat"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"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","value": null},{"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下载"},"properties": [{"id": "color","value": {"fixedColor": "green","mode": "fixed"}}]},{"matcher": {"id": "byName","options": "cn-shenzhen.i-wz9cq1dcb6zwc39ehw59_cni0_out上传"},"properties": [{"id": "color","value": {"fixedColor": "yellow","mode": "fixed"}}]},{"matcher": {"id": "byName","options": "cn-shenzhen.i-wz9cq1dcb6zwc39ehw59_eth0_in下载"},"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上传"},"properties": [{"id": "color","value": {"fixedColor": "blue","mode": "fixed"}}]}]},"gridPos": {"h": 6,"w": 8,"x": 16,"y": 19},"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__VICTORIAMETRICS-PROD-ALL}"},"exemplar": true,"expr": "increase(node_network_receive_bytes_total{instance=~\"$instance\",device=~\"$device\"}[1m])","interval": "1m","intervalFactor": 2,"legendFormat": "{{device}}_in下载","metric": "","refId": "A","step": 600,"target": ""},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": true,"expr": "increase(node_network_transmit_bytes_total{instance=~\"$instance\",device=~\"$device\"}[1m])","hide": false,"interval": "1m","intervalFactor": 2,"legendFormat": "{{device}}_out上传","refId": "B","step": 600}],"title": "每分钟流量$device","type": "timeseries"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"description": "","fieldConfig": {"defaults": {"color": {"mode": "palette-classic"},"custom": {"axisBorderShow": false,"axisCenteredZero": false,"axisColorMode": "series","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": "percent"},"overrides": [{"matcher": {"id": "byRegexp","options": "/.*总使用率/"},"properties": [{"id": "color","value": {"fixedColor": "dark-red","mode": "fixed"}},{"id": "custom.fillOpacity","value": 0},{"id": "custom.lineWidth","value": 2}]},{"matcher": {"id": "byName","options": "磁盘IO使用率"},"properties": [{"id": "custom.axisPlacement","value": "right"},{"id": "custom.axisLabel","value": "磁盘IO使用率"},{"id": "color","value": {"fixedColor": "#0ad4ff","mode": "fixed"}}]},{"matcher": {"id": "byName","options": "用户使用率"},"properties": [{"id": "color","value": {"fixedColor": "yellow","mode": "fixed"}}]},{"matcher": {"id": "byName","options": "系统使用率"},"properties": [{"id": "color","value": {"fixedColor": "green","mode": "fixed"}}]}]},"gridPos": {"h": 8,"w": 8,"x": 0,"y": 25},"id": 207,"options": {"legend": {"calcs": ["mean","lastNotNull","max"],"displayMode": "table","placement": "bottom","showLegend": true,"sortBy": "Max","sortDesc": true},"tooltip": {"mode": "multi","sort": "desc"}},"pluginVersion": "10.0.2","targets": [{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "(1 - avg(irate(node_cpu_seconds_total{instance=~\"$instance\",mode=\"idle\"}[$interval])) by (instance))*100","format": "time_series","hide": false,"interval": "","intervalFactor": 1,"legendFormat": "总使用率","refId": "F","step": 240},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","expr": "avg(irate(node_cpu_seconds_total{instance=~\"$instance\",mode=\"system\"}[$interval])) by (instance) *100","format": "time_series","hide": false,"instant": false,"interval": "","intervalFactor": 1,"legendFormat": "系统使用率","refId": "A","step": 20},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "avg(irate(node_cpu_seconds_total{instance=~\"$instance\",mode=\"user\"}[$interval])) by (instance) *100","format": "time_series","hide": false,"interval": "","intervalFactor": 1,"legendFormat": "用户使用率","refId": "B","step": 240},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "avg(irate(node_cpu_seconds_total{instance=~\"$instance\",mode=\"iowait\"}[$interval])) by (instance) *100","format": "time_series","hide": false,"instant": false,"interval": "","intervalFactor": 1,"legendFormat": "磁盘IO使用率","refId": "D","step": 240}],"title": "CPU使用率","type": "timeseries"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"fieldConfig": {"defaults": {"color": {"mode": "palette-classic"},"custom": {"axisBorderShow": false,"axisCenteredZero": false,"axisColorMode": "series","axisLabel": "剩余内存","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": "可用"},"properties": [{"id": "color","value": {"fixedColor": "#9ac48a","mode": "fixed"}},{"id": "custom.lineWidth","value": 2}]},{"matcher": {"id": "byName","options": "总内存"},"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": "使用率"},"properties": [{"id": "color","value": {"fixedColor": "#00d1ff","mode": "fixed"}},{"id": "custom.lineWidth","value": 1},{"id": "unit","value": "percent"},{"id": "custom.axisLabel","value": "内存使用率"},{"id": "custom.pointSize","value": 3},{"id": "custom.showPoints","value": "always"},{"id": "custom.axisPlacement","value": "right"},{"id": "custom.axisSoftMin"}]},{"matcher": {"id": "byName","options": "已用"},"properties": [{"id": "color","value": {"fixedColor": "orange","mode": "fixed"}}]}]},"gridPos": {"h": 8,"w": 8,"x": 8,"y": 25},"id": 156,"options": {"legend": {"calcs": ["mean","lastNotNull","max"],"displayMode": "table","placement": "bottom","showLegend": true,"sortBy": "Max","sortDesc": true},"tooltip": {"mode": "multi","sort": "desc"}},"pluginVersion": "10.0.2","targets": [{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "node_memory_MemAvailable_bytes{instance=~\"$instance\"}","format": "time_series","hide": false,"interval": "","intervalFactor": 1,"legendFormat": "可用","refId": "F","step": 4},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": true,"expr": "node_memory_MemTotal_bytes{instance=~\"$instance\"}","format": "time_series","hide": false,"instant": false,"interval": "2m","intervalFactor": 1,"legendFormat": "总内存","refId": "A","step": 4},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "node_memory_MemTotal_bytes{instance=~\"$instance\"} - node_memory_MemAvailable_bytes{instance=~\"$instance\"}","format": "time_series","hide": false,"interval": "","intervalFactor": 1,"legendFormat": "已用","refId": "B","step": 4},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": true,"expr": "(1 - (node_memory_MemAvailable_bytes{instance=~\"$instance\"} / (node_memory_MemTotal_bytes{instance=~\"$instance\"})))* 100","format": "time_series","hide": false,"interval": "","intervalFactor": 1,"legendFormat": "使用率","refId": "H"}],"title": "内存信息","type": "timeseries"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"description": "","fieldConfig": {"defaults": {"color": {"mode": "continuous-GrYlRd"},"custom": {"axisBorderShow": false,"axisCenteredZero": false,"axisColorMode": "series","axisLabel": "容量使用率","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使用率"}]}]},"gridPos": {"h": 8,"w": 8,"x": 16,"y": 25},"id": 174,"options": {"legend": {"calcs": ["mean","lastNotNull","max"],"displayMode": "table","placement": "bottom","showLegend": true},"tooltip": {"mode": "multi","sort": "desc"}},"pluginVersion": "10.0.2","targets": [{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": true,"expr": "(node_filesystem_size_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}-node_filesystem_free_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}) *100/(node_filesystem_avail_bytes {instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}+(node_filesystem_size_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}-node_filesystem_free_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}))","format": "time_series","instant": false,"interval": "","intervalFactor": 1,"legendFormat": "容量%:{{mountpoint}}","refId": "A"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": true,"expr": "(1 - node_filesystem_files_free{instance=~\"$instance\",fstype=~\"ext.?|xfs|nfs\",mountpoint !~\".*pod.*\"} / node_filesystem_files{instance=~\"$instance\",fstype=~\"ext.?|xfs|nfs\",mountpoint !~\".*pod.*\"}) * 100","hide": false,"interval": "","legendFormat": "Inodes%:{{mountpoint}}","range": true,"refId": "B"}],"title": "磁盘使用率","type": "timeseries"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"fieldConfig": {"defaults": {"color": {"mode": "palette-classic"},"custom": {"axisBorderShow": false,"axisCenteredZero": false,"axisColorMode": "series","axisLabel": "1分钟负载","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分钟负载"},"properties": [{"id": "color","value": {"fixedColor": "purple","mode": "fixed"}}]},{"matcher": {"id": "byName","options": "1分钟负载"},"properties": [{"id": "color","value": {"fixedColor": "orange","mode": "fixed"}}]},{"matcher": {"id": "byName","options": "5分钟负载"},"properties": [{"id": "color","value": {"fixedColor": "blue","mode": "fixed"}}]},{"matcher": {"id": "byRegexp","options": "/.*总核数/"},"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": 33},"id": 13,"options": {"legend": {"calcs": ["mean","lastNotNull","max"],"displayMode": "table","placement": "bottom","showLegend": true},"tooltip": {"mode": "multi","sort": "desc"}},"pluginVersion": "10.0.2","targets": [{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": true,"expr": "node_load1{instance=~\"$instance\"}","format": "time_series","instant": false,"interval": "","intervalFactor": 1,"legendFormat": "1分钟负载","metric": "","refId": "A","step": 20,"target": ""},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": true,"expr": " sum(count(node_cpu_seconds_total{instance=~\"$instance\", mode='system'}) by (cpu,instance)) by(instance)","format": "time_series","instant": false,"interval": "2m","intervalFactor": 1,"legendFormat": "CPU总核数","refId": "D","step": 20},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "node_load5{instance=~\"$instance\"}","format": "time_series","instant": false,"interval": "","intervalFactor": 1,"legendFormat": "5分钟负载","refId": "B","step": 20},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "node_load15{instance=~\"$instance\"}","format": "time_series","instant": false,"interval": "","intervalFactor": 1,"legendFormat": "15分钟负载","refId": "C","step": 20}],"title": "系统平均负载","type": "timeseries"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"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": "等待IO完成阻塞的进程"},"properties": [{"id": "color","value": {"fixedColor": "red","mode": "fixed"}}]},{"matcher": {"id": "byName","options": "运行态的进程"},"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": 33},"id": 202,"options": {"legend": {"calcs": ["mean","lastNotNull","max"],"displayMode": "table","placement": "bottom","showLegend": true},"tooltip": {"mode": "multi","sort": "desc"}},"pluginVersion": "10.0.2","targets": [{"calculatedInterval": "2m","datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"datasourceErrors": {},"errors": {},"exemplar": true,"expr": "node_procs_running{instance=~\"$instance\"}","format": "time_series","interval": "1m","intervalFactor": 1,"legendFormat": "运行态的进程","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__VICTORIAMETRICS-PROD-ALL}"},"datasourceErrors": {},"errors": {},"exemplar": true,"expr": "node_procs_blocked{instance=~\"$instance\"}","format": "time_series","interval": "1m","intervalFactor": 1,"legendFormat": "等待IO完成阻塞的进程","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": "进程运行状态","type": "timeseries"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"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": "总使用FD"},"properties": [{"id": "color","value": {"fixedColor": "red","mode": "fixed"}}]},{"matcher": {"id": "byName","options": "总使用FD占比"},"properties": [{"id": "color","value": {"fixedColor": "yellow","mode": "fixed"}}]},{"matcher": {"id": "byName","options": "每秒上下文切换"},"properties": [{"id": "color","value": {"fixedColor": "dark-blue","mode": "fixed"}}]},{"matcher": {"id": "byRegexp","options": "/.*占比/"},"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": "进程使用FD占比"},"properties": [{"id": "color","value": {"fixedColor": "dark-orange","mode": "fixed"}}]}]},"gridPos": {"h": 8,"w": 8,"x": 16,"y": 33},"hideTimeOverride": false,"id": 16,"options": {"legend": {"calcs": [],"displayMode": "list","placement": "bottom","showLegend": true},"tooltip": {"mode": "multi","sort": "desc"}},"pluginVersion": "10.0.2","targets": [{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": true,"expr": "irate(node_context_switches_total{instance=~\"$instance\"}[$interval])","interval": "","intervalFactor": 1,"legendFormat": "每秒上下文切换","range": true,"refId": "A"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": true,"expr": "node_filefd_allocated{instance=~\"$instance\"}","format": "time_series","instant": false,"interval": "","intervalFactor": 1,"legendFormat": "总使用FD","refId": "B"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": true,"expr": "(node_filefd_allocated{instance=~\"$instance\"}/node_filefd_maximum{instance=~\"$instance\"}) *100","format": "time_series","hide": false,"instant": false,"interval": "","intervalFactor": 1,"legendFormat": "总使用FD占比","refId": "C"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"editorMode": "code","exemplar": true,"expr": "(process_open_fds{instance=~\"$instance\"}/process_max_fds{instance=~\"$instance\"}) *100","format": "time_series","hide": false,"instant": false,"interval": "","intervalFactor": 1,"legendFormat": "进程使用FD占比","refId": "D"}],"title": "文件描述符(FD)/每秒上下文切换","type": "timeseries"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"description": "Read time seconds 每个磁盘分区读操作花费的秒数\n\nWrite time seconds 每个磁盘分区写操作花费的秒数\n\nIO time seconds 每个磁盘分区输入/输出操作花费的秒数\n\nIO time weighted seconds每个磁盘分区输入/输出操作花费的加权秒数","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": "s"},"overrides": [{"matcher": {"id": "byName","options": "vda"},"properties": [{"id": "color","value": {"fixedColor": "#6ED0E0","mode": "fixed"}}]},{"matcher": {"id": "byRegexp","options": "/,*_读取$/"},"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": 41},"id": 160,"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__VICTORIAMETRICS-PROD-ALL}"},"expr": "irate(node_disk_read_time_seconds_total{instance=~\"$instance\"}[$interval]) / irate(node_disk_reads_completed_total{instance=~\"$instance\"}[$interval])","format": "time_series","hide": false,"instant": false,"interval": "","intervalFactor": 1,"legendFormat": "{{device}}_读取","refId": "B"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "irate(node_disk_write_time_seconds_total{instance=~\"$instance\"}[$interval]) / irate(node_disk_writes_completed_total{instance=~\"$instance\"}[$interval])","format": "time_series","hide": false,"instant": false,"interval": "","intervalFactor": 1,"legendFormat": "{{device}}_写入","refId": "C"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "irate(node_disk_io_time_seconds_total{instance=~\"$instance\"}[$interval])","format": "time_series","hide": true,"interval": "","intervalFactor": 1,"legendFormat": "{{device}}","refId": "A","step": 10},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "irate(node_disk_io_time_weighted_seconds_total{instance=~\"$instance\"}[$interval])","format": "time_series","hide": true,"interval": "","intervalFactor": 1,"legendFormat": "{{device}}_加权","refId": "D"}],"title": "每次IO读写的耗时(参考:小于100ms)","type": "timeseries"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"description": "Reads completed: 每个磁盘分区每秒读完成次数\n\nWrites completed: 每个磁盘分区每秒写完成次数\n\nIO now 每个磁盘分区每秒正在处理的输入/输出请求数","fieldConfig": {"defaults": {"color": {"mode": "palette-classic"},"custom": {"axisBorderShow": false,"axisCenteredZero": false,"axisColorMode": "text","axisLabel": "读取(-)/写入(+)I/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": "/.*_读取$/"},"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": 41},"id": 161,"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__VICTORIAMETRICS-PROD-ALL}"},"expr": "irate(node_disk_reads_completed_total{instance=~\"$instance\"}[$interval])","format": "time_series","hide": false,"interval": "","intervalFactor": 1,"legendFormat": "{{device}}_读取","refId": "A","step": 10},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "irate(node_disk_writes_completed_total{instance=~\"$instance\"}[$interval])","format": "time_series","hide": false,"interval": "","intervalFactor": 1,"legendFormat": "{{device}}_写入","refId": "B","step": 10},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "node_disk_io_now{instance=~\"$instance\"}","format": "time_series","hide": true,"interval": "","intervalFactor": 1,"legendFormat": "{{device}}","refId": "C"}],"title": "磁盘读写速率(IOPS)","type": "timeseries"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"description": "Read bytes 每个磁盘分区每秒读取的比特数\nWritten bytes 每个磁盘分区每秒写入的比特数","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": "Bps"},"overrides": [{"matcher": {"id": "byName","options": "vda_write"},"properties": [{"id": "color","value": {"fixedColor": "#6ED0E0","mode": "fixed"}}]},{"matcher": {"id": "byRegexp","options": "/.*_读取$/"},"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": 41},"id": 168,"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__VICTORIAMETRICS-PROD-ALL}"},"expr": "irate(node_disk_read_bytes_total{instance=~\"$instance\"}[$interval])","format": "time_series","interval": "","intervalFactor": 1,"legendFormat": "{{device}}_读取","refId": "A","step": 10},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "irate(node_disk_written_bytes_total{instance=~\"$instance\"}[$interval])","format": "time_series","hide": false,"interval": "","intervalFactor": 1,"legendFormat": "{{device}}_写入","refId": "B","step": 10}],"title": "每秒磁盘读写容量","type": "timeseries"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"description": "每一秒钟的自然时间内,花费在I/O上的耗时。(wall-clock time)\n\nnode_disk_io_time_seconds_total:\n磁盘花费在输入/输出操作上的秒数。该值为累加值。(Milliseconds Spent Doing I/Os)\n\nirate(node_disk_io_time_seconds_total[1m]):\n计算每秒的速率:(last值-last前一个值)/时间戳差值,即:1秒钟内磁盘花费在I/O操作的时间占比。","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_每秒I/O操作%"},"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": "磁盘花费在I/O操作占比"},"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": 41},"id": 175,"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__VICTORIAMETRICS-PROD-ALL}"},"exemplar": true,"expr": "irate(node_disk_io_time_seconds_total{instance=~\"$instance\"}[$interval])","format": "time_series","interval": "","intervalFactor": 1,"legendFormat": "{{device}}_每秒I/O操作%","refId": "C"}],"title": "每1秒内I/O操作耗时占比(I/O Util)","type": "timeseries"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"description": "Sockets_used - 已使用的所有协议套接字总量\n\nCurrEstab - 当前状态为 ESTABLISHED 或 CLOSE-WAIT 的 TCP 连接数\n\nTCP_alloc - 已分配(已建立、已申请到sk_buff)的TCP套接字数量\n\nTCP_tw - 等待关闭的TCP连接数\n\nUDP_inuse - 正在使用的 UDP 套接字数量\n\nRetransSegs - TCP 重传报文数\n\nOutSegs - TCP 发送的报文数\n\nInSegs - TCP 接收的报文数","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": "已使用的所有协议套接字总量"},{"id": "custom.showPoints","value": "always"}]}]},"gridPos": {"h": 8,"w": 16,"x": 0,"y": 49},"id": 158,"interval": "","options": {"legend": {"calcs": ["last","max"],"displayMode": "table","placement": "right","showLegend": true,"sortBy": "Max","sortDesc": true},"tooltip": {"mode": "multi","sort": "desc"}},"pluginVersion": "10.0.2","targets": [{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "node_netstat_Tcp_CurrEstab{instance=~\"$instance\"}","format": "time_series","hide": false,"instant": false,"interval": "","intervalFactor": 1,"legendFormat": "CurrEstab","refId": "A","step": 20},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "node_sockstat_TCP_tw{instance=~\"$instance\"}","format": "time_series","interval": "","intervalFactor": 1,"legendFormat": "TCP_tw","refId": "D"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": true,"expr": "node_sockstat_sockets_used{instance=~\"$instance\"}","hide": false,"interval": "2m","intervalFactor": 1,"legendFormat": "Sockets_used","refId": "B"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "node_sockstat_UDP_inuse{instance=~\"$instance\"}","interval": "","legendFormat": "UDP_inuse","refId": "C"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "node_sockstat_TCP_alloc{instance=~\"$instance\"}","interval": "","legendFormat": "TCP_alloc","refId": "E"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "irate(node_netstat_Tcp_PassiveOpens{instance=~\"$instance\"}[$interval])","hide": true,"interval": "","legendFormat": "{{instance}}_Tcp_PassiveOpens","refId": "G"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "irate(node_netstat_Tcp_ActiveOpens{instance=~\"$instance\"}[$interval])","hide": true,"interval": "","legendFormat": "{{instance}}_Tcp_ActiveOpens","refId": "F"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "irate(node_netstat_Tcp_InSegs{instance=~\"$instance\"}[$interval])","interval": "","legendFormat": "Tcp_InSegs","refId": "H"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "irate(node_netstat_Tcp_OutSegs{instance=~\"$instance\"}[$interval])","interval": "","legendFormat": "Tcp_OutSegs","refId": "I"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "irate(node_netstat_Tcp_RetransSegs{instance=~\"$instance\"}[$interval])","hide": false,"interval": "","legendFormat": "Tcp_RetransSegs","refId": "J"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "irate(node_netstat_TcpExt_ListenDrops{instance=~\"$instance\"}[$interval])","hide": true,"interval": "","legendFormat": "","refId": "K"}],"title": "网络Socket连接信息","type": "timeseries"},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"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": "bps"},"overrides": [{"matcher": {"id": "byRegexp","options": "/.*_out上传$/"},"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下载$/"},"properties": [{"id": "color","value": {"fixedColor": "yellow","mode": "fixed"}}]}]},"gridPos": {"h": 8,"w": 8,"x": 16,"y": 49},"id": 157,"options": {"legend": {"calcs": ["mean","lastNotNull","max"],"displayMode": "table","placement": "bottom","showLegend": true},"tooltip": {"mode": "multi","sort": "desc"}},"pluginVersion": "10.0.2","targets": [{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"exemplar": true,"expr": "irate(node_network_receive_bytes_total{instance=~\"$instance\",device=~\"$device\"}[$interval])*8","format": "time_series","interval": "","intervalFactor": 1,"legendFormat": "{{device}}_in下载","refId": "A","step": 4},{"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"expr": "irate(node_network_transmit_bytes_total{instance=~\"$instance\",device=~\"$device\"}[$interval])*8","format": "time_series","interval": "","intervalFactor": 1,"legendFormat": "{{device}}_out上传","refId": "B","step": 4}],"title": "每秒网络带宽使用$device","type": "timeseries"}],"title": "🧮资源明细:【$show_name】【$instance】【$iid】","type": "row"}],"refresh": "1m","revision": 1,"schemaVersion": 39,"tags": ["Prometheus","node_exporter","StarsL.cn","TenSunS"],"templating": {"list": [{"current": {},"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"definition": "label_values(node_uname_info, vendor)","hide": 0,"includeAll": false,"label": "云厂商","multi": false,"name": "vendor","options": [],"query": {"query": "label_values(node_uname_info, vendor)","refId": "StandardVariableQuery"},"refresh": 2,"regex": "","skipUrlSync": false,"sort": 5,"tagValuesQuery": "","tagsQuery": "","type": "query","useTags": false},{"current": {},"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"definition": "label_values(node_uname_info{vendor=~\"$vendor\"}, account)","hide": 0,"includeAll": false,"label": "账户","multi": false,"name": "account","options": [],"query": {"query": "label_values(node_uname_info{vendor=~\"$vendor\"}, account)","refId": "StandardVariableQuery"},"refresh": 2,"regex": "","skipUrlSync": false,"sort": 5,"tagValuesQuery": "","tagsQuery": "","type": "query","useTags": false},{"current": {},"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"definition": "label_values(node_uname_info{vendor=~\"$vendor\",account=~\"$account\"},group)","hide": 0,"includeAll": true,"label": "分组","multi": false,"name": "group","options": [],"query": {"query": "label_values(node_uname_info{vendor=~\"$vendor\",account=~\"$account\"},group)","refId": "PrometheusVariableQueryEditor-VariableQuery"},"refresh": 2,"regex": "","skipUrlSync": false,"sort": 5,"tagValuesQuery": "","tagsQuery": "","type": "query","useTags": false},{"current": {},"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"definition": "label_values(node_uname_info{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\"},name)","hide": 0,"includeAll": true,"label": "名称","multi": false,"name": "name","options": [],"query": {"query": "label_values(node_uname_info{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\"},name)","refId": "PrometheusVariableQueryEditor-VariableQuery"},"refresh": 2,"regex": "","skipUrlSync": false,"sort": 5,"tagValuesQuery": "","tagsQuery": "","type": "query","useTags": false},{"allFormat": "glob","current": {},"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"definition": "label_values(node_uname_info{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\"},instance)","hide": 0,"includeAll": false,"label": "IP","multi": false,"multiFormat": "regex values","name": "instance","options": [],"query": {"query": "label_values(node_uname_info{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\"},instance)","refId": "PrometheusVariableQueryEditor-VariableQuery"},"refresh": 2,"regex": "","skipUrlSync": false,"sort": 5,"tagValuesQuery": "","tagsQuery": "","type": "query","useTags": false},{"auto": false,"auto_count": 100,"auto_min": "1m","current": {"selected": false,"text": "3m","value": "3m"},"hide": 2,"label": "间隔","name": "interval","options": [{"selected": true,"text": "3m","value": "3m"}],"query": "3m","queryValue": "","refresh": 2,"skipUrlSync": false,"type": "interval"},{"current": {},"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"definition": "query_result(count(node_uname_info{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}))","hide": 2,"includeAll": false,"label": "主机数","multi": false,"name": "total","options": [],"query": {"query": "query_result(count(node_uname_info{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}))","refId": "StandardVariableQuery"},"refresh": 2,"regex": "/{} (.*) .*/","skipUrlSync": false,"sort": 0,"tagValuesQuery": "","tagsQuery": "","type": "query","useTags": false},{"allFormat": "glob","current": {},"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"definition": "label_values(node_network_info{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",instance=~\"$instance\",device!~'tap.*|veth.*|br.*|docker.*|virbr.*|lo.*|cni.*'},device)","hide": 0,"includeAll": true,"label": "网卡","multi": true,"multiFormat": "regex values","name": "device","options": [],"query": {"query": "label_values(node_network_info{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",instance=~\"$instance\",device!~'tap.*|veth.*|br.*|docker.*|virbr.*|lo.*|cni.*'},device)","refId": "StandardVariableQuery"},"refresh": 2,"regex": "","skipUrlSync": false,"sort": 1,"tagValuesQuery": "","tagsQuery": "","type": "query","useTags": false},{"current": {},"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"definition": "query_result(topk(1,sort_desc (max(node_filesystem_size_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",instance=~\"$instance\",fstype=~\"ext.?|xfs\",mountpoint!~\".*pods.*\"}) by (mountpoint))))","hide": 2,"includeAll": false,"label": "最大挂载目录","multi": false,"name": "maxmount","options": [],"query": {"query": "query_result(topk(1,sort_desc (max(node_filesystem_size_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",instance=~\"$instance\",fstype=~\"ext.?|xfs\",mountpoint!~\".*pods.*\"}) by (mountpoint))))","refId": "StandardVariableQuery"},"refresh": 2,"regex": "/.*\\\"(.*)\\\".*/","skipUrlSync": false,"sort": 5,"tagValuesQuery": "","tagsQuery": "","type": "query","useTags": false},{"current": {},"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"definition": "label_values(node_uname_info{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",instance=~\"$instance\"}, name)","hide": 2,"includeAll": false,"label": "展示使用的名称","multi": false,"name": "show_name","options": [],"query": {"query": "label_values(node_uname_info{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",instance=~\"$instance\"}, name)","refId": "StandardVariableQuery"},"refresh": 2,"regex": "","skipUrlSync": false,"sort": 5,"tagValuesQuery": "","tagsQuery": "","type": "query","useTags": false},{"allFormat": "glob","current": {},"datasource": {"type": "prometheus","uid": "${DS__VICTORIAMETRICS-PROD-ALL}"},"definition": "label_values(node_uname_info{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\"},iid)","hide": 2,"includeAll": false,"label": "实例ID","multi": false,"multiFormat": "regex values","name": "iid","options": [],"query": {"query": "label_values(node_uname_info{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\"},iid)","refId": "StandardVariableQuery"},"refresh": 2,"regex": "","skipUrlSync": false,"sort": 5,"tagValuesQuery": "","tagsQuery": "","type": "query","useTags": false},{"current": {"selected": false,"text": "","value": ""},"description": "总览表名称字段支持筛选,可以使用正则,如:.*aa.*bb.*","hide": 0,"label": "查询","name": "sname","options": [{"selected": true,"text": "","value": ""}],"query": "","skipUrlSync": false,"type": "textbox"}]},"time": {"from": "now-30m","to": "now"},"timeRangeUpdatedDuringEditOrView": false,"timepicker": {"hidden": false,"now": true,"refresh_intervals": ["30s","1m","3m","5m","15m","30m"],"time_options": ["5m","15m","1h","6h","12h","24h","2d","7d","30d"]},"timezone": "browser","title": "Node Exporter Dashboard 20240520 TenSunS自动同步版","uid": "StarsL-TenSunS-node","version": 9,"weekStart": ""
}


http://www.ppmy.cn/devtools/114103.html

相关文章

上线跨境电商商城的步骤

上线一个跨境电商商城涉及多个步骤&#xff0c;从前期准备到上线后的维护。以下是一些关键步骤&#xff1a; 1. 市场调研与规划 目标市场分析&#xff1a;研究目标市场的需求、竞争对手和消费者行为。法律法规&#xff1a;了解并遵守目标市场的法律法规&#xff0c;包括税收、…

Unity携程Coroutine用法

一.携程概述 官方的解释是&#xff0c;携程允许你可以在多个帧中执行任务。在Unity中&#xff0c;携程是一个可以暂停并在后续帧中从暂停处继续执行的方法。 二.携程写法 下面示例使用携程和Update打印前5帧的时间间隔&#xff0c;展示了携程的基础写法 using System.Colle…

CentOS 入门必备基础知识

CentOS 是 Linux 发行版之一&#xff0c;基于 Red Hat Enterprise Linux&#xff08;RHEL&#xff09;&#xff0c;提供免费的企业级操作系统。对于初学者和系统管理员来说&#xff0c;了解 CentOS 的基础知识是必不可少的。本文将带你快速掌握 CentOS 的入门要点&#xff0c;帮…

vue-ts-demo

npm i -g vue/cli PS D:\kwai\vue3\project> vue create vue3-te-demo element-plus 一个 Vue 3 UI 框架 | Element Plus https://element-plus.org/zh-CN/guide/installation.html 安装&#xff1a; npm install element-plus --save 完整引入使用&#xff1a; 使用&…

STM32 芯片启动过程

目录 一、前言二、STM32 的启动模式三、STM32 启动文件分析1、栈 Stack2、堆 Heap3、中断向量表 Vectors3.1 中断响应流程 4、复位程序 Reset_Handler5、中断服务函数6、用户堆栈初始化 四、STM32 启动流程分析1、初始化 SP、PC 及中断向量表2、设置系统时钟3、初始化堆栈并进入…

判断变量是否为有限数字(非无穷大或NaN)math.isfinite() 判断变量是否为无穷大(正无穷大或负无穷大)math.isinf()

【小白从小学Python、C、Java】 【考研初试复试毕业设计】 【Python基础AI数据分析】 判断变量是否为有限数字&#xff08;非无穷大或NaN&#xff09; math.isfinite() 判断变量是否为无穷大&#xff08;正无穷大或负无穷大&#xff09; math.isinf() 请问关于以下代码表述错误…

qt信号与槽(自定义)

自定义信号与槽 在qt里&#xff0c;我们可以自己去定义信号与槽。 这里举个栗子&#xff1a; 信号的定义 在我们类里边定义一个信号&#xff0c;我们需要用signals&#xff1a;来声明&#xff0c;不用再去cpp文件里边定义。而且返回值必须是void&#xff0c;可以有参数。 槽…

构建自己的文生图工具:Python + Stable Diffusion + CUDA

构建自己的文生图工具&#xff1a;Python Stable Diffusion CUDA 前言概述环境搭建安装PyTorch安装Stable Diffusion编写Python代码结论结语 前言 在这个数字化和人工智能飞速发展的时代&#xff0c;图像生成技术正逐渐成为现实。想象一下&#xff0c;只需输入几个关键词&…

ffmpeg批量图片格式转换

参考别的地方的弄的 echo off::在下方设置要处理的视频或图片 set Ext*.png,*.bmpmd outputecho 开始视频转换::在下方设置输出格式&#xff0c;这里输出为mp4&#xff0c;可自行更改 for %%a in (%Ext%) do (echo 正在转换&#xff1a;%%a"../ffmpeg.exe" -logleve…

驱动开发知识点

裸机开发 ——————————————linux驱动 SOC&#xff1a; 定义&#xff1a;SOC&#xff0c;全称System on Chip&#xff0c;是一种集成了多个功能模块的芯片&#xff0c;包括处理器、内存、外设、接口等。它将原本分散在多个芯片上的功能集成到一个芯片上&#xff0…

Redis 底层数据结构,一文详解

Redis 底层用 C 语言实现&#xff0c;不同版本的数据类型使用的数据结构也不同&#xff0c;下面详细看 SDS 字符串在 Redis 中很常用&#xff0c;键值对的所有键都是字符串&#xff0c;值有时候也是字符串 Redis 是用 C 语言实现的&#xff0c;但是字符串没有直接用 C 语言的…

Photoshop使用方法大全

0、快捷键 1&#xff09;Alt Delete&#xff1a;填充前景色 2&#xff09;Ctrl D&#xff1a;取消选区 3&#xff09;Ctrl T&#xff1a;自由变换&#xff0c;等比缩放、旋转的效果 4&#xff09;Ctrl R&#xff1a;显示标尺 5&#xff09;Ctrl J&#xff1a;复制一个…

【LLM多模态】文生视频评测基准VBench

note VBench的16个维度自动化评估指标代码实践&#xff08;待完成&#xff09;16个维度的prompt举例人类偏好标注&#xff1a;计算VBench评估结果与人类偏好之间的相关性、用于DPO微调 文章目录 note一、相关背景二、VBench评测基准概述&#xff1a;论文如何解决这个问题&…

算法-排序算法(冒泡选择插入希尔快速归并堆)

1.算法概述 1.1什么是算法 算法是特定问题的求解步骤的描述&#xff0c;是独立存在的一种解决问题的思想和方法。对于算法而言计算机编程语言并不重要&#xff0c;可以用任何计算机编程语言来编写算法。 程序数据结构算法 1.2数据结构和算法的区别和联系 数据结构只是静态…

基于yolov8的文本表格检测系统python源码+onnx模型+评估指标曲线+精美GUI界面

【算法介绍】 YOLOv8&#xff0c;作为YOLO&#xff08;You Only Look Once&#xff09;系列的最新版本&#xff0c;于2023年由Ultralytics公司发布&#xff0c;是当前性能卓越的目标检测器之一。它不仅在通用目标检测上表现优异&#xff0c;还被广泛应用于各种视觉AI任务&…

Burpsuit并发漏洞靶场wp

文章目录 前言一、并发的利用二、利用步骤1.抓包获取减免卷的数据包2.使用turbo intruder插件并发3.使用repeater创造并发 前言 靶场&#xff1a;https://portswigger.net/web-security/race-conditions#limit-overrun-race-conditions 一、并发的利用 并发漏洞的利用主要使…

【git系列】git中的那些迷惑的术语以及概念详解

引子 连着写了几篇关于git的文章&#xff0c;满满对git有了更深入的了解。但是git里面还是有很多术语让人困惑。下面我逐一解释下。 当我们把它们搞清楚后就发现&#xff0c;没那么难懂&#xff0c;心里作用占了很大一部分。 事实是&#xff1a; 1&#xff09;“索引”、“…

opencv图像透视处理

引言 在图像处理与计算机视觉领域&#xff0c;透视变换&#xff08;Perspective Transformation&#xff09;是一种重要的图像校正技术&#xff0c;它允许我们根据图像中已知的四个点&#xff08;通常是矩形的四个角&#xff09;和目标位置的四个点&#xff0c;将图像从一个视…

媒体动态:播客增长的重大转变、社交媒体创新和搜索动态

关键亮点&#xff1a; 关键亮点&#xff1a; 电视和音频&#xff1a;播客继续迅速增长&#xff0c;但主要由少数几档节目驱动。付费社交&#xff1a;Meta在最新的一次成功财报电话会议后继续加倍推进AI进展&#xff0c;X起诉GARM和广告商反垄断&#xff0c;Snap的订阅计划继续…

Brave编译指南2024 Windows篇:拉取Brave源码(六)

1.引言 在编译Brave浏览器之前&#xff0c;首先需要获取项目的源码。源码是Brave浏览器的核心组成部分&#xff0c;包含了所有的功能、特性和组件代码。通过获取和管理源码&#xff0c;开发者可以深入了解Brave的实现细节&#xff0c;并进行二次开发和定制化改进。为了确保源码…