-
-
Save azuse/a9ef1bf6c734d8fc0acee657b6b0cb69 to your computer and use it in GitHub Desktop.
windows exporter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"__inputs": [ | |
{ | |
"name": "DS_PROMETHEUS", | |
"label": "Prometheus", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "prometheus", | |
"pluginName": "Prometheus" | |
} | |
], | |
"__elements": {}, | |
"__requires": [ | |
{ | |
"type": "panel", | |
"id": "bargauge", | |
"name": "Bar gauge", | |
"version": "" | |
}, | |
{ | |
"type": "panel", | |
"id": "gauge", | |
"name": "Gauge", | |
"version": "" | |
}, | |
{ | |
"type": "grafana", | |
"id": "grafana", | |
"name": "Grafana", | |
"version": "9.2.1" | |
}, | |
{ | |
"type": "panel", | |
"id": "graph", | |
"name": "Graph (old)", | |
"version": "" | |
}, | |
{ | |
"type": "datasource", | |
"id": "prometheus", | |
"name": "Prometheus", | |
"version": "1.0.0" | |
}, | |
{ | |
"type": "panel", | |
"id": "stat", | |
"name": "Stat", | |
"version": "" | |
}, | |
{ | |
"type": "panel", | |
"id": "state-timeline", | |
"name": "State timeline", | |
"version": "" | |
}, | |
{ | |
"type": "panel", | |
"id": "timeseries", | |
"name": "Time series", | |
"version": "" | |
} | |
], | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "datasource", | |
"uid": "grafana" | |
}, | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", | |
"target": { | |
"limit": 100, | |
"matchAny": false, | |
"tags": [], | |
"type": "dashboard" | |
}, | |
"type": "dashboard" | |
} | |
] | |
}, | |
"description": "Windows Exporter Dashboard Created By Ismaeil Rasoulivand with love", | |
"editable": true, | |
"fiscalYearStartMonth": 0, | |
"gnetId": 14694, | |
"graphTooltip": 1, | |
"id": null, | |
"links": [], | |
"liveNow": false, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"decimals": 0, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "s" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 2, | |
"w": 1, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 33, | |
"interval": "", | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "9.2.1", | |
"repeat": "host", | |
"repeatDirection": "v", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "windows_os_time{instance=~\"$server\"} - on () windows_process_start_time{creating_process_id=\"0\",instance=\"$server\",process=\"Idle\",process_id=\"0\"}", | |
"format": "time_series", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "", | |
"refId": "A" | |
} | |
], | |
"title": "Uptime", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"decimals": 0, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 2, | |
"w": 2, | |
"x": 1, | |
"y": 0 | |
}, | |
"id": 35, | |
"interval": "", | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "none", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [], | |
"fields": "/^\\{__name__=\"windows_cs_logical_processors\", instance=\"localhost:9182\", job=\"“windows_exporter”\"\\}$/", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "9.2.1", | |
"repeat": "host", | |
"repeatDirection": "v", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "windows_cs_logical_processors{job=\"“windows_exporter”\"}", | |
"format": "time_series", | |
"instant": true, | |
"intervalFactor": 1, | |
"legendFormat": "__auto", | |
"range": false, | |
"refId": "A" | |
} | |
], | |
"title": "Processors", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"max": 100, | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "#299c46", | |
"value": null | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 80 | |
}, | |
{ | |
"color": "#d44a3a", | |
"value": 90 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 2, | |
"x": 3, | |
"y": 0 | |
}, | |
"id": 19, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showThresholdLabels": false, | |
"showThresholdMarkers": true | |
}, | |
"pluginVersion": "9.2.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "100 - (avg by (instance) (irate(windows_cpu_time_total{mode=\"idle\", instance=~\"$server\"}[1m])) * 100)", | |
"format": "time_series", | |
"hide": false, | |
"intervalFactor": 1, | |
"legendFormat": "", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "CPU Usage", | |
"type": "gauge" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"max": 100, | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "#299c46", | |
"value": null | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 80 | |
}, | |
{ | |
"color": "#d44a3a", | |
"value": 90 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 2, | |
"x": 5, | |
"y": 0 | |
}, | |
"id": 21, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showThresholdLabels": false, | |
"showThresholdMarkers": true | |
}, | |
"pluginVersion": "9.2.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "(windows_cs_physical_memory_bytes{instance=~\"$server\"} - windows_os_physical_memory_free_bytes{instance=~\"$server\"}) / windows_cs_physical_memory_bytes{instance=~\"$server\"} * 100", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Memory Usage", | |
"type": "gauge" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"max": 100, | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "#299c46", | |
"value": null | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 80 | |
}, | |
{ | |
"color": "#d44a3a", | |
"value": 90 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 2, | |
"x": 7, | |
"y": 0 | |
}, | |
"id": 23, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showThresholdLabels": false, | |
"showThresholdMarkers": true | |
}, | |
"pluginVersion": "9.2.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": "(sum(windows_logical_disk_size_bytes{volume!~\"Harddisk.*\", instance=\"$server\"}) by (instance) - sum(windows_logical_disk_free_bytes{volume!~\"Harddisk.*\", instance=\"$server\"}) by (instance)) / sum(windows_logical_disk_size_bytes{volume!~\"Harddisk.*\", instance=\"$server\"}) by (instance) * 100", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"refId": "A" | |
} | |
], | |
"title": "Disk Usage", | |
"type": "gauge" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"decimals": 0, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"max": 100000000, | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "#299c46", | |
"value": null | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 70000000 | |
}, | |
{ | |
"color": "#d44a3a", | |
"value": 90000000 | |
} | |
] | |
}, | |
"unit": "bps" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 2, | |
"x": 9, | |
"y": 0 | |
}, | |
"id": 17, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showThresholdLabels": false, | |
"showThresholdMarkers": true | |
}, | |
"pluginVersion": "9.2.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": "(sum(irate(windows_net_bytes_total{instance=\"$server\"}[1m])) > 1)* 8", | |
"format": "time_series", | |
"hide": false, | |
"intervalFactor": 1, | |
"legendFormat": "", | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": " sum(irate(windows_net_bytes_total{instance=~\"$server\",nic=\"Red_Hat_VirtIO_Ethernet_Adapter\"}[5m])) / sum(windows_net_current_bandwidth{instance=~\"$server\",nic=\"Red_Hat_VirtIO_Ethernet_Adapter\"}/8) * 100", | |
"format": "time_series", | |
"hide": true, | |
"intervalFactor": 1, | |
"refId": "B" | |
} | |
], | |
"title": "Bandwidth", | |
"type": "gauge" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"decimals": 0, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"max": 100000000, | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "#299c46", | |
"value": null | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 70000000 | |
}, | |
{ | |
"color": "#d44a3a", | |
"value": 90000000 | |
} | |
] | |
}, | |
"unit": "bps" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 2, | |
"x": 11, | |
"y": 0 | |
}, | |
"id": 39, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "9.2.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "rate(windows_memory_swap_page_operations_total{instance=\"$server\"}[$__rate_interval])", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{ instance }}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Total SWAP", | |
"type": "stat" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 4, | |
"w": 4, | |
"x": 13, | |
"y": 0 | |
}, | |
"hiddenSeries": false, | |
"id": 42, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"nullPointMode": "null", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "9.2.1", | |
"pointradius": 2, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "builder", | |
"expr": "windows_thermalzone_temperature_celsius{instance=\"$server\"}", | |
"hide": false, | |
"legendFormat": "{{name}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"thresholds": [], | |
"timeRegions": [], | |
"title": "Temperature(°C)", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"mode": "time", | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"$$hashKey": "object:209", | |
"format": "celsius", | |
"logBase": 1, | |
"show": true | |
}, | |
{ | |
"$$hashKey": "object:210", | |
"format": "short", | |
"logBase": 1, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false | |
} | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"decimals": 0, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"max": 100, | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "#299c46", | |
"value": null | |
}, | |
{ | |
"color": "dark-yellow", | |
"value": 80 | |
}, | |
{ | |
"color": "#d44a3a", | |
"value": 90 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 7, | |
"x": 17, | |
"y": 0 | |
}, | |
"id": 40, | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"displayMode": "basic", | |
"minVizHeight": 10, | |
"minVizWidth": 0, | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showUnfilled": true | |
}, | |
"pluginVersion": "9.2.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "100 - (windows_logical_disk_free_bytes{instance=~\"$server\"} / windows_logical_disk_size_bytes{instance=~\"$server\"})*100", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{volume}}", | |
"range": true, | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": "windows_logical_disk_free_bytes{instance=~\"$server\"}", | |
"hide": true, | |
"interval": "", | |
"legendFormat": "{{ instance }}", | |
"refId": "B" | |
} | |
], | |
"title": "Hard Disk Usage", | |
"type": "bargauge" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"decimals": 1, | |
"mappings": [ | |
{ | |
"options": { | |
"match": "null", | |
"result": { | |
"text": "N/A" | |
} | |
}, | |
"type": "special" | |
} | |
], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 2, | |
"w": 3, | |
"x": 0, | |
"y": 2 | |
}, | |
"id": 37, | |
"interval": "", | |
"links": [], | |
"maxDataPoints": 100, | |
"options": { | |
"colorMode": "none", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "9.2.1", | |
"repeat": "host", | |
"repeatDirection": "v", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "windows_cs_physical_memory_bytes{instance=~\"$server\"}", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "RAM", | |
"type": "stat" | |
}, | |
{ | |
"aliasColors": { | |
"idle": "dark-green", | |
"sum": "#5f4c8b", | |
"user": "dark-red" | |
}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 2, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 8, | |
"w": 8, | |
"x": 0, | |
"y": 4 | |
}, | |
"hiddenSeries": false, | |
"hideTimeOverride": false, | |
"id": 4, | |
"legend": { | |
"alignAsTable": true, | |
"avg": false, | |
"current": true, | |
"max": true, | |
"min": false, | |
"rightSide": true, | |
"show": true, | |
"total": false, | |
"values": true | |
}, | |
"lines": true, | |
"linewidth": 2, | |
"links": [], | |
"nullPointMode": "null", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "9.2.1", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"application": { | |
"filter": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "sum by (mode) (rate(windows_cpu_time_total{instance=~\"$server\"}[5m]))", | |
"format": "time_series", | |
"functions": [], | |
"group": { | |
"filter": "" | |
}, | |
"hide": false, | |
"host": { | |
"filter": "" | |
}, | |
"intervalFactor": 1, | |
"item": { | |
"filter": "" | |
}, | |
"legendFormat": "{{mode}}", | |
"metric": "mysql_global_status_questions", | |
"mode": 0, | |
"options": { | |
"showDisabledItems": false | |
}, | |
"range": true, | |
"refId": "A", | |
"step": 20 | |
}, | |
{ | |
"application": { | |
"filter": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "sum(rate(windows_cpu_time_total{instance=~\"$server\"}[5m]))", | |
"format": "time_series", | |
"functions": [], | |
"group": { | |
"filter": "" | |
}, | |
"hide": false, | |
"host": { | |
"filter": "" | |
}, | |
"intervalFactor": 1, | |
"item": { | |
"filter": "" | |
}, | |
"legendFormat": "sum", | |
"metric": "mysql_global_status_questions", | |
"mode": 0, | |
"options": { | |
"showDisabledItems": false | |
}, | |
"range": true, | |
"refId": "B", | |
"step": 20 | |
} | |
], | |
"thresholds": [], | |
"timeRegions": [], | |
"title": "CPU Load", | |
"tooltip": { | |
"shared": false, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"mode": "time", | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"$$hashKey": "object:100", | |
"format": "short", | |
"logBase": 1, | |
"show": true | |
}, | |
{ | |
"$$hashKey": "object:101", | |
"format": "short", | |
"logBase": 1, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"decimals": 1, | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 8, | |
"w": 8, | |
"x": 8, | |
"y": 4 | |
}, | |
"hiddenSeries": false, | |
"id": 25, | |
"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": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"options": { | |
"alertThreshold": true | |
}, | |
"paceLength": 10, | |
"percentage": false, | |
"pluginVersion": "9.2.1", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": true, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": "(avg without (cpu) (sum(irate(windows_cpu_time_total{instance=\"$server\",mode!=\"idle\"}[5m])) by (mode)) / 16)* 100", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "{{mode}}", | |
"refId": "A" | |
} | |
], | |
"thresholds": [], | |
"timeRegions": [], | |
"title": "CPU Usage", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"mode": "time", | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "percent", | |
"logBase": 1, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"logBase": 1, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false | |
} | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 20, | |
"gradientMode": "opacity", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"lineInterpolation": "linear", | |
"lineWidth": 3, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 8, | |
"x": 16, | |
"y": 4 | |
}, | |
"hideTimeOverride": false, | |
"id": 14, | |
"links": [], | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "single", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "9.2.1", | |
"targets": [ | |
{ | |
"application": { | |
"filter": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": "windows_cs_physical_memory_bytes{instance=~\"$server\"}", | |
"format": "time_series", | |
"functions": [], | |
"group": { | |
"filter": "" | |
}, | |
"hide": false, | |
"host": { | |
"filter": "" | |
}, | |
"intervalFactor": 1, | |
"item": { | |
"filter": "" | |
}, | |
"legendFormat": "Physical memory", | |
"metric": "mysql_global_status_questions", | |
"mode": 0, | |
"options": { | |
"showDisabledItems": false | |
}, | |
"refId": "B", | |
"step": 5 | |
}, | |
{ | |
"application": { | |
"filter": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": "windows_os_physical_memory_free_bytes{instance=~\"$server\"}", | |
"format": "time_series", | |
"functions": [], | |
"group": { | |
"filter": "" | |
}, | |
"hide": false, | |
"host": { | |
"filter": "" | |
}, | |
"intervalFactor": 1, | |
"item": { | |
"filter": "" | |
}, | |
"legendFormat": "Free physical memory", | |
"metric": "mysql_global_status_questions", | |
"mode": 0, | |
"options": { | |
"showDisabledItems": false | |
}, | |
"refId": "C", | |
"step": 5 | |
}, | |
{ | |
"application": { | |
"filter": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": "windows_os_virtual_memory_bytes{instance=~\"$server\"}", | |
"format": "time_series", | |
"functions": [], | |
"group": { | |
"filter": "" | |
}, | |
"hide": false, | |
"host": { | |
"filter": "" | |
}, | |
"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": "${DS_PROMETHEUS}" | |
}, | |
"expr": "windows_os_virtual_memory_free_bytes{instance=~\"$server\"}", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "Free virtual memory", | |
"refId": "D" | |
} | |
], | |
"title": "Memory Details", | |
"type": "timeseries" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 8, | |
"w": 8, | |
"x": 0, | |
"y": 12 | |
}, | |
"hiddenSeries": false, | |
"hideTimeOverride": false, | |
"id": 11, | |
"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": "9.2.1", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"application": { | |
"filter": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": "rate(windows_net_bytes_sent_total{instance=~\"$server\"}[$interval]) >0", | |
"format": "time_series", | |
"functions": [], | |
"group": { | |
"filter": "" | |
}, | |
"hide": false, | |
"host": { | |
"filter": "" | |
}, | |
"interval": "", | |
"intervalFactor": 1, | |
"item": { | |
"filter": "" | |
}, | |
"legendFormat": "Sent- Upload", | |
"metric": "mysql_global_status_questions", | |
"mode": 0, | |
"options": { | |
"showDisabledItems": false | |
}, | |
"refId": "B", | |
"step": 10 | |
}, | |
{ | |
"application": { | |
"filter": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": "- rate(windows_net_bytes_received_total{instance=~\"$server\"}[$interval]) <0", | |
"format": "time_series", | |
"functions": [], | |
"group": { | |
"filter": "" | |
}, | |
"hide": false, | |
"host": { | |
"filter": "" | |
}, | |
"interval": "", | |
"intervalFactor": 1, | |
"item": { | |
"filter": "" | |
}, | |
"legendFormat": "Received- Download", | |
"metric": "mysql_global_status_questions", | |
"mode": 0, | |
"options": { | |
"showDisabledItems": false | |
}, | |
"refId": "A", | |
"step": 10 | |
} | |
], | |
"thresholds": [], | |
"timeRegions": [], | |
"title": "Bandwidth", | |
"tooltip": { | |
"shared": true, | |
"sort": 2, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"mode": "time", | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "Bps", | |
"logBase": 1, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"logBase": 1, | |
"show": false | |
} | |
], | |
"yaxis": { | |
"align": false | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 2, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 8, | |
"w": 8, | |
"x": 8, | |
"y": 12 | |
}, | |
"hiddenSeries": false, | |
"hideTimeOverride": false, | |
"id": 8, | |
"legend": { | |
"alignAsTable": true, | |
"avg": false, | |
"current": true, | |
"max": true, | |
"min": false, | |
"rightSide": true, | |
"show": true, | |
"total": false, | |
"values": true | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null as zero", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "9.2.1", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"application": { | |
"filter": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": "irate(windows_logical_disk_write_bytes_total{instance=~\"$server\", volume !~\"HarddiskVolume.+\"}[60s])", | |
"format": "time_series", | |
"functions": [], | |
"group": { | |
"filter": "" | |
}, | |
"hide": false, | |
"host": { | |
"filter": "" | |
}, | |
"intervalFactor": 1, | |
"item": { | |
"filter": "" | |
}, | |
"legendFormat": "Write {{volume}}", | |
"metric": "mysql_global_status_questions", | |
"mode": 0, | |
"options": { | |
"showDisabledItems": false | |
}, | |
"refId": "A", | |
"step": 20 | |
}, | |
{ | |
"application": { | |
"filter": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": "- irate(windows_logical_disk_read_bytes_total{instance=~\"$server\", volume !~\"HarddiskVolume.+\"}[60s])", | |
"format": "time_series", | |
"functions": [], | |
"group": { | |
"filter": "" | |
}, | |
"hide": false, | |
"host": { | |
"filter": "" | |
}, | |
"intervalFactor": 1, | |
"item": { | |
"filter": "" | |
}, | |
"legendFormat": "Read {{volume}}", | |
"metric": "mysql_global_status_questions", | |
"mode": 0, | |
"options": { | |
"showDisabledItems": false | |
}, | |
"refId": "B", | |
"step": 20 | |
} | |
], | |
"thresholds": [], | |
"timeRegions": [], | |
"title": "Disk R/W", | |
"tooltip": { | |
"shared": false, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"mode": "time", | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "bytes", | |
"logBase": 1, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"logBase": 1, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 8, | |
"w": 8, | |
"x": 16, | |
"y": 12 | |
}, | |
"hiddenSeries": false, | |
"hideTimeOverride": false, | |
"id": 9, | |
"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": "9.2.1", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"application": { | |
"filter": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": "rate(windows_logical_disk_split_ios_total{instance=~\"$server\", volume !~\"HarddiskVolume.+\"}[60s])", | |
"format": "time_series", | |
"functions": [], | |
"group": { | |
"filter": "" | |
}, | |
"hide": false, | |
"host": { | |
"filter": "" | |
}, | |
"intervalFactor": 1, | |
"item": { | |
"filter": "" | |
}, | |
"legendFormat": "i/o {{volume}}", | |
"metric": "mysql_global_status_questions", | |
"mode": 0, | |
"options": { | |
"showDisabledItems": false | |
}, | |
"refId": "A", | |
"step": 20 | |
} | |
], | |
"thresholds": [], | |
"timeRegions": [], | |
"title": "Hard disk i/o ops total", | |
"tooltip": { | |
"shared": false, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"mode": "time", | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "short", | |
"logBase": 1, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"logBase": 1, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false | |
} | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"max": 536870912000, | |
"min": 1, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "red", | |
"value": null | |
}, | |
{ | |
"color": "#EAB839", | |
"value": 2 | |
}, | |
{ | |
"color": "#6ED0E0", | |
"value": 5 | |
}, | |
{ | |
"color": "purple", | |
"value": 15 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 8, | |
"x": 0, | |
"y": 20 | |
}, | |
"hideTimeOverride": false, | |
"id": 15, | |
"links": [], | |
"options": { | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"mean" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showThresholdLabels": false, | |
"showThresholdMarkers": true | |
}, | |
"pluginVersion": "9.2.1", | |
"targets": [ | |
{ | |
"application": { | |
"filter": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "windows_logical_disk_free_bytes{instance=~\"$server\", volume !~\"HarddiskVolume.+\"}", | |
"format": "time_series", | |
"functions": [], | |
"group": { | |
"filter": "" | |
}, | |
"hide": false, | |
"host": { | |
"filter": "" | |
}, | |
"instant": false, | |
"intervalFactor": 1, | |
"item": { | |
"filter": "" | |
}, | |
"legendFormat": "free {{volume}}", | |
"metric": "mysql_global_status_questions", | |
"mode": 0, | |
"options": { | |
"showDisabledItems": false | |
}, | |
"range": true, | |
"refId": "A", | |
"step": 20 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "windows_logical_disk_size_bytes{instance=~\"$server\", volume !~\"HarddiskVolume.+\"}", | |
"hide": true, | |
"legendFormat": "__auto", | |
"range": true, | |
"refId": "B" | |
} | |
], | |
"title": "Partitions Free Space", | |
"transformations": [ | |
{ | |
"id": "configFromData", | |
"options": { | |
"applyTo": { | |
"id": "byType", | |
"options": "number" | |
}, | |
"configRefId": "B", | |
"mappings": [ | |
{ | |
"fieldName": "{__name__=\"windows_logical_disk_size_bytes\", instance=\"localhost:9182\", job=\"“windows_exporter”\", volume=\"C:\"}", | |
"handlerKey": "field.value", | |
"reducerId": "lastNotNull" | |
} | |
] | |
} | |
} | |
], | |
"type": "gauge" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": true, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"decimals": 2, | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 8, | |
"w": 8, | |
"x": 8, | |
"y": 20 | |
}, | |
"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": "9.2.1", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": true, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": "sum(increase(windows_net_bytes_received_total{instance=\"$server\"}[1h])) by (instance)", | |
"format": "time_series", | |
"interval": "1h", | |
"intervalFactor": 1, | |
"legendFormat": "Received-Download", | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": "sum(increase(windows_net_bytes_sent_total{instance=\"$server\"}[1h])) by (instance)", | |
"format": "time_series", | |
"interval": "1h", | |
"intervalFactor": 1, | |
"legendFormat": "Sent-Upload", | |
"refId": "B" | |
} | |
], | |
"thresholds": [], | |
"timeRegions": [], | |
"title": "Flow Per Hour", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"mode": "time", | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "bytes", | |
"logBase": 1, | |
"show": true | |
}, | |
{ | |
"format": "bytes", | |
"logBase": 1, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false | |
} | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 8, | |
"x": 16, | |
"y": 20 | |
}, | |
"hideTimeOverride": false, | |
"id": 43, | |
"links": [], | |
"options": { | |
"legend": { | |
"calcs": [ | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true, | |
"sortBy": "Max", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"mode": "single", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "9.2.1", | |
"targets": [ | |
{ | |
"application": { | |
"filter": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "100 * sum by(instance, process) (rate(windows_process_cpu_time_total{process!=\"Idle\"}[5m]))\r\n / on(instance) group_left sum by(instance) (rate(windows_cpu_time_total{}[5m]))", | |
"format": "time_series", | |
"functions": [], | |
"group": { | |
"filter": "" | |
}, | |
"hide": false, | |
"host": { | |
"filter": "" | |
}, | |
"interval": "", | |
"intervalFactor": 1, | |
"item": { | |
"filter": "" | |
}, | |
"legendFormat": "{{process}}", | |
"metric": "mysql_global_status_questions", | |
"mode": 0, | |
"options": { | |
"showDisabledItems": false | |
}, | |
"range": true, | |
"refId": "A", | |
"step": 20 | |
} | |
], | |
"title": "Process CPU Usage", | |
"transformations": [ | |
{ | |
"disabled": true, | |
"id": "limit", | |
"options": { | |
"limitField": 500 | |
} | |
} | |
], | |
"type": "timeseries" | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 8, | |
"w": 8, | |
"x": 0, | |
"y": 28 | |
}, | |
"hiddenSeries": false, | |
"hideTimeOverride": false, | |
"id": 10, | |
"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": "9.2.1", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"application": { | |
"filter": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": "irate(windows_net_packets_outbound_discarded_total{instance=~\"$server\"}[$interval]) + irate(windows_net_packets_outbound_errors_total{instance=~\"$server\"}[$interval])", | |
"format": "time_series", | |
"functions": [], | |
"group": { | |
"filter": "" | |
}, | |
"hide": false, | |
"host": { | |
"filter": "" | |
}, | |
"interval": "", | |
"intervalFactor": 1, | |
"item": { | |
"filter": "" | |
}, | |
"legendFormat": "Sent-Upload", | |
"metric": "mysql_global_status_questions", | |
"mode": 0, | |
"options": { | |
"showDisabledItems": false | |
}, | |
"refId": "B", | |
"step": 15 | |
}, | |
{ | |
"application": { | |
"filter": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": "irate(windows_net_packets_outbound_discarded_total{instance=~\"$server\"}[$interval]) + irate(windows_net_packets_outbound_errors_total{instance=~\"$server\"}[$interval])", | |
"format": "time_series", | |
"functions": [], | |
"group": { | |
"filter": "" | |
}, | |
"hide": false, | |
"host": { | |
"filter": "" | |
}, | |
"interval": "", | |
"intervalFactor": 1, | |
"item": { | |
"filter": "" | |
}, | |
"legendFormat": "Received-Download", | |
"metric": "mysql_global_status_questions", | |
"mode": 0, | |
"options": { | |
"showDisabledItems": false | |
}, | |
"refId": "A", | |
"step": 15 | |
} | |
], | |
"thresholds": [], | |
"timeRegions": [], | |
"title": "Network discarded/error packets", | |
"tooltip": { | |
"shared": false, | |
"sort": 2, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"mode": "time", | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "pps", | |
"logBase": 1, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"logBase": 1, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false | |
} | |
}, | |
{ | |
"aliasColors": { | |
"Received mysqld-exporter:9104": "#0A50A1", | |
"stopped": "#2F575E" | |
}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 10, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 8, | |
"w": 8, | |
"x": 8, | |
"y": 28 | |
}, | |
"hiddenSeries": false, | |
"id": 7, | |
"legend": { | |
"alignAsTable": true, | |
"avg": false, | |
"current": true, | |
"max": false, | |
"min": false, | |
"rightSide": true, | |
"show": true, | |
"sort": "current", | |
"sortDesc": true, | |
"total": false, | |
"values": true | |
}, | |
"lines": true, | |
"linewidth": 0, | |
"links": [], | |
"nullPointMode": "null as zero", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "9.2.1", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": true, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"application": { | |
"filter": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"expr": "sum(windows_service_state{instance=~\"$server\"}) by (state)", | |
"format": "time_series", | |
"functions": [], | |
"group": { | |
"filter": "" | |
}, | |
"host": { | |
"filter": "" | |
}, | |
"intervalFactor": 1, | |
"item": { | |
"filter": "" | |
}, | |
"legendFormat": "{{state}}", | |
"mode": 0, | |
"options": { | |
"showDisabledItems": false | |
}, | |
"refId": "A", | |
"step": 5 | |
} | |
], | |
"thresholds": [], | |
"timeRegions": [], | |
"title": "Services by state", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"mode": "time", | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "short", | |
"logBase": 1, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"logBase": 1, | |
"show": false | |
} | |
], | |
"yaxis": { | |
"align": false | |
} | |
}, | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"links": [] | |
}, | |
"overrides": [] | |
}, | |
"fill": 1, | |
"fillGradient": 0, | |
"gridPos": { | |
"h": 8, | |
"w": 8, | |
"x": 16, | |
"y": 28 | |
}, | |
"hiddenSeries": false, | |
"hideTimeOverride": false, | |
"id": 12, | |
"legend": { | |
"alignAsTable": true, | |
"avg": false, | |
"current": true, | |
"max": true, | |
"min": false, | |
"rightSide": true, | |
"show": true, | |
"sort": "current", | |
"sortDesc": true, | |
"total": false, | |
"values": true | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null as zero", | |
"options": { | |
"alertThreshold": true | |
}, | |
"percentage": false, | |
"pluginVersion": "9.2.1", | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"application": { | |
"filter": "" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "windows_process_threads{instance=~\"$server\",process=~\"$Process\"}", | |
"format": "time_series", | |
"functions": [], | |
"group": { | |
"filter": "" | |
}, | |
"hide": false, | |
"host": { | |
"filter": "" | |
}, | |
"interval": "", | |
"intervalFactor": 1, | |
"item": { | |
"filter": "" | |
}, | |
"legendFormat": "{{process}} threads", | |
"metric": "mysql_global_status_questions", | |
"mode": 0, | |
"options": { | |
"showDisabledItems": false | |
}, | |
"range": true, | |
"refId": "A", | |
"step": 20 | |
} | |
], | |
"thresholds": [], | |
"timeRegions": [], | |
"title": "system_threads", | |
"tooltip": { | |
"shared": true, | |
"sort": 2, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"mode": "time", | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"$$hashKey": "object:111", | |
"format": "short", | |
"logBase": 1, | |
"show": true | |
}, | |
{ | |
"$$hashKey": "object:112", | |
"format": "short", | |
"logBase": 1, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false | |
} | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "continuous-BlYlRd" | |
}, | |
"custom": { | |
"fillOpacity": 98, | |
"lineWidth": 0, | |
"spanNulls": false | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 13, | |
"w": 15, | |
"x": 0, | |
"y": 36 | |
}, | |
"hideTimeOverride": false, | |
"id": 46, | |
"links": [], | |
"options": { | |
"alignValue": "left", | |
"legend": { | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"mergeValues": true, | |
"rowHeight": 0.9, | |
"showValue": "auto", | |
"tooltip": { | |
"mode": "single", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "9.2.1", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "windows_logical_disk_free_bytes{instance=\"$server\", volume !~\"HarddiskVolume.+\"} offset 1h - windows_logical_disk_free_bytes{instance=\"$server\", volume !~\"HarddiskVolume.+\"}", | |
"format": "time_series", | |
"interval": "1h", | |
"intervalFactor": 1, | |
"legendFormat": "{{volume}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Disk Usage Per Hour", | |
"transformations": [], | |
"type": "state-timeline" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"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": { | |
"log": 2, | |
"type": "log" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"decimals": 3, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 13, | |
"w": 9, | |
"x": 15, | |
"y": 36 | |
}, | |
"id": 45, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "single", | |
"sort": "none" | |
} | |
}, | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"editorMode": "code", | |
"expr": "windows_logical_disk_free_bytes{instance=~\"$server\", volume !~\"HarddiskVolume.+\"}", | |
"legendFormat": "{{volume}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "disk space", | |
"type": "timeseries" | |
} | |
], | |
"refresh": "10s", | |
"schemaVersion": 37, | |
"style": "dark", | |
"tags": [], | |
"templating": { | |
"list": [ | |
{ | |
"auto": false, | |
"auto_count": 500, | |
"auto_min": "30s", | |
"current": { | |
"selected": false, | |
"text": "60s", | |
"value": "60s" | |
}, | |
"hide": 2, | |
"label": "Interval", | |
"name": "interval", | |
"options": [ | |
{ | |
"selected": true, | |
"text": "60s", | |
"value": "60s" | |
} | |
], | |
"query": "60s", | |
"refresh": 2, | |
"skipUrlSync": false, | |
"type": "interval" | |
}, | |
{ | |
"current": {}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"definition": "label_values(windows_cpu_time_total, instance)", | |
"hide": 0, | |
"includeAll": false, | |
"label": "Server", | |
"multi": false, | |
"name": "server", | |
"options": [], | |
"query": { | |
"query": "label_values(windows_cpu_time_total, instance)", | |
"refId": "Prometheus-server-Variable-Query" | |
}, | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"tagValuesQuery": "", | |
"tagsQuery": "", | |
"type": "query", | |
"useTags": false | |
}, | |
{ | |
"current": {}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "${DS_PROMETHEUS}" | |
}, | |
"definition": "windows_process_threads", | |
"hide": 0, | |
"includeAll": true, | |
"multi": false, | |
"name": "Process", | |
"options": [], | |
"query": { | |
"query": "windows_process_threads", | |
"refId": "StandardVariableQuery" | |
}, | |
"refresh": 1, | |
"regex": "/.*process=\\\"(?<value>.*?)\"\\.*/", | |
"skipUrlSync": false, | |
"sort": 1, | |
"type": "query" | |
} | |
] | |
}, | |
"time": { | |
"from": "now-12h", | |
"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": "browser", | |
"title": "Windows Exporter Dashboard", | |
"uid": "IV0hu1m7z", | |
"version": 27, | |
"weekStart": "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment