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

}

}

相关推荐
字节数据平台2 小时前
刚刚,火山引擎多模态数据湖解决方案发布大数据运维Agent
大数据·运维·火山引擎
原神启动13 小时前
Docker 场景化作业:生产环境容器操作实训
运维·docker·容器
云老大TG:@yunlaoda3603 小时前
如何通过华为云国际站代理商CSBS进行备份策略设置?
运维·数据库·华为云
zly35004 小时前
linux查看正在运行的nginx的当前工作目录(webroot)
linux·运维·nginx
QT 小鲜肉4 小时前
【Linux命令大全】001.文件管理之file命令(实操篇)
linux·运维·前端·网络·chrome·笔记
呼啦啦呼啦啦啦啦啦啦4 小时前
docker制作镜像的两种方式(保姆级教学)
运维·docker·容器
问道飞鱼4 小时前
【Linux知识】Linux 虚拟机磁盘扩缩容操作指南(按文件系统分类)
linux·运维·服务器·磁盘扩缩容
风雨飘逸5 小时前
【shell&bash进阶系列】(二十一)向脚本传递参数(shift和getopts)
linux·运维·服务器·经验分享·bash
zly35005 小时前
删除文件(rm 命令 删除目录)
linux·运维·服务器
曹天骄5 小时前
OSS 传输加速 与 CDN 的区别
运维·阿里云·https