{
    "name": "Windows Exporter",
    "tags": "",
    "ident": "",
    "configs": {
        "version": "3.0.0",
        "links": [
            {
                "title": "Update",
                "url": "https://grafana.com/grafana/dashboards/10467",
                "targetBlank": true
            },
            {
                "title": "GitHub",
                "url": "https://github.com/starsliao/Prometheus",
                "targetBlank": true
            }
        ],
        "var": [
            {
                "name": "datasource",
                "type": "datasource",
                "definition": "prometheus"
            },
            {
                "type": "query",
                "name": "job",
                "definition": "label_values(windows_cs_hostname, job)",
                "allValue": null,
                "allOption": false,
                "multi": false,
                "reg": "",
                "datasource": {
                    "cate": "prometheus",
                    "value": "${datasource}"
                }
            },
            {
                "name": "instance",
                "type": "query",
                "datasource": {
                    "cate": "prometheus",
                    "value": "${datasource}"
                },
                "definition": "label_values(windows_cs_hostname{job=~\"$job\"}, instance)",
                "reg": "",
                "multi": false
            },
            {
                "type": "query",
                "name": "show_hostname",
                "definition": "label_values(windows_cs_hostname{job=~\"$job\",instance=~\"$instance\"}, hostname)",
                "allValue": null,
                "allOption": false,
                "multi": false,
                "reg": "",
                "datasource": {
                    "cate": "prometheus",
                    "value": "${datasource}"
                }
            }
        ],
        "panels": [
            {
                "type": "row",
                "id": "70dfbac0-828a-48ec-b6c8-534cf5bc785b",
                "name": "资源总览",
                "collapsed": true,
                "layout": {
                    "h": 1,
                    "w": 24,
                    "x": 0,
                    "y": 0,
                    "i": "70dfbac0-828a-48ec-b6c8-534cf5bc785b",
                    "isResizable": false
                },
                "panels": []
            },
            {
                "version": "2.0.0",
                "id": "ff0ec352-8bb3-4955-b934-ac04d747a95f",
                "type": "timeseries",
                "name": "各主机CPU使用率",
                "links": [],
                "layout": {
                    "h": 6,
                    "w": 5,
                    "x": 0,
                    "y": 1,
                    "i": "ff0ec352-8bb3-4955-b934-ac04d747a95f",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "B",
                        "expr": "100 - (avg by (instance) (irate(windows_cpu_time_total{job=~\"$job\",mode=\"idle\"}[2m])) * 100)",
                        "legend": "{{instance}}"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "type": "timeseries",
                "id": "47d11df8-7cba-46ac-b7a8-740b66f62f0c",
                "layout": {
                    "h": 6,
                    "w": 5,
                    "x": 5,
                    "y": 1,
                    "i": "47d11df8-7cba-46ac-b7a8-740b66f62f0c",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "100.0 - 100 * windows_os_physical_memory_free_bytes{job=~\"$job\"} / windows_cs_physical_memory_bytes{job=~\"$job\"}",
                        "legend": "{{instance}}"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "各主机内存使用率",
                "links": [],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "list"
                    },
                    "standardOptions": {
                        "util": "percent"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "spanNulls": false,
                    "lineWidth": 1,
                    "fillOpacity": 0.5,
                    "gradientMode": "none",
                    "stack": "off",
                    "scaleDistribution": {
                        "type": "linear"
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "9d522544-656a-4e9c-93b5-a74181e6ae32",
                "type": "timeseries",
                "name": "各主机最大流量网卡网络详情",
                "links": [],
                "layout": {
                    "h": 6,
                    "w": 5,
                    "x": 10,
                    "y": 1,
                    "i": "9d522544-656a-4e9c-93b5-a74181e6ae32",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "B",
                        "expr": "max by (instance) (irate(windows_net_bytes_sent_total{job=~\"$job\",nic!~'isatap.*|VPN.*'}[2m]))*8",
                        "legend": "{{instance}}_上传"
                    },
                    {
                        "refId": "A",
                        "expr": "-max by (instance) (irate(windows_net_bytes_received_total{job=~\"$job\",nic!~'isatap.*|VPN.*'}[2m]))*8",
                        "legend": "{{instance}}_下载"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "739029d1-5293-4979-bc52-334450c5f1f8",
                "type": "timeseries",
                "name": "各主机最大磁盘读写详情",
                "links": [],
                "layout": {
                    "h": 6,
                    "w": 5,
                    "x": 15,
                    "y": 1,
                    "i": "739029d1-5293-4979-bc52-334450c5f1f8",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "-max by (instance) (irate(windows_logical_disk_read_bytes_total[2m]))",
                        "legend": "{{instance}}_读取"
                    },
                    {
                        "refId": "B",
                        "expr": "max by (instance) (irate(windows_logical_disk_write_bytes_total[2m]))",
                        "legend": "{{instance}}_写入"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "d79240ae-091b-4429-9bea-8ba1e7b1239e",
                "type": "timeseries",
                "name": "各主机最大磁盘IO详情",
                "links": [],
                "layout": {
                    "h": 6,
                    "w": 4,
                    "x": 20,
                    "y": 1,
                    "i": "d79240ae-091b-4429-9bea-8ba1e7b1239e",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "B",
                        "expr": "-max by (instance) (irate(windows_logical_disk_reads_total[2m]))",
                        "legend": "{{instance}}_读取"
                    },
                    {
                        "refId": "C",
                        "expr": "max by (instance) (irate(windows_logical_disk_writes_total[2m]))",
                        "legend": "{{instance}}_写入"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "b1b52446-7105-415c-9225-7d09cfe58268",
                "type": "row",
                "name": "资源明细【$show_hostname：$instance】",
                "collapsed": true,
                "layout": {
                    "h": 1,
                    "w": 24,
                    "x": 0,
                    "y": 7,
                    "i": "b1b52446-7105-415c-9225-7d09cfe58268",
                    "isResizable": false
                },
                "panels": []
            },
            {
                "type": "stat",
                "id": "1968eff8-c4d3-4fe9-871b-2c2a022be2d6",
                "layout": {
                    "h": 4,
                    "w": 7,
                    "x": 0,
                    "y": 8,
                    "i": "1968eff8-c4d3-4fe9-871b-2c2a022be2d6",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "time() - windows_system_system_up_time{job=~\"$job\",instance=~\"$instance\"}",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "启动时长",
                "links": [],
                "description": "",
                "custom": {
                    "textMode": "value",
                    "colorMode": "value",
                    "calc": "lastNotNull",
                    "valueField": "Value",
                    "colSpan": 1,
                    "textSize": {}
                },
                "options": {
                    "standardOptions": {
                        "util": "humantimeSeconds"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "gauge",
                "id": "51907286-0499-4d7b-b46e-2281b216dfe7",
                "layout": {
                    "h": 4,
                    "w": 5,
                    "x": 7,
                    "y": 8,
                    "i": "51907286-0499-4d7b-b46e-2281b216dfe7",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "100 - (avg(irate(windows_cpu_time_total{job=~\"$job\",instance=~\"$instance\",mode=\"idle\"}[2m])))*100",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "CPU使用率",
                "links": [],
                "custom": {
                    "textMode": "valueAndName",
                    "calc": "lastNotNull"
                },
                "options": {
                    "standardOptions": {
                        "util": "percent",
                        "decimals": 2
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#3FC453",
                                "value": null,
                                "type": "base"
                            },
                            {
                                "color": "#FF9919",
                                "value": 60
                            },
                            {
                                "color": "#FF656B",
                                "value": 80
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "e32b3b84-1eac-4d93-ab80-bb3886efe809",
                "type": "barGauge",
                "name": "各分区使用率",
                "links": [],
                "layout": {
                    "h": 3,
                    "w": 12,
                    "x": 12,
                    "y": 8,
                    "i": "e32b3b84-1eac-4d93-ab80-bb3886efe809",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "100 - (windows_logical_disk_free_bytes{job=~\"$job\",instance=~\"$instance\"} / windows_logical_disk_size_bytes{job=~\"$job\",instance=~\"$instance\"})*100",
                        "legend": "{{volume}}"
                    }
                ],
                "options": {
                    "valueMappings": [],
                    "thresholds": {
                        "mode": "absolute",
                        "style": "line",
                        "steps": [
                            {
                                "color": "green",
                                "value": null,
                                "type": "base"
                            },
                            {
                                "color": "#EAB839",
                                "value": 80
                            },
                            {
                                "color": "red",
                                "value": 90
                            }
                        ]
                    },
                    "standardOptions": {
                        "util": "percent",
                        "min": 0,
                        "max": 100
                    },
                    "legend": {
                        "displayMode": "list"
                    },
                    "tooltip": {
                        "mode": "multi"
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "calc": "lastNotNull"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "c0835408-84ac-466d-881d-13aa40acd5ea",
                "type": "timeseries",
                "name": "进程数",
                "links": [],
                "layout": {
                    "h": 5,
                    "w": 12,
                    "x": 12,
                    "y": 11,
                    "i": "c0835408-84ac-466d-881d-13aa40acd5ea",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "windows_os_processes{job=~\"$job\",instance=~\"$instance\"}",
                        "legend": "进程数"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "type": "stat",
                "id": "ba9f7f4b-1d7f-40ae-b483-d32d28c345b7",
                "layout": {
                    "h": 4,
                    "w": 3,
                    "x": 0,
                    "y": 12,
                    "i": "ba9f7f4b-1d7f-40ae-b483-d32d28c345b7",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "windows_cs_logical_processors{job=~\"$job\",instance=~\"$instance\"}",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "CPU核数",
                "links": [],
                "description": "",
                "custom": {
                    "textMode": "value",
                    "colorMode": "value",
                    "calc": "lastNotNull",
                    "valueField": "Value",
                    "colSpan": 1,
                    "textSize": {}
                },
                "options": {
                    "standardOptions": {
                        "util": "none"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "stat",
                "id": "3e3640cc-41ce-43b0-aca0-bba7f20b3d6e",
                "layout": {
                    "h": 4,
                    "w": 4,
                    "x": 3,
                    "y": 12,
                    "i": "3e3640cc-41ce-43b0-aca0-bba7f20b3d6e",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "windows_cs_physical_memory_bytes{job=~\"$job\",instance=~\"$instance\"}",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "总内存",
                "links": [],
                "description": "",
                "custom": {
                    "textMode": "value",
                    "colorMode": "value",
                    "calc": "lastNotNull",
                    "valueField": "Value",
                    "colSpan": 1,
                    "textSize": {}
                },
                "options": {
                    "standardOptions": {
                        "util": "bytesIEC"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "gauge",
                "id": "cab2ebba-6eea-44fe-8f4d-7c709fc46d52",
                "layout": {
                    "h": 4,
                    "w": 5,
                    "x": 7,
                    "y": 12,
                    "i": "cab2ebba-6eea-44fe-8f4d-7c709fc46d52",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "100 - (windows_os_physical_memory_free_bytes{job=~\"$job\",instance=~\"$instance\"} / windows_cs_physical_memory_bytes{job=~\"$job\",instance=~\"$instance\"})*100"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "内存使用率",
                "links": [],
                "custom": {
                    "textMode": "value",
                    "calc": "lastNotNull"
                },
                "options": {
                    "standardOptions": {
                        "util": "percent",
                        "decimals": 2
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#3FC453",
                                "value": null,
                                "type": "base"
                            },
                            {
                                "color": "#FF9919",
                                "value": 89
                            },
                            {
                                "color": "#FF656B",
                                "value": 90
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "458bd290-25b3-402d-8065-6e7c7053b923",
                "type": "timeseries",
                "name": "CPU使用率",
                "links": [],
                "layout": {
                    "h": 6,
                    "w": 12,
                    "x": 0,
                    "y": 16,
                    "i": "458bd290-25b3-402d-8065-6e7c7053b923",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "100 - avg(irate(windows_cpu_time_total{job=~\"$job\",instance=~\"$instance\",mode=\"idle\"}[5m]))*100",
                        "legend": "CPU使用率"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "e443438b-67d6-45e5-83f8-c1f333ef47b8",
                "type": "timeseries",
                "name": "内存详情",
                "links": [],
                "layout": {
                    "h": 6,
                    "w": 12,
                    "x": 12,
                    "y": 16,
                    "i": "e443438b-67d6-45e5-83f8-c1f333ef47b8",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "B",
                        "expr": "windows_cs_physical_memory_bytes{job=~\"$job\",instance=~\"$instance\"}",
                        "legend": "总物理内存"
                    },
                    {
                        "refId": "C",
                        "expr": "windows_os_physical_memory_free_bytes{job=~\"$job\",instance=~\"$instance\"}",
                        "legend": "剩余物理内存"
                    },
                    {
                        "refId": "A",
                        "expr": "windows_os_virtual_memory_bytes{job=~\"$job\",instance=~\"$instance\"}",
                        "legend": "Virtual memory"
                    },
                    {
                        "refId": "D",
                        "expr": "windows_os_virtual_memory_free_bytes{job=~\"$job\",instance=~\"$instance\"}",
                        "legend": "Free virtual memory"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "33de5933-0fe6-4e90-8bca-b8801cf94639",
                "type": "timeseries",
                "name": "服务状态",
                "links": [],
                "layout": {
                    "h": 7,
                    "w": 8,
                    "x": 0,
                    "y": 22,
                    "i": "33de5933-0fe6-4e90-8bca-b8801cf94639",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(windows_service_state{job=~\"$job\",instance=~\"$instance\"}) by (state)",
                        "legend": "{{state}}"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "30e5c753-7c76-426b-a230-6eca3399f549",
                "type": "timeseries",
                "name": "网络详情",
                "links": [],
                "layout": {
                    "h": 7,
                    "w": 8,
                    "x": 8,
                    "y": 22,
                    "i": "30e5c753-7c76-426b-a230-6eca3399f549",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "B",
                        "expr": "irate(windows_net_bytes_sent_total{job=~\"$job\",instance=~\"$instance\",nic!~'isatap.*|VPN.*'}[5m])*8>0\r",
                        "legend": "{{nic}}-Sent-上传"
                    },
                    {
                        "refId": "A",
                        "expr": "irate(windows_net_bytes_received_total{job=~\"$job\",instance=~\"$instance\",nic!~'isatap.*|VPN.*'}[5m])*8\n",
                        "legend": "{{nic}}-Received-下载"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "7eefe795-a060-4f73-b0dd-1e8c41817310",
                "type": "timeseries",
                "name": "网络使用率",
                "links": [],
                "layout": {
                    "h": 7,
                    "w": 8,
                    "x": 16,
                    "y": 22,
                    "i": "7eefe795-a060-4f73-b0dd-1e8c41817310",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "(irate(windows_net_bytes_total{job=~\"$job\",instance=~\"$instance\",nic!~'isatap.*|VPN.*'}[5m]) * 8 / windows_net_current_bandwidth{job=~\"$job\",instance=~\"$instance\",nic!~'isatap.*|VPN.*'}) * 100",
                        "legend": "{{nic}}"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "6dfe233c-39d3-4318-86c0-0caf2b87f287",
                "type": "timeseries",
                "name": "磁盘剩余空间",
                "links": [],
                "layout": {
                    "h": 6,
                    "w": 8,
                    "x": 0,
                    "y": 29,
                    "i": "6dfe233c-39d3-4318-86c0-0caf2b87f287",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "windows_logical_disk_free_bytes{job=~\"$job\",instance=~\"$instance\"}",
                        "legend": "剩余空间 {{volume}}"
                    },
                    {
                        "refId": "B",
                        "expr": "windows_logical_disk_size_bytes{job=~\"$job\",instance=~\"$instance\"}",
                        "legend": "总空间 {{volume}}"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "2ef8197b-bd54-4df3-abee-2db01713c2ba",
                "type": "timeseries",
                "name": "磁盘读写",
                "links": [],
                "layout": {
                    "h": 6,
                    "w": 8,
                    "x": 8,
                    "y": 29,
                    "i": "2ef8197b-bd54-4df3-abee-2db01713c2ba",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "irate(windows_logical_disk_read_bytes_total{job=~\"$job\",instance=~\"$instance\"}[5m])\r",
                        "legend": "read {{volume}}"
                    },
                    {
                        "refId": "B",
                        "expr": "irate(windows_logical_disk_write_bytes_total{job=~\"$job\",instance=~\"$instance\"}[5m])\r",
                        "legend": "write {{volume}}"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "db8082e9-4f0b-4ce7-8b60-f62e3024044a",
                "type": "timeseries",
                "name": "磁盘IO",
                "links": [],
                "layout": {
                    "h": 6,
                    "w": 8,
                    "x": 16,
                    "y": 29,
                    "i": "db8082e9-4f0b-4ce7-8b60-f62e3024044a",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "B",
                        "expr": "irate(windows_logical_disk_reads_total{job=~\"$job\",instance=~\"$instance\"}[5m])",
                        "legend": "read {{volume}}"
                    },
                    {
                        "refId": "C",
                        "expr": "irate(windows_logical_disk_writes_total{job=~\"$job\",instance=~\"$instance\"}[5m])",
                        "legend": "write {{volume}}"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "68b67c55-ec65-4edd-bd4c-9facb6f88d68",
                "type": "timeseries",
                "name": "Network discarded/error packets",
                "links": [],
                "layout": {
                    "h": 8,
                    "w": 8,
                    "x": 0,
                    "y": 35,
                    "i": "68b67c55-ec65-4edd-bd4c-9facb6f88d68",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "B",
                        "expr": "irate(windows_net_packets_outbound_discarded_total{job=~\"$job\",instance=~\"$instance\", nic!~'isatap.*|VPN.*'}[5m]) + irate(windows_net_packets_outbound_errors_total{job=~\"$job\",instance=~\"$instance\"}[5m])",
                        "legend": "outbound"
                    },
                    {
                        "refId": "A",
                        "expr": "irate(windows_net_packets_received_discarded_total{job=~\"$job\",instance=~\"$instance\", nic!~'isatap.*|VPN.*'}[5m]) + irate(windows_net_packets_received_errors_total{job=~\"$job\",instance=~\"$instance\"}[5m])",
                        "legend": "received"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "bd59d0ef-9c6c-4d87-801c-564c5c73ffa7",
                "type": "timeseries",
                "name": "system_threads",
                "links": [],
                "layout": {
                    "h": 8,
                    "w": 8,
                    "x": 8,
                    "y": 35,
                    "i": "bd59d0ef-9c6c-4d87-801c-564c5c73ffa7",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "windows_system_threads{job=~\"$job\",instance=~\"$instance\"}",
                        "legend": "system_threads"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "cb345bca-0f57-45eb-b987-ecd07406e62a",
                "type": "timeseries",
                "name": "System exception dispatches",
                "links": [],
                "layout": {
                    "h": 8,
                    "w": 8,
                    "x": 16,
                    "y": 35,
                    "i": "cb345bca-0f57-45eb-b987-ecd07406e62a",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "irate(windows_system_exception_dispatches_total{job=~\"$job\",instance=~\"$instance\"}[5m])",
                        "legend": "exceptions"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            }
        ],
        "datasourceValue": "ztcloud-dg"
    }
}