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

}

}

相关推荐
C_心欲无痕33 分钟前
Dockerfile:构建 Docker 镜像
运维·docker·容器
zz_nj1 小时前
工作的环境
linux·运维·服务器
C_心欲无痕2 小时前
nginx - 实现域名跳转的几种方式
运维·前端·nginx
suijishengchengde2 小时前
****LINUX时间同步配置*****
linux·运维
幻云20102 小时前
AI自动化编排:从入门到精通(基于Dify构建AI智能系统)
运维·人工智能·自动化
qiuqyue2 小时前
基于虹软Linux Pro SDK的多路RTSP流并发接入、解码与帧级处理实践
linux·运维·网络
爱跑马的程序员3 小时前
Linux 如何查看文件夹的大小(du、df、ls、find)
linux·运维·ubuntu
代码AI弗森5 小时前
n8n 专题:从“自动化脚本”到“可视化工作流引擎”(自建、节点、Webhook、生产部署)
运维·自动化
oMcLin6 小时前
如何在 Ubuntu 22.04 LTS 上部署并优化 Magento 电商平台,提升高并发请求的响应速度与稳定性?
linux·运维·ubuntu
小李独爱秋6 小时前
计算机网络经典问题透视:TLS协议工作过程全景解析
运维·服务器·开发语言·网络协议·计算机网络·php