Last active
June 5, 2025 17:18
-
-
Save skypesky/94f65979606e2c0f290eb3dda70bad07 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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.22更新,优化重要指标展示。使用Grafana10新样式重建,新增健康评分概念,并新增了整体资源消耗信息的一些图表。包含整体资源展示与资源明细图表:CPU 内存 磁盘 IO 网络等监控指标。https://github.com/starsliao/TenSunS", | |
"editable": true, | |
"fiscalYearStartMonth": 0, | |
"graphTooltip": 0, | |
"id": 20, | |
"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" | |
} | |
], | |
"panels": [ | |
{ | |
"collapsed": false, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 187, | |
"panels": [], | |
"title": "🏡资源总览:当前选中主机【$show_name】实例:$instance", | |
"type": "row" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": [ | |
{ | |
"options": { | |
"0": { | |
"index": 0, | |
"text": "-" | |
} | |
}, | |
"type": "value" | |
} | |
], | |
"max": 100, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
}, | |
"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": 69 | |
}, | |
{ | |
"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)" | |
}, | |
{ | |
"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)" | |
}, | |
{ | |
"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)" | |
}, | |
{ | |
"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)" | |
}, | |
{ | |
"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": 63 | |
} | |
] | |
}, | |
{ | |
"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)" | |
}, | |
{ | |
"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)" | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 5000 | |
}, | |
{ | |
"color": "rgba(245, 54, 54, 0.9)", | |
"value": 20000 | |
} | |
] | |
} | |
}, | |
{ | |
"id": "custom.width", | |
"value": 69 | |
}, | |
{ | |
"id": "decimals" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "CPU" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 63 | |
}, | |
{ | |
"id": "decimals", | |
"value": 0 | |
}, | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"type": "color-text" | |
} | |
}, | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "blue", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "IP" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 111 | |
}, | |
{ | |
"id": "custom.filterable", | |
"value": true | |
}, | |
{ | |
"id": "custom.align", | |
"value": "left" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "主机名" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.filterable", | |
"value": true | |
}, | |
{ | |
"id": "custom.width", | |
"value": 255 | |
}, | |
{ | |
"id": "custom.align", | |
"value": "left" | |
}, | |
{ | |
"id": "links", | |
"value": [ | |
{ | |
"title": "$__value", | |
"url": "https://grafana.abtnet.io/d/deo12wj3203k0a/e8bf90-e7bbb4-e79c8b-e69dbf?var-interval=1m&var-k=5&orgId=1&from=now-5m&to=now&timezone=browser&var-datasource=bejkhltenvfnka&var-hostname=$__value&var-instance=bbqaqtol4cln2ja6qvf5gq3rdrkvouqnrpnhlqitg74.did.abtnet.io&var-processes=$__all&var-device=$__all&var-maxmount=%2Fdata&var-show_name=$__value&showCategory=Override%201&var-total=31" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "健康值" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 75 | |
}, | |
{ | |
"id": "thresholds", | |
"value": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "red" | |
}, | |
{ | |
"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": "Swap" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "bytes" | |
}, | |
{ | |
"id": "custom.width", | |
"value": 80 | |
}, | |
{ | |
"id": "decimals", | |
"value": 0 | |
}, | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "purple", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"type": "color-text" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "已用Swap" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "bytes" | |
}, | |
{ | |
"id": "custom.minWidth", | |
"value": 100 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "已用内存" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "bytes" | |
}, | |
{ | |
"id": "custom.width", | |
"value": 80 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "IOutil使用率*" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 110 | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 12, | |
"w": 24, | |
"x": 0, | |
"y": 1 | |
}, | |
"id": 198, | |
"options": { | |
"cellHeight": "sm", | |
"footer": { | |
"countRows": false, | |
"enablePagination": 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": "Swap使用率" | |
} | |
] | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_uname_info{} - 0", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "主机名", | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(time() - node_boot_time_seconds{})by(instance)/86400", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "运行时间", | |
"refId": "D" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_memory_MemTotal_bytes{} - 0", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "总内存", | |
"refId": "B" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "count(node_cpu_seconds_total{mode='system'}) by (instance)", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "总核数", | |
"refId": "C" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_load5{}", | |
"format": "table", | |
"instant": true, | |
"interval": "", | |
"legendFormat": "5分钟负载", | |
"refId": "L" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "(1 - avg(irate(node_cpu_seconds_total{mode=\"idle\"}[$interval])) by (instance)) * 100", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "CPU使用率", | |
"refId": "F" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "(1 - (node_memory_MemAvailable_bytes{} / (node_memory_MemTotal_bytes{})))* 100", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "内存使用率", | |
"refId": "G" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "max((node_filesystem_size_bytes{fstype=~\"ext.?|xfs\"}-node_filesystem_free_bytes{fstype=~\"ext.?|xfs\"}) *100/(node_filesystem_avail_bytes {fstype=~\"ext.?|xfs\"}+(node_filesystem_size_bytes{fstype=~\"ext.?|xfs\"}-node_filesystem_free_bytes{fstype=~\"ext.?|xfs\"})))by(instance)", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "__auto", | |
"refId": "E" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "max(irate(node_disk_read_bytes_total{}[$interval])) by (instance)", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "最大读取", | |
"refId": "H" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "max(irate(node_disk_written_bytes_total{}[$interval])) by (instance)", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "最大写入", | |
"refId": "I" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_netstat_Tcp_CurrEstab{} - 0", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "连接数", | |
"refId": "M" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_sockstat_TCP_tw{} - 0", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "TIME_WAIT", | |
"refId": "N" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "max(irate(node_network_receive_bytes_total{}[$interval])*8) by (instance)", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "下载带宽", | |
"refId": "J" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "max(irate(node_network_transmit_bytes_total{}[$interval])*8) by (instance)", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "上传带宽", | |
"refId": "K" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "((1-(1 - avg(irate(node_cpu_seconds_total{mode=\"idle\"}[$interval])) by (instance))^1.3)^(1/3)*0.5 + \r\n(1-(1 - avg(node_memory_MemAvailable_bytes{} / node_memory_MemTotal_bytes{})by (instance))^6)^(1/3)*0.3 + \r\n(1 - max(irate(node_disk_io_time_seconds_total{}[$interval]))by (instance)^1.1)^(1/2)*0.2)*100", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "__auto", | |
"refId": "O" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "max(irate(node_disk_io_time_seconds_total{}[$interval])) by (instance) *100", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "IOutil使用率", | |
"refId": "P" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_memory_SwapTotal_bytes{} - 0", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"legendFormat": "Swap", | |
"range": false, | |
"refId": "Q" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_memory_SwapTotal_bytes{} - node_memory_SwapFree_bytes{}", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"legendFormat": "已用 Swap", | |
"range": false, | |
"refId": "R" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_memory_MemTotal_bytes{} - node_memory_MemAvailable_bytes{} ", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"legendFormat": "已用内存", | |
"range": false, | |
"refId": "S" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "(1 - (node_memory_SwapFree_bytes{} / (node_memory_SwapTotal_bytes{})))* 100", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"legendFormat": "Swap使用率", | |
"range": false, | |
"refId": "T" | |
} | |
], | |
"title": "服务器资源总览表【主机总数:$total】", | |
"transformations": [ | |
{ | |
"id": "merge", | |
"options": { | |
"reducers": [] | |
} | |
}, | |
{ | |
"id": "organize", | |
"options": { | |
"excludeByName": { | |
"Swap": false, | |
"Value #E": false, | |
"exp": false, | |
"iid": false, | |
"instance": true | |
}, | |
"includeByName": {}, | |
"indexByName": { | |
"Time": 21, | |
"Value #A": 28, | |
"Value #B": 5, | |
"Value #C": 4, | |
"Value #D": 2, | |
"Value #E": 14, | |
"Value #F": 10, | |
"Value #G": 11, | |
"Value #H": 15, | |
"Value #I": 16, | |
"Value #J": 19, | |
"Value #K": 20, | |
"Value #L": 9, | |
"Value #M": 17, | |
"Value #N": 18, | |
"Value #O": 3, | |
"Value #P": 13, | |
"Value #Q": 7, | |
"Value #R": 8, | |
"Value #S": 6, | |
"Value #T": 12, | |
"__name__": 29, | |
"domainname": 22, | |
"hostname": 30, | |
"instance": 1, | |
"job": 23, | |
"machine": 24, | |
"nodename": 0, | |
"release": 25, | |
"serviceName": 31, | |
"sysname": 26, | |
"version": 27 | |
}, | |
"renameByName": { | |
"Swap": "", | |
"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使用率*", | |
"Value #Q": "Swap", | |
"Value #R": "已用Swap", | |
"Value #S": "已用内存", | |
"Value #T": "Swap使用率", | |
"exp": "到期日", | |
"hostname": "", | |
"iid": "实例ID", | |
"instance": "IP", | |
"name": "", | |
"nodename": "主机名" | |
} | |
} | |
}, | |
{ | |
"id": "filterFieldsByName", | |
"options": { | |
"include": { | |
"names": [ | |
"主机名", | |
"启动(天)", | |
"健康值", | |
"CPU", | |
"内存", | |
"已用内存", | |
"Swap", | |
"已用Swap", | |
"负载", | |
"CPU使用率", | |
"内存使用率", | |
"IOutil使用率*", | |
"分区使用率*", | |
"磁盘读取*", | |
"磁盘写入*", | |
"连接数", | |
"TCP_tw", | |
"下载带宽*", | |
"上传带宽*", | |
"Swap使用率" | |
] | |
} | |
} | |
}, | |
{ | |
"id": "filterByValue", | |
"options": { | |
"filters": [ | |
{ | |
"config": { | |
"id": "regex", | |
"options": { | |
"value": "$NODENAME_REGEX" | |
} | |
}, | |
"fieldName": "主机名" | |
} | |
], | |
"match": "any", | |
"type": "include" | |
} | |
} | |
], | |
"type": "table" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "总5分钟负载", | |
"axisPlacement": "auto", | |
"axisSoftMin": 0, | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": "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": 8, | |
"x": 0, | |
"y": 13 | |
}, | |
"id": 191, | |
"maxDataPoints": 100, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "sum(node_load5{})", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "5m负载", | |
"range": true, | |
"refId": "A", | |
"step": 240 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "count(node_cpu_seconds_total{mode='system'})", | |
"format": "time_series", | |
"hide": false, | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "核数", | |
"refId": "B", | |
"step": 240 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "avg(1 - avg(irate(node_cpu_seconds_total{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": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "总已用内存", | |
"axisPlacement": "auto", | |
"axisSoftMin": 0, | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": 1, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"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": "auto" | |
}, | |
{ | |
"id": "custom.lineWidth", | |
"value": 1 | |
}, | |
{ | |
"id": "custom.pointSize", | |
"value": 3 | |
}, | |
{ | |
"id": "custom.axisSoftMin" | |
}, | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": false, | |
"viz": false | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "总已用" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "orange", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 8, | |
"x": 8, | |
"y": 13 | |
}, | |
"id": 195, | |
"maxDataPoints": 100, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "sum(node_memory_MemTotal_bytes{} - node_memory_MemAvailable_bytes{})", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "总已用", | |
"range": true, | |
"refId": "B", | |
"step": 4 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "sum(node_memory_MemTotal_bytes{})", | |
"format": "time_series", | |
"hide": false, | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "总内存", | |
"refId": "A", | |
"step": 4 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "(sum(node_memory_MemTotal_bytes{} - node_memory_MemAvailable_bytes{}) / sum(node_memory_MemTotal_bytes{}))*100", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "平均%", | |
"range": true, | |
"refId": "H" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "sum(node_memory_SwapTotal_bytes{}) - sum(node_memory_SwapFree_bytes{})", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "总已用 Swap 内存", | |
"range": true, | |
"refId": "D" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(node_memory_SwapTotal_bytes{})", | |
"format": "time_series", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "总 Swap 内存", | |
"range": true, | |
"refId": "C" | |
} | |
], | |
"title": "整体总内存与整体平均内存使用率", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "总磁盘使用量", | |
"axisPlacement": "auto", | |
"axisSoftMin": 0, | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": "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": 8, | |
"x": 16, | |
"y": 13 | |
}, | |
"id": 197, | |
"maxDataPoints": 100, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "sum(avg(node_filesystem_size_bytes{fstype=~\"xfs|ext.*\"})by(device,instance)) - sum(avg(node_filesystem_free_bytes{fstype=~\"xfs|ext.*\"})by(device,instance))", | |
"format": "time_series", | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "使用量", | |
"refId": "C" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "sum(avg(node_filesystem_size_bytes{fstype=~\"xfs|ext.*\"})by(device,instance))", | |
"format": "time_series", | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "总磁盘", | |
"refId": "E" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "(sum(avg(node_filesystem_size_bytes{fstype=~\"xfs|ext.*\"})by(device,instance)) - sum(avg(node_filesystem_free_bytes{fstype=~\"xfs|ext.*\"})by(device,instance))) *100/(sum(avg(node_filesystem_avail_bytes{fstype=~\"xfs|ext.*\"})by(device,instance))+(sum(avg(node_filesystem_size_bytes{fstype=~\"xfs|ext.*\"})by(device,instance)) - sum(avg(node_filesystem_free_bytes{fstype=~\"xfs|ext.*\"})by(device,instance))))", | |
"format": "time_series", | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "平均%", | |
"refId": "A" | |
} | |
], | |
"title": "整体总磁盘与整体平均磁盘使用率", | |
"type": "timeseries" | |
}, | |
{ | |
"collapsed": true, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 20 | |
}, | |
"id": 189, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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" | |
} | |
] | |
}, | |
"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" | |
}, | |
{ | |
"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": 20 | |
}, | |
"id": 181, | |
"links": [ | |
{ | |
"targetBlank": true, | |
"title": "https://github.com/coreutils/coreutils/blob/master/src/df.c", | |
"url": "https://github.com/coreutils/coreutils/blob/master/src/df.c" | |
} | |
], | |
"options": { | |
"cellHeight": "sm", | |
"footer": { | |
"countRows": false, | |
"fields": "", | |
"reducer": [ | |
"sum" | |
], | |
"show": false | |
}, | |
"showHeader": true, | |
"sortBy": [ | |
{ | |
"desc": true, | |
"displayName": "使用率" | |
} | |
] | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"decimals": 1, | |
"mappings": [ | |
{ | |
"options": { | |
"0": { | |
"text": "N/A" | |
} | |
}, | |
"type": "value" | |
} | |
], | |
"max": 100, | |
"min": 0.1, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "#EAB839", | |
"value": 70 | |
}, | |
{ | |
"color": "red", | |
"value": 90 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 4, | |
"x": 8, | |
"y": 20 | |
}, | |
"id": 177, | |
"options": { | |
"displayMode": "lcd", | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": false | |
}, | |
"maxVizHeight": 300, | |
"minVizHeight": 45, | |
"minVizWidth": 0, | |
"namePlacement": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"last" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showUnfilled": true, | |
"sizing": "auto", | |
"valueMode": "color" | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "((node_memory_SwapTotal_bytes{instance=~\"$instance\"} - node_memory_SwapFree_bytes{instance=~\"$instance\"}) / node_memory_SwapTotal_bytes{instance=~\"$instance\"}) * 100", | |
"instant": true, | |
"interval": "", | |
"legendFormat": "交换分区使用率", | |
"refId": "F" | |
} | |
], | |
"title": "", | |
"type": "bargauge" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "运行时间" | |
}, | |
"properties": [ | |
{ | |
"id": "thresholds", | |
"value": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "red" | |
}, | |
{ | |
"color": "orange", | |
"value": 3600 | |
}, | |
{ | |
"color": "green", | |
"value": 7200 | |
} | |
] | |
} | |
}, | |
{ | |
"id": "unit", | |
"value": "s" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "总内存" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "bytes" | |
}, | |
{ | |
"id": "decimals", | |
"value": 0 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "CPU iowait" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "percent" | |
}, | |
{ | |
"id": "thresholds", | |
"value": { | |
"mode": "percentage", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "orange", | |
"value": 40 | |
}, | |
{ | |
"color": "red", | |
"value": 60 | |
} | |
] | |
} | |
}, | |
{ | |
"id": "decimals", | |
"value": 2 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "总文件描述符" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "short" | |
}, | |
{ | |
"id": "thresholds", | |
"value": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "red" | |
}, | |
{ | |
"color": "orange", | |
"value": 50000 | |
}, | |
{ | |
"color": "green", | |
"value": 200000 | |
} | |
] | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "最大打开文件" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "none" | |
}, | |
{ | |
"id": "thresholds", | |
"value": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "red" | |
}, | |
{ | |
"color": "orange", | |
"value": 10000 | |
}, | |
{ | |
"color": "green", | |
"value": 50000 | |
} | |
] | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 4, | |
"x": 12, | |
"y": 20 | |
}, | |
"id": 206, | |
"interval": "15s", | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "center", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"text": { | |
"valueSize": 15 | |
}, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"alias": "", | |
"bucketAggs": [ | |
{ | |
"id": "2", | |
"settings": { | |
"interval": "auto" | |
}, | |
"type": "date_histogram" | |
} | |
], | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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" | |
} | |
], | |
"title": "", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "bars", | |
"fillOpacity": 60, | |
"gradientMode": "opacity", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "cn-shenzhen.i-wz9cq1dcb6zwc39ehw59_cni0_in" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "light-red", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "cn-shenzhen.i-wz9cq1dcb6zwc39ehw59_cni0_in下载" | |
}, | |
"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": 20 | |
}, | |
"id": 183, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "increase(node_network_receive_bytes_total{instance=~\"$instance\",device=~\"$device\"}[1m])", | |
"interval": "1m", | |
"intervalFactor": 2, | |
"legendFormat": "{{device}}_in下载", | |
"metric": "", | |
"range": true, | |
"refId": "A", | |
"step": 600, | |
"target": "" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "总使用率", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": 9, | |
"w": 8, | |
"x": 0, | |
"y": 96 | |
}, | |
"id": 207, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Max", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "剩余内存", | |
"axisPlacement": "left", | |
"axisSoftMin": 0, | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": 9, | |
"w": 8, | |
"x": 8, | |
"y": 96 | |
}, | |
"id": 156, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Max", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "node_memory_MemAvailable_bytes{instance=~\"$instance\"}", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "可用", | |
"refId": "F", | |
"step": 4 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "node_memory_MemTotal_bytes{instance=~\"$instance\"} - node_memory_MemAvailable_bytes{instance=~\"$instance\"}", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "已用", | |
"range": true, | |
"refId": "B", | |
"step": 4 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"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": "使用率", | |
"range": true, | |
"refId": "H" | |
} | |
], | |
"title": "内存信息", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "剩余内存", | |
"axisPlacement": "left", | |
"axisSoftMin": 0, | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": 9, | |
"w": 8, | |
"x": 16, | |
"y": 96 | |
}, | |
"id": 208, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Max", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "node_memory_SwapTotal_bytes{instance=~\"$instance\"}", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "总 Swap 内存", | |
"range": true, | |
"refId": "C" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "node_memory_SwapTotal_bytes{instance=~\"$instance\"} - node_memory_SwapFree_bytes{instance=~\"$instance\"}", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "已用 Swap", | |
"range": true, | |
"refId": "D" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_memory_SwapFree_bytes{instance=~\"$instance\"}", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "可用 Swap 内存", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Swap 内存信息", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "continuous-GrYlRd" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "容量使用率", | |
"axisPlacement": "auto", | |
"axisSoftMax": 100, | |
"axisSoftMin": 0, | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": 9, | |
"w": 8, | |
"x": 0, | |
"y": 111 | |
}, | |
"id": 174, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": 9, | |
"w": 8, | |
"x": 8, | |
"y": 111 | |
}, | |
"id": 202, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"calculatedInterval": "2m", | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": 9, | |
"w": 8, | |
"x": 16, | |
"y": 111 | |
}, | |
"id": 16, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "1分钟负载", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": 120 | |
}, | |
"id": 13, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"expr": "node_load5{instance=~\"$instance\"}", | |
"format": "time_series", | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "5分钟负载", | |
"refId": "B", | |
"step": 20 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"description": "Read bytes 每个磁盘分区每秒读取的比特数\nWritten bytes 每个磁盘分区每秒写入的比特数", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "读取(-)/写入(+)", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "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": 8, | |
"x": 8, | |
"y": 120 | |
}, | |
"id": 168, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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, | |
"barWidthFactor": 0.6, | |
"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": 8, | |
"x": 16, | |
"y": 120 | |
}, | |
"id": 175, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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, | |
"barWidthFactor": 0.6, | |
"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": 9, | |
"w": 6, | |
"x": 0, | |
"y": 128 | |
}, | |
"id": 160, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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, | |
"barWidthFactor": 0.6, | |
"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": 9, | |
"w": 10, | |
"x": 6, | |
"y": 128 | |
}, | |
"id": 161, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "上传(-)/下载(+)", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "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": 9, | |
"w": 8, | |
"x": 16, | |
"y": 128 | |
}, | |
"id": 157, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "irate(node_network_receive_bytes_total{instance=~\"$instance\",device=~\"$device\"}[$interval])*8", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{device}}_in下载", | |
"range": true, | |
"refId": "A", | |
"step": 4 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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, | |
"barWidthFactor": 0.6, | |
"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": 7, | |
"w": 24, | |
"x": 0, | |
"y": 137 | |
}, | |
"id": 158, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"last", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true, | |
"sortBy": "Max", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": "bejkhltenvfnka" | |
}, | |
"expr": "node_sockstat_TCP_tw{instance=~\"$instance\"}", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "TCP_tw", | |
"refId": "D" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "node_sockstat_sockets_used{instance=~\"$instance\"}", | |
"hide": false, | |
"interval": "2m", | |
"intervalFactor": 1, | |
"legendFormat": "Sockets_used", | |
"refId": "B" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "node_sockstat_UDP_inuse{instance=~\"$instance\"}", | |
"interval": "", | |
"legendFormat": "UDP_inuse", | |
"refId": "C" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "node_sockstat_TCP_alloc{instance=~\"$instance\"}", | |
"interval": "", | |
"legendFormat": "TCP_alloc", | |
"refId": "E" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_netstat_Tcp_PassiveOpens{instance=~\"$instance\"}[$interval])", | |
"hide": true, | |
"interval": "", | |
"legendFormat": "{{instance}}_Tcp_PassiveOpens", | |
"refId": "G" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_netstat_Tcp_ActiveOpens{instance=~\"$instance\"}[$interval])", | |
"hide": true, | |
"interval": "", | |
"legendFormat": "{{instance}}_Tcp_ActiveOpens", | |
"refId": "F" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_netstat_Tcp_InSegs{instance=~\"$instance\"}[$interval])", | |
"interval": "", | |
"legendFormat": "Tcp_InSegs", | |
"refId": "H" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_netstat_Tcp_OutSegs{instance=~\"$instance\"}[$interval])", | |
"interval": "", | |
"legendFormat": "Tcp_OutSegs", | |
"refId": "I" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_netstat_Tcp_RetransSegs{instance=~\"$instance\"}[$interval])", | |
"hide": false, | |
"interval": "", | |
"legendFormat": "Tcp_RetransSegs", | |
"refId": "J" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_netstat_TcpExt_ListenDrops{instance=~\"$instance\"}[$interval])", | |
"hide": true, | |
"interval": "", | |
"legendFormat": "", | |
"refId": "K" | |
} | |
], | |
"title": "网络Socket连接信息", | |
"type": "timeseries" | |
} | |
], | |
"title": "🧮资源明细:【$show_name】【$instance】", | |
"type": "row" | |
}, | |
{ | |
"collapsed": false, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 21 | |
}, | |
"id": 37, | |
"panels": [], | |
"title": "Nginx General Metrics", | |
"type": "row" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
} | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "101" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"mode": "continuous-BlYlRd" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/30.*/" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"mode": "continuous-GrYlRd" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/40.*/" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"mode": "continuous-YlRd" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/50.*/" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"mode": "continuous-RdYlGr" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 5, | |
"w": 24, | |
"x": 0, | |
"y": 22 | |
}, | |
"id": 51, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "sum(count_over_time(\n nginxlog_request_time{resp_code=~\".+\", instance=~\"$instance\"}[$__range]\n))", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "Total Request", | |
"range": true, | |
"refId": "B" | |
}, | |
{ | |
"editorMode": "code", | |
"expr": "sum by (resp_code) (\n count_over_time(\n nginxlog_request_time{resp_code=~\".+\", instance=~\"$instance\"}[$__range]\n )\n)", | |
"legendFormat": "__auto", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Status Code", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 20, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 3, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "mem_used" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "rgb(214, 141, 89)", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "net_bytes_recv" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "dark-yellow", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "net_bytes_sent" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "semi-dark-red", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "net_conn_accepted" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "light-blue", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 0, | |
"y": 27 | |
}, | |
"id": 26, | |
"options": { | |
"dataLinks": [], | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "rate(net_bytes_recv{instance=~\"$instance\"}[5m])", | |
"format": "time_series", | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 3, | |
"legendFormat": "net_bytes_recv", | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "rate(net_conntrack_listener_conn_accepted_total[5m])", | |
"hide": false, | |
"interval": "30s", | |
"legendFormat": "net_conn_accepted", | |
"refId": "C" | |
} | |
], | |
"title": "Network Input", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 20, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 3, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "mem_used" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "rgb(214, 141, 89)", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "net_bytes_recv" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "dark-yellow", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "net_bytes_sent" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "semi-dark-red", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "net_conn_accepted" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "light-blue", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 12, | |
"y": 27 | |
}, | |
"id": 35, | |
"options": { | |
"dataLinks": [], | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "rate(net_bytes_sent{instance=~\"$instance\"}[5m])", | |
"interval": "30s", | |
"legendFormat": "net_bytes_sent", | |
"range": true, | |
"refId": "B" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "rate(net_conntrack_listener_conn_accepted_total[5m])", | |
"hide": false, | |
"interval": "30s", | |
"legendFormat": "net_conn_accepted", | |
"refId": "C" | |
} | |
], | |
"title": "Network Ouput", | |
"type": "timeseries" | |
}, | |
{ | |
"collapsed": true, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 36 | |
}, | |
"id": 42, | |
"panels": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"description": "Requests with 200 Status Code", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"axisWidth": 19, | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"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" | |
} | |
}, | |
"fieldMinMax": false, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "s" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 24, | |
"x": 0, | |
"y": 194 | |
}, | |
"id": 44, | |
"options": { | |
"dataLinks": [], | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "avg by (request) (avg_over_time(nginxlog_request_time{instance=~\"$instance\", resp_code=~\"20.\"}[$__range]))", | |
"format": "time_series", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "{{request}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Response 2XX", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"description": "Requests with 3XX Status Code", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "s" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 24, | |
"x": 0, | |
"y": 302 | |
}, | |
"id": 48, | |
"options": { | |
"dataLinks": [], | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "avg by (request) (avg_over_time(nginxlog_request_time{instance=~\"$instance\", resp_code=~\"30.\"}[$__range]))", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{request}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Response 3XX", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"description": "Requests with 4XX Status Code", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"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": 3, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "s" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 24, | |
"x": 0, | |
"y": 311 | |
}, | |
"id": 46, | |
"options": { | |
"dataLinks": [], | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "avg by (request) (avg_over_time(nginxlog_request_time{instance=~\"$instance\", resp_code=~\"40.\"}[$__range]))", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{request}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Response 4XX ", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"description": "Requests with 5XX Status Code", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "s" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 24, | |
"x": 0, | |
"y": 320 | |
}, | |
"id": 49, | |
"options": { | |
"dataLinks": [], | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "avg by (request) (avg_over_time(nginxlog_request_time{instance=~\"$instance\", resp_code=~\"50.\"}[$__range]))", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{request}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Response 5XX", | |
"type": "timeseries" | |
} | |
], | |
"title": "Nginx Request Time", | |
"type": "row" | |
}, | |
{ | |
"collapsed": true, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 37 | |
}, | |
"id": 247, | |
"panels": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"description": "Requests with 200 Status Code", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"axisWidth": 19, | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"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" | |
} | |
}, | |
"fieldMinMax": false, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 24, | |
"x": 0, | |
"y": 1260 | |
}, | |
"id": 50, | |
"options": { | |
"dataLinks": [], | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "avg by (request) (avg_over_time(nginxlog_resp_bytes{instance=~\"$instance\", resp_code=~\"20.\"}[$__range]))", | |
"instant": false, | |
"legendFormat": "{{request}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Response 2XX", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"description": "Requests with 3XX Status Code", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 24, | |
"x": 0, | |
"y": 1297 | |
}, | |
"id": 31, | |
"options": { | |
"dataLinks": [], | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "avg by (request) (avg_over_time(nginxlog_resp_bytes{instance=~\"$instance\", resp_code=~\"30.\"}[$__range]))", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{request}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Response 3XX", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"description": "Requests with 4XX Status Code", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"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" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 24, | |
"x": 0, | |
"y": 1306 | |
}, | |
"id": 248, | |
"options": { | |
"dataLinks": [], | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "avg by (request) (avg_over_time(nginxlog_resp_bytes{instance=~\"$instance\", resp_code=~\"40.\"}[$__range]))", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{request}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Response 4XX", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"description": "Requests with 5XX Status Code", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 24, | |
"x": 0, | |
"y": 1315 | |
}, | |
"id": 249, | |
"options": { | |
"dataLinks": [], | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "avg by (request) (avg_over_time(nginxlog_resp_bytes{instance=~\"$instance\", resp_code=~\"50.\"}[$__range]))", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{request}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Response 5XX", | |
"type": "timeseries" | |
} | |
], | |
"title": "Nginx Body Bytes Sent", | |
"type": "row" | |
}, | |
{ | |
"collapsed": true, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 38 | |
}, | |
"id": 250, | |
"panels": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"description": "The total number of accepted connections from clients since the nginx master process started. Note that reloading configurations or restarting worker processes will not reset this metric. If you terminate and restart the master process, you will reset the metric.\n\n", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 30, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 3, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "rgb(242, 61, 5)" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "172.31.0.131:9273" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "super-light-purple", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "{__name__=\"nginx_accepts\", env=\"prod\", exported_env=\"DEV\", instance=\"172.31.0.131:9273\", job=\"telegraf\", port=\"80\", server=\"localhost\"}" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "purple", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 9, | |
"x": 0, | |
"y": 1106 | |
}, | |
"id": 251, | |
"options": { | |
"dataLinks": [], | |
"legend": { | |
"calcs": [ | |
"lastNotNull", | |
"max", | |
"min" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "nginx_accepts{instance=~\"$instance*\"}", | |
"format": "time_series", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{ instance }}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Nginx Connections Accepted", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"description": "The current number of connections from clients where nginx is writing a response back to the client.\n", | |
"fieldConfig": { | |
"defaults": { | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "red" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 4, | |
"x": 9, | |
"y": 1106 | |
}, | |
"id": 252, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"mean" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"expr": "nginx_writing{instance=~\"$instance*\"}\t", | |
"interval": "", | |
"legendFormat": "{{ host }}", | |
"refId": "A" | |
} | |
], | |
"title": "Nginx Writing", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"description": "The current number of active (accepted) connections from clients. Includes all connections with the statuses Idle / Waiting, Reading, and Writing.", | |
"fieldConfig": { | |
"defaults": { | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "dark-orange" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 7, | |
"x": 13, | |
"y": 1106 | |
}, | |
"id": 253, | |
"options": { | |
"displayMode": "lcd", | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": false | |
}, | |
"maxVizHeight": 300, | |
"minVizHeight": 16, | |
"minVizWidth": 8, | |
"namePlacement": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"min" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showUnfilled": true, | |
"sizing": "auto", | |
"valueMode": "color" | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"expr": "nginx_active{instance=~\"$instance*\"}\t", | |
"interval": "", | |
"legendFormat": "{{instance }}", | |
"refId": "A" | |
} | |
], | |
"title": "Nginx Active Connections[accepted]", | |
"type": "bargauge" | |
}, | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"description": "The current number of connections from clients that are in the Idle / Waiting state.", | |
"fieldConfig": { | |
"defaults": { | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "semi-dark-blue" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 4, | |
"x": 20, | |
"y": 1106 | |
}, | |
"id": 254, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"min" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"expr": "nginx_waiting{instance=~\"$instance*\"}\t", | |
"interval": "", | |
"legendFormat": "{{ instance}}", | |
"refId": "A" | |
} | |
], | |
"title": "Nginx Waiting Connections", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"description": "The total number of handled connections from clients since the nginx master process started. This will be lower than accepted only in cases where a connection is dropped before it is handled.", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 30, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 3, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "172.31.0.131:9273" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "rgb(219, 237, 9)", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "{__name__=\"nginx_handled\", env=\"prod\", exported_env=\"DEV\", instance=\"172.31.0.131:9273\", job=\"telegraf\", port=\"80\", server=\"localhost\"}" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "rgb(208, 240, 17)", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 10, | |
"x": 0, | |
"y": 1113 | |
}, | |
"id": 255, | |
"options": { | |
"dataLinks": [], | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"expr": "nginx_handled{instance=~\"$instance*\"}\t", | |
"interval": "", | |
"legendFormat": "{{ instance }}", | |
"refId": "A" | |
} | |
], | |
"title": "Handled Request", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"description": "The total number of client requests since the nginx master process started. A request is an application-level (HTTP, etc.) event. It occurs when a client requests a resource via the application protocol. A single connection can (and often does) make many requests. So most of the time, there are more requests than accepted/handled connections.", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 30, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 3, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "172.31.0.131:9273" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "rgb(250, 0, 225)", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "{__name__=\"nginx_requests\", env=\"prod\", exported_env=\"DEV\", instance=\"172.31.0.131:9273\", job=\"telegraf\", port=\"80\", server=\"localhost\"}" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "orange", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 10, | |
"x": 10, | |
"y": 1113 | |
}, | |
"id": 256, | |
"options": { | |
"dataLinks": [], | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"min" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"expr": "nginx_requests{instance=~\"$instance*\"}\t", | |
"interval": "", | |
"legendFormat": "{{ instance }}", | |
"refId": "A" | |
} | |
], | |
"title": "Nginx Requests", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "The current number of (accepted) connections from clients where nginx is reading the request. Measured at the time the status module was queried.", | |
"fieldConfig": { | |
"defaults": { | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "semi-dark-green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 4, | |
"x": 20, | |
"y": 1113 | |
}, | |
"id": 8, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"mean" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "nginx_reading{instance=~\"$instance*\"}", | |
"interval": "", | |
"legendFormat": "{{ host }}", | |
"refId": "A" | |
} | |
], | |
"title": "nginx_reading", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"custom": { | |
"align": "center", | |
"cellOptions": { | |
"type": "auto" | |
}, | |
"filterable": false, | |
"inspect": false | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
} | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "Time" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 144 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "agent" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 173 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "auth" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 84 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "client_ip" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 143 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "env" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 20 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "exported_env" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 122 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "ident" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 74 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "job" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 53 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "path" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 151 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "referrer" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 82 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "resp_code" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 94 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "verb" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 48 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "request" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 208 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "Value" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 29 | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 16, | |
"w": 24, | |
"x": 0, | |
"y": 1120 | |
}, | |
"id": 257, | |
"options": { | |
"cellHeight": "sm", | |
"footer": { | |
"countRows": false, | |
"fields": "", | |
"reducer": [ | |
"sum" | |
], | |
"show": false | |
}, | |
"showHeader": true, | |
"sortBy": [] | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"expr": "nginxlog_resp_bytes{instance=~\"$instance*\"}", | |
"interval": "", | |
"legendFormat": "", | |
"refId": "A" | |
} | |
], | |
"title": "Each Request Detail", | |
"transformations": [ | |
{ | |
"id": "labelsToFields", | |
"options": {} | |
}, | |
{ | |
"id": "merge", | |
"options": {} | |
} | |
], | |
"type": "table" | |
} | |
], | |
"title": "Nginx Metrics", | |
"type": "row" | |
}, | |
{ | |
"collapsed": true, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 39 | |
}, | |
"id": 41, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "semi-dark-green" | |
} | |
] | |
}, | |
"unit": "short" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 3, | |
"x": 0, | |
"y": 1008 | |
}, | |
"id": 2, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "area", | |
"justifyMode": "center", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"text": {}, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "increase(redis_commands_processed_total{instance=\"$instance\"}[3m])/180", | |
"format": "table", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "", | |
"refId": "A" | |
} | |
], | |
"title": "Ops/sec[3m]", | |
"transformations": [ | |
{ | |
"id": "seriesToColumns", | |
"options": {} | |
} | |
], | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
}, | |
"unit": "binBps" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 8, | |
"x": 3, | |
"y": 1008 | |
}, | |
"id": 6, | |
"options": { | |
"minVizHeight": 75, | |
"minVizWidth": 75, | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showThresholdLabels": false, | |
"showThresholdMarkers": true, | |
"sizing": "auto", | |
"text": {} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "rate(redis_net_input_bytes_total{instance=\"$instance\"}[5m])", | |
"interval": "", | |
"legendFormat": "Input", | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "rate(redis_net_output_bytes_total{instance=\"$instance\"}[5m])", | |
"hide": false, | |
"interval": "", | |
"legendFormat": "Output", | |
"refId": "B" | |
} | |
], | |
"title": "Network", | |
"type": "gauge" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"max": 100000000, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 9, | |
"x": 11, | |
"y": 1008 | |
}, | |
"id": 9, | |
"options": { | |
"displayMode": "lcd", | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": false | |
}, | |
"maxVizHeight": 300, | |
"minVizHeight": 10, | |
"minVizWidth": 0, | |
"namePlacement": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showUnfilled": true, | |
"sizing": "auto", | |
"text": {}, | |
"valueMode": "color" | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_memory_used_bytes{instance=\"$instance\"}", | |
"interval": "", | |
"legendFormat": "Used Memory ", | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_memory_used_peak_bytes{instance=\"$instance\"}", | |
"hide": false, | |
"interval": "", | |
"legendFormat": "Used Memory Peak", | |
"refId": "B" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_memory_used_lua_bytes{instance=\"$instance\"}", | |
"hide": false, | |
"interval": "", | |
"legendFormat": "Used Memory Lua", | |
"refId": "C" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_memory_used_dataset_bytes{instance=\"$instance\"}", | |
"hide": false, | |
"interval": "", | |
"legendFormat": "Used Memory Dataset", | |
"refId": "D" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_memory_used_overhead_bytes{instance=\"$instance\"}", | |
"hide": false, | |
"interval": "", | |
"legendFormat": "Used Memory Overhead", | |
"refId": "E" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_memory_used_rss_bytes{instance=\"$instance\"}", | |
"hide": false, | |
"interval": "", | |
"legendFormat": "Used Memory Rss", | |
"refId": "F" | |
} | |
], | |
"title": "Memory", | |
"type": "bargauge" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "blue" | |
} | |
] | |
}, | |
"unit": "s" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 2, | |
"x": 20, | |
"y": 1008 | |
}, | |
"id": 11, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "center", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"text": {}, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_uptime_in_seconds{instance=\"$instance\"}", | |
"interval": "", | |
"legendFormat": "", | |
"refId": "A" | |
} | |
], | |
"title": "UpTime", | |
"transformations": [ | |
{ | |
"id": "seriesToColumns", | |
"options": {} | |
} | |
], | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "blue" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "short" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 2, | |
"x": 22, | |
"y": 1008 | |
}, | |
"id": 245, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "center", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"text": {}, | |
"textMode": "name", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_instance_info{instance=\"$instance\"}", | |
"interval": "", | |
"legendFormat": "{{role}}", | |
"refId": "A" | |
} | |
], | |
"title": "Role", | |
"transformations": [ | |
{ | |
"id": "seriesToColumns", | |
"options": {} | |
} | |
], | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "blue" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "short" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 3, | |
"x": 0, | |
"y": 1104 | |
}, | |
"id": 3, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "center", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"text": {}, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_connected_clients{instance=\"$instance\"}", | |
"interval": "", | |
"legendFormat": "", | |
"refId": "A" | |
} | |
], | |
"title": "connected clients", | |
"transformations": [ | |
{ | |
"id": "seriesToColumns", | |
"options": {} | |
} | |
], | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "blue" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "short" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 2, | |
"x": 20, | |
"y": 1104 | |
}, | |
"id": 12, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "none", | |
"justifyMode": "center", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"text": {}, | |
"textMode": "name", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_instance_info{instance=\"$instance\"}", | |
"interval": "", | |
"legendFormat": "{{redis_version}}", | |
"refId": "A" | |
} | |
], | |
"title": "Redis Version", | |
"transformations": [ | |
{ | |
"id": "seriesToColumns", | |
"options": {} | |
} | |
], | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"0": { | |
"index": 0, | |
"text": "Stopped" | |
}, | |
"1": { | |
"index": 1, | |
"text": "Running" | |
} | |
}, | |
"type": "value" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "blue" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "short" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 2, | |
"x": 22, | |
"y": 1104 | |
}, | |
"id": 15, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "center", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"text": {}, | |
"textMode": "value", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_up{instance=\"$instance\"}", | |
"interval": "", | |
"legendFormat": "", | |
"refId": "A" | |
} | |
], | |
"title": "State", | |
"transformations": [ | |
{ | |
"id": "seriesToColumns", | |
"options": {} | |
} | |
], | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "blue" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "short" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 3, | |
"x": 0, | |
"y": 1107 | |
}, | |
"id": 4, | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "center", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"text": {}, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "sum(redis_db_keys{instance=\"$instance\"})", | |
"interval": "", | |
"legendFormat": "", | |
"refId": "A" | |
} | |
], | |
"title": "Number of keys", | |
"transformations": [ | |
{ | |
"id": "seriesToColumns", | |
"options": {} | |
} | |
], | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 8, | |
"x": 3, | |
"y": 1107 | |
}, | |
"id": 7, | |
"options": { | |
"displayMode": "lcd", | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": false | |
}, | |
"maxVizHeight": 300, | |
"minVizHeight": 10, | |
"minVizWidth": 0, | |
"namePlacement": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showUnfilled": true, | |
"sizing": "auto", | |
"text": {}, | |
"valueMode": "color" | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "rate(redis_expired_keys_total{instance=\"$instance\"}[3m])", | |
"interval": "", | |
"legendFormat": "expired keys", | |
"range": true, | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "rate(redis_evicted_keys_total{instance=\"$instance\"}[3m])", | |
"hide": false, | |
"interval": "", | |
"legendFormat": "evicted keys", | |
"range": true, | |
"refId": "B" | |
} | |
], | |
"title": "keys", | |
"type": "bargauge" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
}, | |
"unit": "short" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 9, | |
"x": 11, | |
"y": 1107 | |
}, | |
"id": 10, | |
"options": { | |
"displayMode": "lcd", | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": false | |
}, | |
"maxVizHeight": 300, | |
"minVizHeight": 10, | |
"minVizWidth": 0, | |
"namePlacement": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showUnfilled": true, | |
"sizing": "auto", | |
"text": {}, | |
"valueMode": "color" | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_keyspace_hits_total{instance=\"$instance\"}", | |
"interval": "", | |
"legendFormat": "Hits", | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_keyspace_misses_total{instance=\"$instance\"}", | |
"hide": false, | |
"interval": "", | |
"legendFormat": "Misses", | |
"refId": "B" | |
} | |
], | |
"title": "keys", | |
"type": "bargauge" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "blue" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "short" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 4, | |
"x": 20, | |
"y": 1107 | |
}, | |
"id": 14, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "none", | |
"justifyMode": "center", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"text": {}, | |
"textMode": "name", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_instance_info{instance=\"$instance\"}", | |
"interval": "", | |
"legendFormat": "{{maxmemory_policy}}", | |
"refId": "A" | |
} | |
], | |
"title": "Maxmemory Policy", | |
"transformations": [ | |
{ | |
"id": "seriesToColumns", | |
"options": {} | |
} | |
], | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"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": "normal" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 0, | |
"y": 1110 | |
}, | |
"id": 36, | |
"options": { | |
"alertThreshold": true, | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "100 * (rate(redis_cpu_sys_children_seconds_total{instance=\"$instance\"}[5m]) + rate(redis_cpu_sys_seconds_total{instance=\"$instance\"}[5m]))", | |
"interval": "", | |
"legendFormat": "System", | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "100 * (rate(redis_cpu_user_children_seconds_total{instance=\"$instance\"}[5m]) + rate(redis_cpu_user_seconds_total{instance=\"$instance\"}[5m]))", | |
"interval": "", | |
"legendFormat": "User", | |
"refId": "B" | |
} | |
], | |
"title": "CPU Utilization", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"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": "normal" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "iops" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 6, | |
"y": 1110 | |
}, | |
"id": 18, | |
"options": { | |
"alertThreshold": true, | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "topk(5, irate(redis_commands_total{instance=\"$instance\"} [5m]))", | |
"interval": "", | |
"legendFormat": "{{cmd}}", | |
"refId": "A" | |
} | |
], | |
"title": "IOPS", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"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": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "Bps" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 12, | |
"y": 1110 | |
}, | |
"id": 38, | |
"options": { | |
"alertThreshold": true, | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "rate(redis_net_input_bytes_total{instance=\"$instance\"}[5m])", | |
"interval": "", | |
"legendFormat": "Inbound", | |
"range": true, | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "rate(redis_net_output_bytes_total{instance=\"$instance\"}[5m])", | |
"interval": "", | |
"legendFormat": "Outbound", | |
"refId": "B" | |
} | |
], | |
"title": "Network Throughput", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"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": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 18, | |
"y": 1110 | |
}, | |
"id": 40, | |
"options": { | |
"alertThreshold": true, | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "rate(redis_connections_received_total{instance=\"$instance\"}[5m]) ", | |
"interval": "", | |
"legendFormat": "Inbound", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Conns/sec", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"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": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 0, | |
"y": 1117 | |
}, | |
"id": 28, | |
"options": { | |
"alertThreshold": true, | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_db_keys{instance=\"$instance\"}", | |
"interval": "", | |
"legendFormat": "{{db}}", | |
"refId": "A" | |
} | |
], | |
"title": "Keys / DB", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"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": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "s" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 6, | |
"y": 1117 | |
}, | |
"id": 30, | |
"options": { | |
"alertThreshold": true, | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_db_avg_ttl_seconds{instance='$instance'}", | |
"interval": "", | |
"legendFormat": "{{db}}", | |
"refId": "A" | |
} | |
], | |
"title": "Average TTL", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"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": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 12, | |
"y": 1117 | |
}, | |
"id": 32, | |
"options": { | |
"alertThreshold": true, | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "rate(redis_expired_keys_total{instance=\"$instance\"}[5m])", | |
"interval": "", | |
"legendFormat": "Expired", | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "rate(redis_evicted_keys_total{instance=\"$instance\"}[5m])", | |
"interval": "", | |
"legendFormat": "Evicted", | |
"refId": "B" | |
} | |
], | |
"title": "Expired / Evicted keys", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"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": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 18, | |
"y": 1117 | |
}, | |
"id": 34, | |
"options": { | |
"alertThreshold": true, | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "100 * rate(redis_keyspace_hits_total{instance=\"$instance\"}[5m]) / (rate(redis_keyspace_misses_total{instance=\"$instance\"}[5m]) + rate(redis_keyspace_hits_total{instance=\"$instance\"}[5m])) ", | |
"interval": "", | |
"legendFormat": "Hit", | |
"refId": "A" | |
} | |
], | |
"title": "Hit Rate", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"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": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 0, | |
"y": 1124 | |
}, | |
"id": 20, | |
"options": { | |
"alertThreshold": true, | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "redis_connected_clients{instance=\"$instance\"}", | |
"interval": "", | |
"legendFormat": "Clients", | |
"range": true, | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_config_maxclients{instance=\"$instance\"}", | |
"interval": "", | |
"legendFormat": "Max Clients", | |
"refId": "B" | |
} | |
], | |
"title": "Connections usage", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"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": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 6, | |
"y": 1124 | |
}, | |
"id": 246, | |
"options": { | |
"alertThreshold": true, | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "redis_blocked_clients{instance=\"$instance\"}", | |
"interval": "", | |
"legendFormat": "Blocked", | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "rate(redis_rejected_connections_total{instance=\"$instance\"}[5m])", | |
"interval": "", | |
"legendFormat": "Rejected", | |
"refId": "B" | |
} | |
], | |
"title": "Blocked and Rejected clients", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"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": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "s" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 12, | |
"y": 1124 | |
}, | |
"id": 22, | |
"options": { | |
"alertThreshold": true, | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "sum(rate(redis_commands_duration_seconds_total{instance=\"$instance\"}[5m])) / sum(rate(redis_commands_processed_total{instance=\"$instance\"}[5m]))", | |
"interval": "", | |
"legendFormat": "Response Time", | |
"refId": "A" | |
} | |
], | |
"title": "Response time", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"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": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 18, | |
"y": 1124 | |
}, | |
"id": 24, | |
"options": { | |
"alertThreshold": true, | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "rate(redis_slowlog_length{instance=\"$instance\"}[5m])", | |
"interval": "", | |
"legendFormat": "Response Time", | |
"refId": "A" | |
} | |
], | |
"title": "Slowlog increment", | |
"type": "timeseries" | |
} | |
], | |
"title": "Redis", | |
"type": "row" | |
}, | |
{ | |
"collapsed": true, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 40 | |
}, | |
"id": 210, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 6, | |
"x": 0, | |
"y": 96 | |
}, | |
"id": 211, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "none", | |
"justifyMode": "center", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"exemplar": true, | |
"expr": "pm2_cpu_count{hostname=\"$hostname\"}", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{host}}", | |
"refId": "A" | |
} | |
], | |
"title": "CPU count", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "percentage", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
}, | |
"unit": "decbytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 6, | |
"x": 6, | |
"y": 96 | |
}, | |
"id": 212, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "pm2_free_memory{hostname=\"$hostname\"}", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{host}}", | |
"refId": "A" | |
} | |
], | |
"title": "Free memory", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "percentage", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
}, | |
"unit": "decbytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 6, | |
"x": 12, | |
"y": 96 | |
}, | |
"id": 213, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "avg(pm2_heap_size{hostname=\"$hostname\"}) by (host)", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{host}}", | |
"refId": "A" | |
} | |
], | |
"title": "Heap Size", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
}, | |
"unit": "decbytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 6, | |
"x": 18, | |
"y": 96 | |
}, | |
"id": 214, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"exemplar": true, | |
"expr": "avg(pm2_used_heap_size{hostname=\"$hostname\"}) by (host)", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{host}}", | |
"refId": "A" | |
} | |
], | |
"title": "Used Heap Size", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "percentage", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 6, | |
"x": 18, | |
"y": 105 | |
}, | |
"id": 215, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"exemplar": true, | |
"expr": "avg(pm2_heap_usage{hostname=\"$hostname\"}) by (host)", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{host}}", | |
"refId": "A" | |
} | |
], | |
"title": "Heap Usage", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
}, | |
"unit": "ms" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 0, | |
"y": 108 | |
}, | |
"id": 216, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"exemplar": true, | |
"expr": "avg(pm2_http_mean_latency{hostname=\"$hostname\"}) by (host)", | |
"interval": "", | |
"legendFormat": "{{host}}", | |
"refId": "A" | |
} | |
], | |
"title": "HTTP Latency", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
}, | |
"unit": "ms" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 6, | |
"y": 108 | |
}, | |
"id": 217, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"exemplar": true, | |
"expr": "avg(pm2_http_p95_latency{hostname=\"$hostname\"}) by (host)", | |
"interval": "", | |
"legendFormat": "{{host}}", | |
"refId": "A" | |
} | |
], | |
"title": "HTTP Latency P95", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 6, | |
"x": 12, | |
"y": 108 | |
}, | |
"id": 218, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "none", | |
"justifyMode": "center", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"exemplar": true, | |
"expr": "sum(pm2_app_restart_count{hostname=\"$hostname\"}) by (host)", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{host}}", | |
"refId": "A" | |
} | |
], | |
"title": "Restarts Count", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 3, | |
"w": 6, | |
"x": 18, | |
"y": 108 | |
}, | |
"id": 219, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "none", | |
"justifyMode": "center", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"exemplar": true, | |
"expr": "sum(pm2_active_handles{hostname=\"$hostname\"}) by (host)", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{host}}", | |
"refId": "A" | |
} | |
], | |
"title": "Active Handlers", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
}, | |
"unit": "ms" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 6, | |
"x": 12, | |
"y": 111 | |
}, | |
"id": 220, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"exemplar": true, | |
"expr": "avg(pm2_event_loop_latency{hostname=\"$hostname\"}) by (host)", | |
"interval": "", | |
"legendFormat": "{{host}}", | |
"refId": "A" | |
} | |
], | |
"title": " Event Loop Latency", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
}, | |
"unit": "ms" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 6, | |
"x": 18, | |
"y": 111 | |
}, | |
"id": 221, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "horizontal", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"exemplar": true, | |
"expr": "avg(pm2_event_loop_latency_p95{hostname=\"$hostname\"}) by (host)", | |
"interval": "", | |
"legendFormat": "{{host}}", | |
"refId": "A" | |
} | |
], | |
"title": " Event Loop Latency P95", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"uid": "$datasource" | |
}, | |
"description": "类似 pm2 list,展示各个应用当前的最新的状态", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"custom": { | |
"align": "auto", | |
"cellOptions": { | |
"type": "auto" | |
}, | |
"inspect": false | |
}, | |
"decimals": 0, | |
"fieldMinMax": false, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "dtdurations" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "uptime" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "dtdurations" | |
}, | |
{ | |
"id": "custom.width", | |
"value": 100 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "restart count" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "none" | |
}, | |
{ | |
"id": "custom.width", | |
"value": 120 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "status" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "none" | |
}, | |
{ | |
"id": "mappings", | |
"value": [ | |
{ | |
"options": { | |
"0": { | |
"index": 0, | |
"text": "unknown" | |
}, | |
"1": { | |
"index": 1, | |
"text": "running" | |
}, | |
"2": { | |
"index": 2, | |
"text": "pending" | |
}, | |
"3": { | |
"index": 3, | |
"text": "stopped" | |
}, | |
"4": { | |
"index": 4, | |
"text": "errored" | |
} | |
}, | |
"type": "value" | |
} | |
] | |
}, | |
{ | |
"id": "custom.width", | |
"value": 100 | |
}, | |
{ | |
"id": "custom.filterable", | |
"value": true | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "cpu" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "percent" | |
}, | |
{ | |
"id": "custom.width", | |
"value": 100 | |
}, | |
{ | |
"id": "decimals", | |
"value": 2 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "app" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.filterable", | |
"value": true | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "memory" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "bytes" | |
}, | |
{ | |
"id": "custom.width", | |
"value": 100 | |
}, | |
{ | |
"id": "decimals", | |
"value": 1 | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 24, | |
"x": 0, | |
"y": 115 | |
}, | |
"id": 222, | |
"options": { | |
"cellHeight": "sm", | |
"footer": { | |
"countRows": false, | |
"fields": "", | |
"reducer": [ | |
"sum" | |
], | |
"show": false | |
}, | |
"showHeader": true, | |
"sortBy": [ | |
{ | |
"desc": true, | |
"displayName": "restart count" | |
} | |
] | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "pm2_app_uptime{hostname=~\"$hostname\"}", | |
"format": "table", | |
"instant": true, | |
"legendFormat": "{{app}}", | |
"range": false, | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "pm2_app_restart_count{serviceName=~\"$serviceName\"}", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"legendFormat": "__auto", | |
"range": false, | |
"refId": "B" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "pm2_app_status{serviceName=~\"$serviceName\"}", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"legendFormat": "__auto", | |
"range": false, | |
"refId": "C" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "pm2_app_pids_cpu{serviceName=~\"$serviceName\"}", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"legendFormat": "__auto", | |
"range": false, | |
"refId": "D" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "pm2_app_pids_memory{serviceName=~\"$serviceName\"}", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"legendFormat": "__auto", | |
"range": false, | |
"refId": "E" | |
} | |
], | |
"title": "List", | |
"transformations": [ | |
{ | |
"id": "joinByField", | |
"options": { | |
"byField": "app", | |
"mode": "outer" | |
} | |
}, | |
{ | |
"id": "organize", | |
"options": { | |
"excludeByName": { | |
"Time 1": true, | |
"Time 2": true, | |
"Time 3": true, | |
"Time 4": true, | |
"Time 5": true, | |
"__name__ 1": true, | |
"__name__ 2": true, | |
"__name__ 3": true, | |
"__name__ 4": true, | |
"__name__ 5": true, | |
"exported_instance 1": true, | |
"exported_instance 2": true, | |
"exported_instance 3": true, | |
"exported_serviceName 1": true, | |
"exported_serviceName 2": true, | |
"exported_serviceName 3": true, | |
"exported_serviceName 4": true, | |
"exported_serviceName 5": true, | |
"instance 1": true, | |
"instance 2": true, | |
"instance 3": true, | |
"instance 4": true, | |
"instance 5": true, | |
"job 1": true, | |
"job 2": true, | |
"job 3": true, | |
"job 4": true, | |
"job 5": true, | |
"serviceName 1": true, | |
"serviceName 2": true, | |
"serviceName 3": true, | |
"serviceName 4": true, | |
"serviceName 5": true | |
}, | |
"includeByName": {}, | |
"indexByName": {}, | |
"renameByName": { | |
"Time 2": "", | |
"Time 3": "", | |
"Value #A": "uptime", | |
"Value #B": "restart count", | |
"Value #C": "status", | |
"Value #D": "cpu", | |
"Value #E": "memory" | |
} | |
} | |
}, | |
{ | |
"id": "sortBy", | |
"options": { | |
"fields": {}, | |
"sort": [ | |
{ | |
"desc": true, | |
"field": "cpu" | |
} | |
] | |
} | |
}, | |
{ | |
"id": "sortBy", | |
"options": { | |
"fields": {}, | |
"sort": [ | |
{ | |
"desc": true, | |
"field": "memory" | |
} | |
] | |
} | |
} | |
], | |
"type": "table" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"custom": { | |
"align": "auto", | |
"cellOptions": { | |
"type": "json-view" | |
}, | |
"filterable": true, | |
"inspect": false | |
}, | |
"decimals": 0, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "short" | |
}, | |
"overrides": [ | |
{ | |
"__systemRef": "hideSeriesFrom", | |
"matcher": { | |
"id": "byNames", | |
"options": { | |
"mode": "exclude", | |
"names": [ | |
"pm2_app_instances {__name__=\"pm2_app_instances\", app=\"abt-node-event-hub\", exported_serviceName=\"0\", instance=\"host.docker.internal:9988\", job=\"PM2\", serviceName=\"local\"}" | |
], | |
"prefix": "All except:", | |
"readOnly": true | |
} | |
}, | |
"properties": [] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "instances" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 100 | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 10, | |
"w": 7, | |
"x": 0, | |
"y": 123 | |
}, | |
"id": 223, | |
"options": { | |
"cellHeight": "sm", | |
"footer": { | |
"countRows": false, | |
"fields": "", | |
"reducer": [ | |
"sum" | |
], | |
"show": false | |
}, | |
"showHeader": true, | |
"sortBy": [] | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "pm2_app_instances{hostname=\"$hostname\"}", | |
"format": "table", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{app}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "App Instances", | |
"transformations": [ | |
{ | |
"id": "organize", | |
"options": { | |
"excludeByName": { | |
"Time": true, | |
"__name__": true, | |
"exported_serviceName": true, | |
"instance": true, | |
"job": true, | |
"serviceName": true | |
}, | |
"includeByName": {}, | |
"indexByName": {}, | |
"renameByName": { | |
"Value": "instances", | |
"app": "" | |
} | |
} | |
} | |
], | |
"type": "table" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineStyle": { | |
"fill": "solid" | |
}, | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "reqps" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 10, | |
"w": 9, | |
"x": 7, | |
"y": 123 | |
}, | |
"id": 224, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(pm2_http{hostname=\"$hostname\"}) by (app)", | |
"format": "time_series", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{app}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Requests per sec", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "reqps" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 10, | |
"w": 8, | |
"x": 16, | |
"y": 123 | |
}, | |
"id": 225, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "single", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "sum(pm2_active_requests{hostname=\"$hostname\"}) by (app)", | |
"interval": "", | |
"legendFormat": "{{app}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Active Requests", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"decimals": 1, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 0, | |
"y": 133 | |
}, | |
"id": 226, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "sum(pm2_app_total_memory{hostname=\"$hostname\"}) by (app)", | |
"interval": "", | |
"legendFormat": "{{app}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Total Memory Usage", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 12, | |
"y": 133 | |
}, | |
"id": 227, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "avg(pm2_app_pids_memory{hostname=\"$hostname\"}) by (app)", | |
"instant": false, | |
"interval": "", | |
"legendFormat": "{{app}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Average Memory Usage", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"decimals": 2, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 0, | |
"y": 142 | |
}, | |
"id": 228, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "avg(pm2_app_pids_cpu{hostname=\"$hostname\"}) by (app, instance)", | |
"interval": "", | |
"legendFormat": "{{app}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "CPU Usage Average By App Instances", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"decimals": 2, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 12, | |
"y": 142 | |
}, | |
"id": 229, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "$datasource" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "pm2_app_average_cpu{hostname=\"$hostname\"}", | |
"interval": "", | |
"legendFormat": "{{app}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "CPU Usage Average in App", | |
"type": "timeseries" | |
} | |
], | |
"title": "PM2", | |
"type": "row" | |
}, | |
{ | |
"collapsed": false, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 41 | |
}, | |
"id": 231, | |
"panels": [], | |
"title": "Process Summary", | |
"type": "row" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 24, | |
"x": 0, | |
"y": 42 | |
}, | |
"id": 232, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"swapped\",instance=~\"$instance\"}) + sum(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"resident\",instance=~\"$instance\"})", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "Used Memory", | |
"range": true, | |
"refId": "B" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"resident\",instance=~\"$instance\"})", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "Used Resident Memory", | |
"range": true, | |
"refId": "C" | |
}, | |
{ | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(namedprocess_namegroup_memory_bytes{\n groupname=~\"$processes\", \n memtype=\"swapped\", \n instance=~\"$instance\"\n}) ", | |
"instant": false, | |
"legendFormat": "Used Swap", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Summary", | |
"type": "stat" | |
}, | |
{ | |
"collapsed": true, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 48 | |
}, | |
"id": 233, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 20, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 4, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "always", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percentunit" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 12, | |
"x": 0, | |
"y": 1265 | |
}, | |
"id": 234, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"max", | |
"min" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "topk($k,(rate(namedprocess_namegroup_cpu_seconds_total{groupname=~\"$processes\",instance=~\"$instance\"}[$interval]) \nor \nirate(namedprocess_namegroup_cpu_seconds_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))", | |
"format": "time_series", | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"metric": "process_namegroup_cpu_seconds_total", | |
"range": true, | |
"refId": "A", | |
"step": 10 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "__auto", | |
"range": true, | |
"refId": "B" | |
} | |
], | |
"title": "Top processes by Total CPU cores used", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 20, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 4, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "always", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percentunit" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 12, | |
"x": 12, | |
"y": 1265 | |
}, | |
"id": 258, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"max", | |
"min" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true, | |
"sortBy": "Mean", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "topk($k,\nrate(namedprocess_namegroup_cpu_seconds_total{groupname=~\"$processes\",instance=~\"$instance\",mode=~\"system\"}[$interval])\nor \n(\nirate(namedprocess_namegroup_cpu_seconds_total{groupname=~\"$processes\",instance=~\"$instance\",mode=~\"system\"}[5m])))", | |
"format": "time_series", | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"metric": "process_namegroup_cpu_seconds_total", | |
"range": true, | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Top processes by System CPU cores used", | |
"type": "timeseries" | |
} | |
], | |
"title": "Process CPU Usage", | |
"type": "row" | |
}, | |
{ | |
"collapsed": true, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 49 | |
}, | |
"id": 39, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "Memory Used by Processes, counted as Resident Memory + Space used in Swap Space", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 20, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 4, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "always", | |
"spanNulls": true, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 24, | |
"x": 0, | |
"y": 105 | |
}, | |
"id": 235, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"max", | |
"min" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true, | |
"sortBy": "Mean", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "topk($k,(\r\n(avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"swapped\",instance=~\"$instance\"}[$interval])+ ignoring (memtype) avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"resident\",instance=~\"$instance\"}[$interval]))\r\n))", | |
"format": "time_series", | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"metric": "namedprocess_namegroup_memory_bytes", | |
"range": true, | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Top processes by Used memory", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 20, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 4, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "always", | |
"spanNulls": true, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 24, | |
"x": 0, | |
"y": 111 | |
}, | |
"id": 5, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"max", | |
"min" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true, | |
"sortBy": "Mean", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "topk($k,\n(avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"resident\",instance=~\"$instance\"}[$interval]) \n))", | |
"format": "time_series", | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"metric": "namedprocess_namegroup_memory_bytes", | |
"range": true, | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Top processes by Resident Memory", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 20, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 4, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "always", | |
"spanNulls": true, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 24, | |
"x": 0, | |
"y": 117 | |
}, | |
"id": 21, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"max", | |
"min" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true, | |
"sortBy": "Mean", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "topk($k,(\navg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"swapped\",instance=~\"$instance\"}[$interval])\n))\n", | |
"format": "time_series", | |
"hide": false, | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"metric": "namedprocess_namegroup_memory_bytes", | |
"range": true, | |
"refId": "A", | |
"step": 10 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "__auto", | |
"range": true, | |
"refId": "B" | |
} | |
], | |
"title": "Top processes by Swapped Memory", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 20, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 4, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "always", | |
"spanNulls": true, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 24, | |
"x": 0, | |
"y": 123 | |
}, | |
"id": 236, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"max", | |
"min" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true, | |
"sortBy": "Mean", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "topk($k,(\navg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"virtual\",instance=~\"$instance\"}[$interval])\n))\n", | |
"format": "time_series", | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"metric": "namedprocess_namegroup_memory_bytes", | |
"range": true, | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Top processes by Virtual memory", | |
"type": "timeseries" | |
} | |
], | |
"title": "Process Memory Usage", | |
"type": "row" | |
}, | |
{ | |
"collapsed": true, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 50 | |
}, | |
"id": 237, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 20, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 4, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "always", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "Bps" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 12, | |
"x": 0, | |
"y": 2367 | |
}, | |
"id": 238, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"max", | |
"min" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true, | |
"sortBy": "Mean", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "topk($k,(rate(namedprocess_namegroup_write_bytes_total{groupname=~\"$processes\",instance=~\"$instance\"}[$__range])))", | |
"format": "time_series", | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"metric": "namedprocess_namegroup_read_bytes_total", | |
"range": true, | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Top processes by Bytes Written", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 20, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 4, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "always", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "Bps" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 12, | |
"x": 12, | |
"y": 2367 | |
}, | |
"id": 259, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"max", | |
"min" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "topk($k,(rate(namedprocess_namegroup_read_bytes_total{groupname=~\"$processes\",instance=~\"$instance\"}[$interval]) or irate(namedprocess_namegroup_read_bytes_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))", | |
"format": "time_series", | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"metric": "namedprocess_namegroup_read_bytes_total", | |
"range": true, | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Top processes by Bytes Read", | |
"type": "timeseries" | |
} | |
], | |
"title": "Process Disk IO Usage", | |
"type": "row" | |
}, | |
{ | |
"collapsed": true, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 51 | |
}, | |
"id": 33, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [ | |
{ | |
"__systemRef": "hideSeriesFrom", | |
"matcher": { | |
"id": "byNames", | |
"options": { | |
"mode": "exclude", | |
"names": [ | |
"(136551)sh /var/lib/blocklet/dockerTemp/user-script-blocklet-woywzf9f-promotion-tool.sh" | |
], | |
"prefix": "All except:", | |
"readOnly": true | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": false, | |
"tooltip": false, | |
"viz": true | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 0, | |
"y": 2276 | |
}, | |
"id": 1, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "topk($k,(max_over_time(namedprocess_namegroup_num_procs{groupname=~\"$processes\",instance=~\"$instance\"}[$__range]) \nor max_over_time(namedprocess_namegroup_num_procs{groupname=~\"$processes\",instance=~\"$instance\"}[$__range])))", | |
"format": "time_series", | |
"hide": false, | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"metric": "process_namegroup_num_procs", | |
"range": true, | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"title": "Top processes by number of processes instances", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 12, | |
"y": 2276 | |
}, | |
"id": 239, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "topk($k,(max_over_time(namedprocess_namegroup_num_threads{groupname=~\"$processes\",instance=~\"$instance\"}[$__range]) or\nmax_over_time(namedprocess_namegroup_num_threads{groupname=~\"$processes\",instance=~\"$instance\"}[$__range])))", | |
"format": "time_series", | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Top processes by number of threads", | |
"type": "timeseries" | |
} | |
], | |
"title": "Process and Thread Counts", | |
"type": "row" | |
}, | |
{ | |
"collapsed": true, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 52 | |
}, | |
"id": 43, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 0, | |
"y": 2277 | |
}, | |
"id": 240, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "topk($k,(\nrate(namedprocess_namegroup_context_switches_total{groupname=~\"$processes\",instance=~\"$instance\",ctxswitchtype=\"voluntary\"}[$__range]) or\nirate(namedprocess_namegroup_context_switches_total{groupname=~\"$processes\",instance=~\"$instance\",ctxswitchtype=\"voluntary\"}[$__range])))", | |
"format": "time_series", | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Top Processes by Voluntary Context Switches", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 12, | |
"y": 2277 | |
}, | |
"id": 25, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "topk($k,(\nrate(namedprocess_namegroup_context_switches_total{groupname=~\"$processes\",instance=~\"$instance\",ctxswitchtype=\"nonvoluntary\"}[$__range]) or\nirate(namedprocess_namegroup_context_switches_total{groupname=~\"$processes\",instance=~\"$instance\",ctxswitchtype=\"nonvoluntary\"}[5m])))", | |
"format": "time_series", | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Top Processes by Non-Voluntary Context Switches", | |
"type": "timeseries" | |
} | |
], | |
"title": "Process Context Switches", | |
"type": "row" | |
}, | |
{ | |
"collapsed": true, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 53 | |
}, | |
"id": 241, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 0, | |
"y": 2486 | |
}, | |
"id": 230, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "topk($k,(max_over_time(namedprocess_namegroup_open_filedesc{groupname=~\"$processes\",instance=~\"$instance\"}[$__range]) or\nmax_over_time(namedprocess_namegroup_open_filedesc{groupname=~\"$processes\",instance=~\"$instance\"}[$__range])))", | |
"format": "time_series", | |
"hide": false, | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Top processes by Open File Descriptors", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 12, | |
"y": 2486 | |
}, | |
"id": 260, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "topk($k,(\nmax_over_time(namedprocess_namegroup_worst_fd_ratio{groupname=~\"$processes\",instance=~\"$instance\"}[$interval]) or\nmax_over_time(namedprocess_namegroup_worst_fd_ratio{groupname=~\"$processes\",instance=~\"$instance\"}[5m])\n))*100", | |
"format": "time_series", | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"refId": "A" | |
} | |
], | |
"title": "Top processes by File Descriptor Usage Percent", | |
"type": "timeseries" | |
} | |
], | |
"title": "Process File Descriptors", | |
"type": "row" | |
}, | |
{ | |
"collapsed": true, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 54 | |
}, | |
"id": 27, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [ | |
{ | |
"__systemRef": "hideSeriesFrom", | |
"matcher": { | |
"id": "byNames", | |
"options": { | |
"mode": "exclude", | |
"names": [ | |
"(173629)node /data/.blocklet-server/blocklets/daily_attendance/0.2.15/blocklet.js" | |
], | |
"prefix": "All except:", | |
"readOnly": true | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": false, | |
"tooltip": false, | |
"viz": true | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 0, | |
"y": 2279 | |
}, | |
"id": 242, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "topk($k,(\nrate(namedprocess_namegroup_major_page_faults_total{groupname=~\"$processes\",instance=~\"$instance\"}[$interval]) or\nirate(namedprocess_namegroup_major_page_faults_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))", | |
"format": "time_series", | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"refId": "A" | |
} | |
], | |
"title": "Top processes by Major Page Faults", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 12, | |
"y": 2279 | |
}, | |
"id": 261, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "topk($k,(\nrate(namedprocess_namegroup_minor_page_faults_total{groupname=~\"$processes\",instance=~\"$instance\"}[$interval]) or\nirate(namedprocess_namegroup_minor_page_faults_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))", | |
"format": "time_series", | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"refId": "A" | |
} | |
], | |
"title": "Top processes by Minor Page Faults", | |
"type": "timeseries" | |
} | |
], | |
"title": "Process Page Faults", | |
"type": "row" | |
}, | |
{ | |
"collapsed": true, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 55 | |
}, | |
"id": 29, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 12, | |
"x": 0, | |
"y": 111 | |
}, | |
"id": 262, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "topk($k,(\nmax_over_time(namedprocess_namegroup_states{instance=~\"$instance\", groupname=~\"$processes\", state=\"Running\"}[$interval]) or\nmax_over_time(namedprocess_namegroup_states{instance=~\"$instance\", groupname=~\"$processes\", state=\"Running\"}[5m])))", | |
"format": "time_series", | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"refId": "A" | |
} | |
], | |
"title": "Top running processes", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 12, | |
"x": 12, | |
"y": 111 | |
}, | |
"id": 243, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "topk($k,(\nmax_over_time(namedprocess_namegroup_states{instance=~\"$instance\", groupname=~\"$processes\", state=\"Waiting\"}[$interval]) or\nmax_over_time(namedprocess_namegroup_states{instance=~\"$instance\", groupname=~\"$processes\", state=\"Waiting\"}[5m])))", | |
"format": "time_series", | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}}", | |
"refId": "A" | |
} | |
], | |
"title": "Top of processes waiting on IO", | |
"type": "timeseries" | |
} | |
], | |
"title": "Process Statuses", | |
"type": "row" | |
}, | |
{ | |
"collapsed": true, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 56 | |
}, | |
"id": 45, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 12, | |
"x": 0, | |
"y": 294 | |
}, | |
"id": 244, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "topk($k,sum(avg_over_time(namedprocess_namegroup_threads_wchan{instance=~\"$instance\", groupname=~\"$processes\"}[$interval])) by (wchan) )", | |
"format": "time_series", | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{wchan}}", | |
"refId": "A" | |
} | |
], | |
"title": "Kernel waits for $processes", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 12, | |
"x": 12, | |
"y": 294 | |
}, | |
"id": 47, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true, | |
"sortBy": "Last *", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"mode": "multi", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "topk($k,sum(avg_over_time(namedprocess_namegroup_threads_wchan{instance=~\"$instance\", groupname=~\"$processes\"}[$interval])) by (wchan,groupname) )", | |
"format": "time_series", | |
"interval": "$interval", | |
"intervalFactor": 1, | |
"legendFormat": "{{groupname}} : {{wchan}}", | |
"refId": "A" | |
} | |
], | |
"title": "Kernel wait Details for $processes", | |
"type": "timeseries" | |
} | |
], | |
"title": "Process Kernel Waits (WCHAN)", | |
"type": "row" | |
}, | |
{ | |
"collapsed": true, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 57 | |
}, | |
"id": 263, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"custom": { | |
"align": "auto", | |
"cellOptions": { | |
"type": "auto" | |
}, | |
"inspect": false | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "dtdhms" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 10, | |
"w": 24, | |
"x": 0, | |
"y": 2282 | |
}, | |
"id": 19, | |
"options": { | |
"cellHeight": "sm", | |
"footer": { | |
"countRows": false, | |
"fields": "", | |
"reducer": [ | |
"sum" | |
], | |
"show": false | |
}, | |
"showHeader": true, | |
"sortBy": [ | |
{ | |
"desc": true, | |
"displayName": "Value" | |
} | |
] | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "time()-(namedprocess_namegroup_oldest_start_time_seconds{instance=~\"$instance\"}>0)", | |
"format": "table", | |
"instant": true, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "", | |
"refId": "A" | |
} | |
], | |
"title": "Processes by uptime", | |
"type": "table" | |
} | |
], | |
"title": "Process Uptime", | |
"type": "row" | |
} | |
], | |
"preload": false, | |
"refresh": "", | |
"schemaVersion": 41, | |
"tags": [], | |
"templating": { | |
"list": [ | |
{ | |
"current": { | |
"text": "local-prometheus", | |
"value": "bejkhltenvfnka" | |
}, | |
"includeAll": false, | |
"label": "datasource", | |
"name": "datasource", | |
"options": [], | |
"query": "prometheus", | |
"refresh": 1, | |
"regex": "", | |
"type": "datasource" | |
}, | |
{ | |
"current": { | |
"text": "aws-us-west-1-prod-spaces", | |
"value": "aws-us-west-1-prod-spaces" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"definition": "label_values(node_uname_info,nodename)", | |
"description": "", | |
"includeAll": true, | |
"label": "主机", | |
"name": "hostname", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(node_uname_info,nodename)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 1, | |
"regex": "", | |
"type": "query" | |
}, | |
{ | |
"current": { | |
"text": "bbqawfcfibdpshxsbb7sayitrxmz6f2dh75bgup7o6m.did.abtnet.io", | |
"value": "bbqawfcfibdpshxsbb7sayitrxmz6f2dh75bgup7o6m.did.abtnet.io" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"definition": "label_values(node_uname_info{nodename=~\"$hostname\"},instance)", | |
"includeAll": false, | |
"label": "Instance", | |
"name": "instance", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(node_uname_info{nodename=~\"$hostname\"},instance)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 2, | |
"regex": "", | |
"sort": 5, | |
"type": "query" | |
}, | |
{ | |
"allValue": ".+", | |
"current": { | |
"text": "All", | |
"value": "$__all" | |
}, | |
"definition": "label_values(namedprocess_namegroup_context_switches_total{instance=~\"$instance\", groupname!~\".+docker stats.+\"},groupname)", | |
"includeAll": true, | |
"label": "Processes", | |
"multi": true, | |
"name": "processes", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(namedprocess_namegroup_context_switches_total{instance=~\"$instance\", groupname!~\".+docker stats.+\"},groupname)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 1, | |
"regex": "", | |
"type": "query" | |
}, | |
{ | |
"current": { | |
"text": "All", | |
"value": "$__all" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"definition": "label_values(node_network_info{instance=~\"$instance\", device!~\"'tap.*|veth.*|br.*|docker.*|virbr.*|lo.*|cni.*'\"},device)", | |
"includeAll": true, | |
"label": "网卡", | |
"multi": true, | |
"name": "device", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(node_network_info{instance=~\"$instance\", device!~\"'tap.*|veth.*|br.*|docker.*|virbr.*|lo.*|cni.*'\"},device)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 2, | |
"regex": "", | |
"sort": 5, | |
"type": "query" | |
}, | |
{ | |
"auto": false, | |
"auto_count": 200, | |
"auto_min": "1s", | |
"current": { | |
"text": "1m", | |
"value": "1m" | |
}, | |
"label": "间隔", | |
"name": "interval", | |
"options": [ | |
{ | |
"selected": true, | |
"text": "1m", | |
"value": "1m" | |
}, | |
{ | |
"selected": false, | |
"text": "2m", | |
"value": "2m" | |
}, | |
{ | |
"selected": false, | |
"text": "5m", | |
"value": "5m" | |
}, | |
{ | |
"selected": false, | |
"text": "1h", | |
"value": "1h" | |
}, | |
{ | |
"selected": false, | |
"text": "6h", | |
"value": "6h" | |
}, | |
{ | |
"selected": false, | |
"text": "1d", | |
"value": "1d" | |
} | |
], | |
"query": "1m,2m,5m,1h,6h,1d", | |
"refresh": 2, | |
"type": "interval" | |
}, | |
{ | |
"current": { | |
"text": "/data", | |
"value": "/data" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"definition": "query_result(topk(1,sort_desc(max(node_filesystem_size_bytes{instance=~\"$instance\",fstype=~\"ext.?|xfs\",mountpoint!~\".*pods.*\"}) by (mountpoint))))", | |
"hide": 2, | |
"includeAll": false, | |
"label": "最大挂载目录", | |
"name": "maxmount", | |
"options": [], | |
"query": { | |
"qryType": 3, | |
"query": "query_result(topk(1,sort_desc(max(node_filesystem_size_bytes{instance=~\"$instance\",fstype=~\"ext.?|xfs\",mountpoint!~\".*pods.*\"}) by (mountpoint))))", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 2, | |
"regex": "/.*\\\"(.*)\\\".*/", | |
"type": "query" | |
}, | |
{ | |
"auto": true, | |
"auto_count": 200, | |
"auto_min": "1s", | |
"current": { | |
"text": "5", | |
"value": "5" | |
}, | |
"label": "Processes topK", | |
"name": "k", | |
"options": [ | |
{ | |
"selected": true, | |
"text": "5", | |
"value": "5" | |
}, | |
{ | |
"selected": false, | |
"text": "10", | |
"value": "10" | |
}, | |
{ | |
"selected": false, | |
"text": "20", | |
"value": "20" | |
}, | |
{ | |
"selected": false, | |
"text": "50", | |
"value": "50" | |
}, | |
{ | |
"selected": false, | |
"text": "100", | |
"value": "100" | |
}, | |
{ | |
"selected": false, | |
"text": "200", | |
"value": "200" | |
} | |
], | |
"query": "5,10,20,50,100,200", | |
"refresh": 2, | |
"type": "interval" | |
}, | |
{ | |
"current": { | |
"text": "aws-us-west-1-prod-spaces", | |
"value": "aws-us-west-1-prod-spaces" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"definition": "label_values(node_uname_info{nodename=~\"$hostname\", instance=~\"$instance\"},nodename)", | |
"hide": 2, | |
"includeAll": false, | |
"label": "展示使用的名称", | |
"name": "show_name", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(node_uname_info{nodename=~\"$hostname\", instance=~\"$instance\"},nodename)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 2, | |
"regex": "", | |
"sort": 5, | |
"type": "query" | |
}, | |
{ | |
"current": { | |
"text": "31", | |
"value": "31" | |
}, | |
"definition": "query_result(count(node_uname_info{}))", | |
"hide": 2, | |
"label": "主机数", | |
"name": "total", | |
"options": [], | |
"query": { | |
"qryType": 3, | |
"query": "query_result(count(node_uname_info{}))", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 2, | |
"regex": "/{} (.*) .*/", | |
"type": "query" | |
}, | |
{ | |
"current": { | |
"text": "^(aws|gcp).*", | |
"value": "^(aws|gcp).*" | |
}, | |
"description": "", | |
"hide": 2, | |
"label": "NODENAME_REGEX", | |
"name": "NODENAME_REGEX", | |
"query": "^(aws|gcp).*", | |
"skipUrlSync": true, | |
"type": "constant" | |
} | |
] | |
}, | |
"time": { | |
"from": "now-5m", | |
"to": "now" | |
}, | |
"timepicker": { | |
"refresh_intervals": [ | |
"30s", | |
"1m", | |
"3m", | |
"5m", | |
"15m", | |
"30m" | |
] | |
}, | |
"timezone": "browser", | |
"title": "运维看板", | |
"uid": "deo12wj3203k0a", | |
"version": 63 | |
} |
Comments are disabled for this gist.