引用
https://github.com/prometheus-community/windows_exporter/releases
安装
msiexec /i windows_exporter-0.18.1-amd64.msi
问题
# 报错:collector os failed after 0.000996s: The system cannot find the file specified.
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v ExistingPageFiles /t REG_MULTI_SZ
# 报错:collector xxx failed after 0.000993s; counter not found
lodctr /R
winmgmt.exe /RESYNCPERF
基于 consul-manager 的 grafana 模板
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- 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": "Windows的Prometheus监控看板展示,增加了资源汇总展示,优化了明细展示。更新支持windows_exporter 0.13.0。",
"editable": true,
"fiscalYearStartMonth": 0,
"gnetId": 10467,
"graphTooltip": 1,
"id": 36,
"iteration": 1656770812957,
"links": [
{
"icon": "bolt",
"tags": [],
"targetBlank": true,
"title": "Update",
"tooltip": "更新当前仪表板",
"type": "link",
"url": "https://grafana.com/grafana/dashboards/10467"
},
{
"icon": "question",
"tags": [],
"targetBlank": true,
"title": "GitHub",
"tooltip": "查看更多仪表板",
"type": "link",
"url": "https://github.com/starsliao/Prometheus"
},
{
"asDropdown": true,
"icon": "external link",
"tags": [],
"targetBlank": true,
"type": "dashboards"
}
],
"liveNow": false,
"panels": [
{
"collapsed": false,
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 41,
"panels": [],
"title": "资源总览(关联JOB项)",
"type": "row"
},
{
"description": "如果没有数据,则可能是windows系统自身性能监控计数器故障导致无法采集到数据",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "left",
"displayMode": "auto",
"minWidth": 110
},
"decimals": 2,
"displayName": "",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "内存"
},
"properties": [
{
"id": "unit",
"value": "bytes"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.minWidth",
"value": 100
}
]
},
{
"matcher": {
"id": "byName",
"options": "运行时间"
},
"properties": [
{
"id": "unit",
"value": "s"
},
{
"id": "thresholds",
"value": {
"mode": "absolute",
"steps": [
{
"color": "super-light-green",
"value": null
},
{
"color": "light-green",
"value": 259200
},
{
"color": "rgba(50, 172, 45, 0.97)",
"value": 432000
}
]
}
},
{
"id": "custom.displayMode",
"value": "color-text"
},
{
"id": "custom.align",
"value": "auto"
},
{
"id": "custom.width"
}
]
},
{
"matcher": {
"id": "byName",
"options": "进程数"
},
"properties": [
{
"id": "unit",
"value": "short"
},
{
"id": "decimals",
"value": 0
},
{
"id": "custom.align",
"value": "center"
}
]
},
{
"matcher": {
"id": "byName",
"options": "服务数"
},
"properties": [
{
"id": "unit",
"value": "short"
},
{
"id": "decimals",
"value": 0
},
{
"id": "custom.align",
"value": "center"
}
]
},
{
"matcher": {
"id": "byName",
"options": "CPU频率"
},
"properties": [
{
"id": "unit",
"value": "rothz"
},
{
"id": "decimals",
"value": 2
},
{
"id": "custom.align"
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "/.*使用率/"
},
"properties": [
{
"id": "unit",
"value": "percent"
},
{
"id": "color",
"value": {
"mode": "thresholds"
}
},
{
"id": "custom.displayMode",
"value": "color-text"
},
{
"id": "thresholds",
"value": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 50
},
{
"color": "red",
"value": 80
}
]
}
},
{
"id": "custom.minWidth",
"value": 75
},
{
"id": "custom.align",
"value": "center"
}
]
},
{
"matcher": {
"id": "byName",
"options": "操作系统"
},
"properties": [
{
"id": "custom.width"
}
]
},
{
"matcher": {
"id": "byName",
"options": "到期日"
},
"properties": [
{
"id": "custom.width"
}
]
},
{
"matcher": {
"id": "byName",
"options": "CPU"
},
"properties": [
{
"id": "custom.minWidth",
"value": 50
},
{
"id": "unit",
"value": "short"
},
{
"id": "decimals",
"value": 0
}
]
},
{
"matcher": {
"id": "byName",
"options": "ECS-ID"
},
"properties": [
{
"id": "custom.width",
"value": 100
}
]
},
{
"matcher": {
"id": "byName",
"options": "ECS名"
},
"properties": [
{
"id": "custom.minWidth",
"value": 250
},
{
"id": "custom.align",
"value": "left"
}
]
},
{
"matcher": {
"id": "byName",
"options": "大区"
},
"properties": [
{
"id": "custom.minWidth",
"value": 100
}
]
},
{
"matcher": {
"id": "byName",
"options": "资源组"
},
"properties": [
{
"id": "custom.minWidth",
"value": 70
}
]
}
]
},
"gridPos": {
"h": 10,
"w": 24,
"x": 0,
"y": 1
},
"id": 45,
"options": {
"footer": {
"fields": "",
"reducer": [
"sum"
],
"show": true
},
"showHeader": true,
"sortBy": [
{
"desc": true,
"displayName": "CPU使用率"
}
]
},
"pluginVersion": "8.3.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": false,
"expr": "windows_os_info{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"} * on(instance) group_right(product) windows_cs_hostname",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "",
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": false,
"expr": "time() - windows_system_system_up_time{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "运行时间",
"refId": "D"
},
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": false,
"expr": "windows_cs_logical_processors{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"} - 0",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "CPU",
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": false,
"expr": "avg by (instance) (windows_cpu_core_frequency_mhz{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"})",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "CPU频率",
"refId": "K"
},
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": false,
"expr": "(1 - avg(rate(windows_cpu_time_total{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",mode=\"idle\",name=~\".*$sname.*\"}[$interval])) by (instance)) * 100",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "CPU使用率",
"refId": "I"
},
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": false,
"expr": "windows_cs_physical_memory_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"} - 0",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "内存",
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": false,
"expr": "100 - 100 * windows_os_physical_memory_free_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"} / windows_cs_physical_memory_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "内存使用率",
"refId": "J"
},
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": false,
"expr": "100 - (windows_logical_disk_free_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",volume=~\"C:\"}/windows_logical_disk_size_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",volume=~\"C:\"}) * 100",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "C盘使用率",
"refId": "E"
},
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": false,
"expr": "max by (instance) (1-windows_logical_disk_free_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}/windows_logical_disk_size_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}) * 100",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "分区最高使用率",
"refId": "F"
},
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": false,
"expr": "windows_os_processes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "进程数",
"refId": "G"
},
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": false,
"expr": "sum by (instance) (windows_service_state{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"})",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "服务数",
"refId": "H"
}
],
"title": "服务器资源总览",
"transformations": [
{
"id": "merge",
"options": {
"reducers": []
}
},
{
"id": "filterFieldsByName",
"options": {
"include": {
"names": [
"group",
"hostname",
"iid",
"ip",
"name",
"product",
"region",
"Value #D",
"Value #B",
"Value #K",
"Value #I",
"Value #C",
"Value #J",
"Value #E",
"Value #F"
]
}
}
},
{
"id": "organize",
"options": {
"excludeByName": {},
"indexByName": {
"Value #B": 5,
"Value #C": 6,
"Value #D": 13,
"Value #E": 9,
"Value #F": 10,
"Value #I": 7,
"Value #J": 8,
"Value #K": 14,
"group": 4,
"hostname": 1,
"iid": 2,
"ip": 3,
"name": 0,
"product": 11,
"region": 12
},
"renameByName": {
"Value #B": "CPU",
"Value #C": "内存",
"Value #D": "运行时间",
"Value #E": "C盘使用率",
"Value #F": "分区最高使用率",
"Value #G": "进程数",
"Value #H": "服务数",
"Value #I": "CPU使用率",
"Value #J": "内存使用率",
"Value #K": "CPU频率",
"exp": "到期日",
"group": "资源组",
"hostname": "服务器名",
"iid": "ECS-ID",
"instance": "",
"ip": "IP",
"name": "ECS名",
"product": "操作系统",
"region": "大区"
}
}
}
],
"transparent": true,
"type": "table"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"decimals": 1,
"fieldConfig": {
"defaults": {
"links": [],
"unit": "percent"
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 5,
"w": 13,
"x": 0,
"y": 11
},
"hiddenSeries": false,
"id": 47,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": false,
"rightSide": true,
"show": true,
"sort": "current",
"sortDesc": false,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"paceLength": 10,
"percentage": false,
"pluginVersion": "8.3.6",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "(1 - avg(rate(windows_cpu_time_total{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",mode=\"idle\",name=~\".*$sname.*\"}[$interval])) by (instance,ip,name)) * 100",
"hide": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{ name }}",
"refId": "B"
}
],
"thresholds": [],
"timeRegions": [],
"title": "各主机CPU使用率",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "cumulative"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:3535",
"format": "percent",
"logBase": 1,
"max": "100",
"min": "0",
"show": true
},
{
"$$hashKey": "object:3536",
"format": "short",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {
"Free Physical memory": "semi-dark-green",
"Free physical memory": "semi-dark-green",
"Free virtual memory": "super-light-blue",
"Physical memory": "dark-red",
"Virtual memory": "dark-blue"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 1,
"gridPos": {
"h": 5,
"w": 11,
"x": 13,
"y": 11
},
"hiddenSeries": false,
"hideTimeOverride": false,
"id": 49,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": false,
"rightSide": true,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.3.6",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"$$hashKey": "object:3675",
"alias": "/.*Physical.*/",
"linewidth": 3
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "100 - 100 * windows_os_physical_memory_free_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"} / windows_cs_physical_memory_bytes{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}",
"instant": false,
"interval": "",
"legendFormat": "{{ name }}",
"refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
"title": "各主机内存使用率",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:3688",
"format": "percent",
"logBase": 1,
"show": true
},
{
"$$hashKey": "object:3689",
"format": "short",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 5,
"w": 13,
"x": 0,
"y": 16
},
"hiddenSeries": false,
"hideTimeOverride": false,
"id": 53,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": false,
"rightSide": true,
"show": true,
"sort": "max",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null as zero",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.3.6",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "max by (instance,name) (irate(windows_net_bytes_sent_total{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",nic!~'isatap.*|VPN.*'}[$interval]))*8",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "{{ name }}_上传",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "B",
"step": 10
},
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "-max by (instance,name) (irate(windows_net_bytes_received_total{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\",nic!~'isatap.*|VPN.*'}[$interval]))*8",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "{{ name }}_下载",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 10
}
],
"thresholds": [],
"timeRegions": [],
"title": "各主机最大流量网卡网络详情",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:4930",
"format": "bps",
"label": "下载 上传",
"logBase": 1,
"show": true
},
{
"$$hashKey": "object:4931",
"format": "short",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 5,
"w": 11,
"x": 13,
"y": 16
},
"hiddenSeries": false,
"hideTimeOverride": false,
"id": 55,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": false,
"rightSide": true,
"show": false,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null as zero",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.3.6",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "-max by (instance) (irate(windows_logical_disk_reads_total[$interval]))",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "{{instance}}_读取",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "B",
"step": 20
},
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "max by (instance) (irate(windows_logical_disk_writes_total[$interval]))",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "{{instance}}_写入",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "C",
"step": 20
}
],
"thresholds": [],
"timeRegions": [],
"title": "各主机最大磁盘IO详情",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:5486",
"format": "iops",
"label": "读取 写入",
"logBase": 1,
"show": true
},
{
"$$hashKey": "object:5487",
"format": "short",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
},
{
"collapsed": false,
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 21
},
"id": 43,
"panels": [],
"title": "资源明细【$show_name】-【$instance】",
"type": "row"
},
{
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "super-light-blue",
"mode": "fixed"
},
"decimals": 0,
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"min": 1,
"noValue": "NULL",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 2,
"x": 0,
"y": 22
},
"id": 35,
"interval": "",
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "8.3.6",
"repeat": "host",
"repeatDirection": "v",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "windows_cs_logical_processors{instance=~\"$instance:.+\"}",
"format": "time_series",
"instant": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "",
"refId": "A"
}
],
"title": "CPU核数",
"type": "stat"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"": {
"text": ""
}
},
"type": "value"
}
],
"max": 100,
"min": 0,
"noValue": "NULL",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#299c46",
"value": null
},
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 60
},
{
"color": "dark-red",
"value": 90
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 2,
"x": 2,
"y": 22
},
"id": 19,
"links": [],
"maxDataPoints": 100,
"options": {
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "8.3.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "100 - (avg(irate(windows_cpu_time_total{instance=~\"$instance:.+\",mode=\"idle\"}[$interval])))*100",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "",
"refId": "A"
}
],
"title": "CPU使用率",
"type": "gauge"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"decimals": 1,
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 10,
"x": 4,
"y": 22
},
"hiddenSeries": false,
"id": 25,
"legend": {
"alignAsTable": false,
"avg": true,
"current": true,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"paceLength": 10,
"percentage": false,
"pluginVersion": "8.3.6",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "100 - avg(irate(windows_cpu_time_total{instance=~\"$instance:.+\",mode=\"idle\"}[$interval]))*100",
"hide": false,
"interval": "",
"legendFormat": "CPU使用率",
"refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
"title": "CPU使用率",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:366",
"format": "percent",
"logBase": 1,
"show": true
},
{
"$$hashKey": "object:367",
"format": "short",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {
"Free Physical memory": "semi-dark-green",
"Free physical memory": "semi-dark-green",
"Free virtual memory": "yellow",
"Physical memory": "dark-red",
"Virtual memory": "dark-purple",
"剩余物理内存": "green",
"总物理内存": "dark-red"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"decimals": 2,
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 3,
"gridPos": {
"h": 8,
"w": 10,
"x": 14,
"y": 22
},
"hiddenSeries": false,
"hideTimeOverride": false,
"id": 14,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 0,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.3.6",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"$$hashKey": "object:225",
"alias": "/.*物理内存.*/",
"linewidth": 2
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "windows_cs_physical_memory_bytes{instance=~\"$instance:.+\"}",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "总物理内存",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "B",
"step": 5
},
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "windows_os_physical_memory_free_bytes{instance=~\"$instance:.+\"}",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "剩余物理内存",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "C",
"step": 5
},
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "windows_os_virtual_memory_bytes{instance=~\"$instance:.+\"}",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "Virtual memory",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 5
},
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "windows_os_virtual_memory_free_bytes{instance=~\"$instance:.+\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Free virtual memory",
"refId": "D"
}
],
"thresholds": [],
"timeRegions": [],
"title": "内存详情",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:197",
"format": "bytes",
"logBase": 1,
"min": "0",
"show": true
},
{
"$$hashKey": "object:198",
"format": "short",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
},
{
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "super-light-blue",
"mode": "fixed"
},
"decimals": 1,
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"noValue": "NULL",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 2,
"x": 0,
"y": 26
},
"id": 37,
"interval": "",
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "8.3.6",
"repeat": "host",
"repeatDirection": "v",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "windows_cs_physical_memory_bytes{instance=~\"$instance:.+\"}",
"format": "time_series",
"instant": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "",
"refId": "A"
}
],
"title": "总内存",
"type": "stat"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"max": 100,
"min": 0,
"noValue": "NULL",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#299c46",
"value": null
},
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 70
},
{
"color": "dark-red",
"value": 90
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 2,
"x": 2,
"y": 26
},
"id": 21,
"links": [],
"maxDataPoints": 100,
"options": {
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "8.3.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "100 - 100 * windows_os_physical_memory_free_bytes{instance=~\"$instance:.+\"} / windows_cs_physical_memory_bytes{instance=~\"$instance:.+\"}",
"format": "table",
"instant": false,
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "内存使用率",
"type": "gauge"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"max": 100,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 80
},
{
"color": "dark-red",
"value": 90
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 4,
"x": 0,
"y": 30
},
"id": 23,
"links": [],
"options": {
"displayMode": "lcd",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"showUnfilled": true
},
"pluginVersion": "8.3.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "100 - (windows_logical_disk_free_bytes{instance=~\"$instance:.+\"} / windows_logical_disk_size_bytes{instance=~\"$instance:.+\"})*100",
"instant": false,
"interval": "",
"legendFormat": "{{volume}}",
"refId": "A"
}
],
"title": "各分区使用率",
"type": "bargauge"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 4,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bytes"
},
"overrides": [
{
"matcher": {
"id": "byRegexp",
"options": "/总空间.*/"
},
"properties": [
{
"id": "custom.lineStyle",
"value": {
"dash": [
0,
10
],
"fill": "dot"
}
},
{
"id": "unit",
"value": "bytes"
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 7,
"x": 4,
"y": 30
},
"hideTimeOverride": false,
"id": 15,
"links": [],
"options": {
"legend": {
"calcs": [
"max",
"min",
"last"
],
"displayMode": "table",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "8.3.6",
"targets": [
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "windows_logical_disk_free_bytes{instance=~\"$instance:.+\"}",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"instant": false,
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "剩余空间 {{volume}}",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 20
},
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "windows_logical_disk_size_bytes{instance=~\"$instance:.+\"}",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"instant": false,
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "总空间 {{volume}}",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "B",
"step": 20
}
],
"title": "磁盘剩余空间",
"transformations": [],
"type": "timeseries"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 2,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 7,
"x": 11,
"y": 30
},
"hiddenSeries": false,
"hideTimeOverride": false,
"id": 8,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null as zero",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.3.6",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "irate(windows_logical_disk_read_bytes_total{instance=~\"$instance:.+\"}[$interval])\r\n",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "read {{volume}}",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 20
},
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "irate(windows_logical_disk_write_bytes_total{instance=~\"$instance:.+\"}[$interval])\r\n",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "write {{volume}}",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "B",
"step": 20
}
],
"thresholds": [],
"timeRegions": [],
"title": "磁盘读写",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:761",
"format": "Bps",
"logBase": 1,
"show": true
},
{
"$$hashKey": "object:762",
"format": "short",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 6,
"x": 18,
"y": 30
},
"hiddenSeries": false,
"hideTimeOverride": false,
"id": 9,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null as zero",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.3.6",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "irate(windows_logical_disk_reads_total{instance=~\"$instance:.+\"}[$interval])",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "read {{volume}}",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "B",
"step": 20
},
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "irate(windows_logical_disk_writes_total{instance=~\"$instance:.+\"}[$interval])",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "write {{volume}}",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "C",
"step": 20
}
],
"thresholds": [],
"timeRegions": [],
"title": "磁盘IO",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:815",
"format": "iops",
"logBase": 1,
"show": true
},
{
"$$hashKey": "object:816",
"format": "short",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 6,
"x": 0,
"y": 37
},
"hiddenSeries": false,
"hideTimeOverride": false,
"id": 11,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"sort": "max",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null as zero",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.3.6",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "irate(windows_net_bytes_sent_total{instance=~\"$instance:.+\",nic!~'isatap.*|VPN.*'}[$interval])*8>0\r\n",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "{{nic}}-Sent-上传",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "B",
"step": 10
},
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "irate(windows_net_bytes_received_total{instance=~\"$instance:.+\",nic!~'isatap.*|VPN.*'}[$interval])*8\n",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "{{nic}}-Received-下载",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 10
}
],
"thresholds": [],
"timeRegions": [],
"title": "网络详情",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:137",
"format": "bps",
"logBase": 1,
"show": true
},
{
"$$hashKey": "object:138",
"format": "short",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"decimals": 2,
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 6,
"x": 6,
"y": 37
},
"hiddenSeries": false,
"hideTimeOverride": false,
"id": 29,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": false,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"paceLength": 10,
"percentage": false,
"pluginVersion": "8.3.6",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "(irate(windows_net_bytes_total{instance=~\"$instance:.+\",nic=\"Red_Hat_VirtIO_Ethernet_Adapter\"}[$interval]) / windows_net_current_bandwidth_bytes{instance=~\"$instance:.+\",nic=\"Red_Hat_VirtIO_Ethernet_Adapter\"}) * 100",
"format": "time_series",
"interval": "",
"legendFormat": "{{ nic }}",
"refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
"title": "网络使用率",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:915",
"format": "percent",
"logBase": 1,
"max": "100",
"min": "0",
"show": true
},
{
"$$hashKey": "object:916",
"format": "bytes",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 6,
"x": 12,
"y": 37
},
"hiddenSeries": false,
"hideTimeOverride": false,
"id": 10,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null as zero",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.3.6",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "irate(windows_net_packets_outbound_discarded{instance=~\"$instance:.+\", nic!~'isatap.*|VPN.*'}[5m]) + irate(windows_net_packets_outbound_errors{instance=~\"$instance:.+\"}[$interval])",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "上传",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "B",
"step": 15
},
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "irate(windows_net_packets_received_discarded{instance=~\"$instance:.+\", nic!~'isatap.*|VPN.*'}[5m]) + irate(windows_net_packets_received_errors{instance=~\"$instance:.+\"}[$interval])",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "下载",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 15
}
],
"thresholds": [],
"timeRegions": [],
"title": "Network discarded/error packets",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:518",
"format": "pps",
"logBase": 1,
"show": true
},
{
"$$hashKey": "object:519",
"format": "short",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 5,
"w": 6,
"x": 0,
"y": 44
},
"hiddenSeries": false,
"hideTimeOverride": false,
"id": 13,
"legend": {
"alignAsTable": false,
"avg": false,
"current": true,
"max": true,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null as zero",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.3.6",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "irate(windows_system_exception_dispatches_total{instance=~\"$instance:.+\"}[$interval])",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "exceptions",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 20
}
],
"thresholds": [],
"timeRegions": [],
"title": "System exception dispatches",
"tooltip": {
"shared": false,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:466",
"format": "short",
"logBase": 1,
"show": true
},
{
"$$hashKey": "object:467",
"format": "short",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 5,
"w": 6,
"x": 6,
"y": 44
},
"hiddenSeries": false,
"hideTimeOverride": false,
"id": 12,
"legend": {
"alignAsTable": false,
"avg": false,
"current": true,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null as zero",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.3.6",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "windows_system_threads{instance=~\"$instance:.+\"}",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "system_threads",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 20
}
],
"thresholds": [],
"timeRegions": [],
"title": "system_threads",
"tooltip": {
"shared": false,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:414",
"format": "none",
"logBase": 1,
"show": true
},
{
"$$hashKey": "object:415",
"format": "short",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [],
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 6,
"x": 12,
"y": 44
},
"id": 7,
"links": [],
"options": {
"legend": {
"calcs": [
"last",
"min",
"max"
],
"displayMode": "table",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "8.3.6",
"targets": [
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"exemplar": true,
"expr": "sum(windows_service_state{instance=~\"$instance:.+\",state=~\"running|stopped|unknown\"}) by (state)",
"format": "time_series",
"functions": [],
"group": {
"filter": ""
},
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "{{state}}",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 5
}
],
"title": "服务状态",
"type": "timeseries"
}
],
"refresh": false,
"schemaVersion": 34,
"style": "dark",
"tags": [
"Prometheus",
"windows_exporter"
],
"templating": {
"list": [
{
"current": {
"selected": false,
"text": "阿里云",
"value": "阿里云"
},
"definition": "label_values(windows_cs_hostname, vendor)",
"hide": 0,
"includeAll": false,
"label": "云厂商",
"multi": false,
"name": "vendor",
"options": [],
"query": {
"query": "label_values(windows_cs_hostname, vendor)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 5,
"type": "query"
},
{
"current": {
"selected": false,
"text": "consul-manager",
"value": "consul-manager"
},
"definition": "label_values(windows_cs_hostname{vendor=~\"$vendor\"}, account)",
"hide": 0,
"includeAll": false,
"label": "账户",
"multi": false,
"name": "account",
"options": [],
"query": {
"query": "label_values(windows_cs_hostname{vendor=~\"$vendor\"}, account)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 5,
"type": "query"
},
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"definition": "label_values(windows_cs_hostname{vendor=~\"$vendor\",account=~\"$account\"}, group)",
"hide": 0,
"includeAll": true,
"label": "资源组",
"multi": false,
"name": "group",
"options": [],
"query": {
"query": "label_values(windows_cs_hostname{vendor=~\"$vendor\",account=~\"$account\"}, group)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 5,
"type": "query"
},
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"definition": "label_values(windows_cs_hostname{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\"}, name)",
"hide": 0,
"includeAll": true,
"label": "ECS名称",
"multi": false,
"name": "name",
"options": [],
"query": {
"query": "label_values(windows_cs_hostname{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\"}, name)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 5,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {
"selected": false,
"text": "192.168.3.148",
"value": "192.168.3.148"
},
"datasource": {
"type": "prometheus",
"uid": "G3WRHql7k"
},
"definition": "label_values(windows_cs_hostname{vendor=~\"$vendor\",account=~\"$account\", group=~\"$group\",name=~\"$name\"}, instance)",
"hide": 0,
"includeAll": false,
"label": "IP",
"multi": false,
"name": "instance",
"options": [],
"query": {
"query": "label_values(windows_cs_hostname{vendor=~\"$vendor\",account=~\"$account\", group=~\"$group\",name=~\"$name\"}, instance)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "/(.*):.*/",
"skipUrlSync": false,
"sort": 5,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"auto": false,
"auto_count": 30,
"auto_min": "10s",
"current": {
"selected": false,
"text": "30s",
"value": "30s"
},
"hide": 0,
"label": "间隔",
"name": "interval",
"options": [
{
"selected": true,
"text": "30s",
"value": "30s"
},
{
"selected": false,
"text": "1m",
"value": "1m"
},
{
"selected": false,
"text": "2m",
"value": "2m"
},
{
"selected": false,
"text": "3m",
"value": "3m"
},
{
"selected": false,
"text": "5m",
"value": "5m"
},
{
"selected": false,
"text": "10m",
"value": "10m"
},
{
"selected": false,
"text": "30m",
"value": "30m"
}
],
"query": "30s,1m,2m,3m,5m,10m,30m",
"queryValue": "",
"refresh": 2,
"skipUrlSync": false,
"type": "interval"
},
{
"current": {
"selected": false,
"text": "21",
"value": "21"
},
"definition": "query_result(count(windows_cs_hostname{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}))",
"hide": 2,
"includeAll": false,
"label": "主机数",
"multi": false,
"name": "total",
"options": [],
"query": {
"query": "query_result(count(windows_cs_hostname{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",name=~\".*$sname.*\"}))",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "/{} (.*) .*/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": false,
"text": "oldsystem-prod-bje-jayx-003148",
"value": "oldsystem-prod-bje-jayx-003148"
},
"definition": "label_values(windows_cs_hostname{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",instance=~\"$instance:.+\"}, name)",
"hide": 2,
"includeAll": false,
"label": "展示使用的名称",
"multi": false,
"name": "show_name",
"options": [],
"query": {
"query": "label_values(windows_cs_hostname{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\",instance=~\"$instance:.+\"}, name)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 5,
"type": "query"
},
{
"current": {
"selected": false,
"text": "i-2ze9p0eesh0lgnii3z2z",
"value": "i-2ze9p0eesh0lgnii3z2z"
},
"definition": "label_values(windows_cs_hostname{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\"},iid)",
"hide": 2,
"includeAll": false,
"label": "实例ID",
"multi": false,
"name": "iid",
"options": [],
"query": {
"query": "label_values(windows_cs_hostname{vendor=~\"$vendor\",account=~\"$account\",group=~\"$group\",name=~\"$name\"},iid)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 5,
"type": "query"
},
{
"current": {
"selected": true,
"text": "",
"value": ""
},
"description": "总览表名称字段支持筛选,可以使用正则,如:.*aa.*bb.*",
"hide": 0,
"label": "正则查询ECS名称",
"name": "sname",
"options": [
{
"selected": true,
"text": "",
"value": ""
}
],
"query": "",
"skipUrlSync": false,
"type": "textbox"
}
]
},
"time": {
"from": "now-15m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "",
"title": "windows服务器监控",
"uid": "Kdh0OoSGz33",
"version": 43,
"weekStart": ""
}