json啊啊啊啊啊啊啊啊啊

{

"dashboard": {

"title": "Windows磁盘监控",

"panels": [

{

"id": 2,

"title": "磁盘使用情况",

"type": "table",

"datasource": "${DS_PROMETHEUS}",

"transformations": [

{

"id": "organize",

"options": {

"indexByName": {},

"excludeByName": {

"Time": true,

"name": true,

"instance": true,

"job": true

},

"renameByName": {

"Value": "可用空间",

"volume": "磁盘"

}

}

},

{

"id": "calculateField",

"options": {

"alias": "使用率%",

"binaryOptions": {

"left": "windows_logical_disk_size_bytes",

"operator": "-",

"reducer": "sum",

"right": "可用空间"

},

"mode": "binary",

"reduceOptions": {

"reducer": "sum"

}

}

},

{

"id": "calculateField",

"options": {

"alias": "使用率%",

"binaryOptions": {

"left": "使用率%",

"operator": "/",

"reducer": "sum",

"right": "windows_logical_disk_size_bytes"

},

"mode": "binary",

"reduceOptions": {

"reducer": "sum"

}

}

},

{

"id": "calculateField",

"options": {

"alias": "使用率%",

"binaryOptions": {

"left": "使用率%",

"operator": "*",

"reducer": "sum",

"right": "100"

},

"mode": "binary",

"reduceOptions": {

"reducer": "sum"

}

}

},

{

"id": "calculateField",

"options": {

"alias": "已用空间",

"binaryOptions": {

"left": "windows_logical_disk_size_bytes",

"operator": "-",

"reducer": "sum",

"right": "可用空间"

},

"mode": "binary",

"reduceOptions": {

"reducer": "sum"

}

}

},

{

"id": "calculateField",

"options": {

"alias": "总空间",

"binaryOptions": {

"left": "windows_logical_disk_size_bytes",

"operator": "*",

"reducer": "sum",

"right": "1"

},

"mode": "binary",

"reduceOptions": {

"reducer": "sum"

}

}

},

{

"id": "organize",

"options": {

"indexByName": {

"磁盘": 0,

"使用率%": 1,

"可用空间": 2,

"已用空间": 3,

"总空间": 4

},

"excludeByName": {

"Time": true,

"name": true,

"instance": true,

"job": true,

"windows_logical_disk_size_bytes": true

},

"renameByName": {}

}

}

],

"fieldConfig": {

"defaults": {

"custom": {

"align": "center",

"displayMode": "auto",

"inspect": false

},

"decimals": 2,

"color": {

"mode": "thresholds"

},

"thresholds": {

"mode": "absolute",

"steps": [

{

"color": "green",

"value": null

},

{

"color": "red",

"value": 80

}

]

},

"mappings": [],

"unit": "bytes"

},

"overrides": [

{

"matcher": {

"id": "byName",

"options": "使用率%"

},

"properties": [

{

"id": "unit",

"value": "percent"

},

{

"id": "decimals",

"value": 1

},

{

"id": "min",

"value": 0

},

{

"id": "max",

"value": 100

},

{

"id": "thresholds",

"value": {

"mode": "absolute",

"steps": [

{

"color": "green",

"value": null

},

{

"color": "#EAB839",

"value": 80

},

{

"color": "red",

"value": 90

}

]

}

}

]

},

{

"matcher": {

"id": "byName",

"options": "磁盘"

},

"properties": [

{

"id": "unit",

"value": "short"

},

{

"id": "decimals",

"value": 0

}

]

}

]

},

"options": {

"showHeader": true,

"footer": {

"show": false,

"reducer": [

"sum"

],

"countRows": false,

"fields": "",

"enablePagination": false

},

"sortBy": [

{

"desc": false,

"displayName": "磁盘"

}

]

},

"targets": [

{

"expr": "windows_logical_disk_free_bytes{volume=~\"C:|D:.*\"}",

"format": "table",

"instant": true,

"interval": "",

"legendFormat": "",

"refId": "A"

},

{

"expr": "windows_logical_disk_size_bytes{volume=~\"C:|D:.*\"}",

"format": "table",

"instant": true,

"interval": "",

"legendFormat": "",

"refId": "B"

}

],

"gridPos": {

"h": 12,

"w": 24,

"x": 0,

"y": 0

}

}

],

"time": {

"from": "now-6h",

"to": "now"

},

"timezone": "browser",

"tags": [],

"version": 1

}

}

相关推荐
何以不说话20 小时前
堡垒机jumpserver
运维·sql
开开心心就好20 小时前
开源免费高速看图工具,支持漫画大图秒开
linux·运维·服务器·安全·ruby·symfony·1024程序员节
小Pawn爷20 小时前
13.virtualbox安装ubuntu
linux·运维·ubuntu
乾元21 小时前
暗网情报:自动化采集与情感分析在威胁狩猎中的应用
运维·网络·人工智能·深度学习·安全·架构·自动化
袁煦丞 cpolar内网穿透实验室21 小时前
Blackbox Exporter告别用户投诉!从外部揪出服务断连问题: cpolar 内网穿透实验室第 701 个成功挑战
运维·服务器·远程工作·内网穿透·cpolar
砚上有墨21 小时前
问题记录:云平台计算节点内存故障,热迁移失败导致系统重启。
linux·运维·云计算
bloglin9999921 小时前
ubuntu系使用root用户登录显示密码错误
linux·运维·ubuntu
ccino .21 小时前
【SSRF漏洞及自动化扫描插件】
运维·自动化
70asunflower21 小时前
[特殊字符] Flameshot 完全指南:Ubuntu 下的终极截图工具
linux·运维·ubuntu
千航@abc21 小时前
Win10/Win11 DCOM服务器进程启动器 CPU 占用过高解决方法
运维·安全·病毒·window10·window11·dcom进程·系统进程资源占用高