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 小时前
DNS主从服务器练习
linux·运维·服务器
zt1985q2 小时前
外网访问项目研发管理软件 codes
运维·服务器·windows·网络协议·tcp/ip
华纳云IDC服务商2 小时前
DNS记录更新后为什么还是访问不到新服务器?
运维·服务器
青靴2 小时前
用 Docker Compose 管理留言板多容器应用
运维·docker·容器
涛声依旧393163 小时前
安装部署自己的nginx
运维·服务器·nginx
wanhengidc3 小时前
物理服务器都有哪些作用?
运维·服务器·安全·智能手机·云计算
lys_8285 小时前
【linux】解决NAT模型下使用Xshell连接虚拟机显示22端口connection failed问题
linux·运维·服务器
Mxsoft6195 小时前
电力系统智能运维网络安全威胁检测与防御策略
运维·安全·web安全
序属秋秋秋6 小时前
《Linux系统编程之系统导论》【冯诺依曼体系结构 + 操作系统基本概述】
linux·运维·服务器·c语言·ubuntu·操作系统·冯诺依曼体系结构