Skip to content

Commit

Permalink
Update host_table_view_demo.json
Browse files Browse the repository at this point in the history
  • Loading branch information
UlricQin authored Apr 8, 2024
1 parent 2ec2e64 commit 49c9e41
Showing 1 changed file with 81 additions and 73 deletions.
154 changes: 81 additions & 73 deletions integrations/Linux/dashboards/host_table_view_demo.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,7 @@
],
"panels": [
{
"custom": {
"calc": "lastNotNull",
"colorRange": [
"thresholds"
],
"detailUrl": "/dashboards/linux-host-by-categraf?ident=${__field.labels.ident}",
"textMode": "valueAndName"
},
"datasourceCate": "prometheus",
"datasourceValue": "${prom}",
"type": "hexbin",
"id": "21b8b3ab-26aa-47cb-b814-f310f2d143aa",
"layout": {
"h": 5,
Expand All @@ -36,18 +27,42 @@
"x": 0,
"y": 0
},
"maxPerRow": 4,
"version": "3.0.0",
"datasourceCate": "prometheus",
"datasourceValue": "${prom}",
"targets": [
{
"expr": "cpu_usage_active{cpu=\"cpu-total\", ident=~\"$ident\"}",
"instant": true,
"legend": "{{ident}}",
"refId": "A",
"maxDataPoints": 240
}
],
"transformations": [
{
"id": "organize",
"options": {}
}
],
"name": "CPU利用率",
"maxPerRow": 4,
"custom": {
"textMode": "valueAndName",
"calc": "lastNotNull",
"valueField": "Value",
"colorRange": [
"thresholds"
],
"detailUrl": "/dashboards-built-in/detail?__built-in-cate=Linux&__built-in-name=Linux%20Host%20by%20Categraf%20v2&ident=${__field.labels.ident}"
},
"options": {
"standardOptions": {
"util": "percent"
},
"thresholds": {
"steps": [
{
"color": "#ef3c3c",
"type": "",
"value": 95
"value": 95,
"type": ""
},
{
"color": "#ff656b",
Expand All @@ -65,14 +80,33 @@
"value": null
}
]
},
"standardOptions": {
"util": "percent"
}
}
},
{
"type": "hexbin",
"id": "86d4a502-21f7-4981-9b38-ed8e696b6f49",
"layout": {
"h": 5,
"i": "872b2040-c5b0-43fe-92c7-e37cb77edffc",
"isResizable": true,
"w": 12,
"x": 12,
"y": 0
},
"version": "3.0.0",
"datasourceCate": "prometheus",
"datasourceValue": "${prom}",
"targets": [
{
"expr": "cpu_usage_active{cpu=\"cpu-total\", ident=~\"$ident\"}",
"expr": "mem_used_percent{ident=~\"$ident\"}",
"instant": true,
"legend": "{{ident}}",
"refId": "A"
"refId": "A",
"maxDataPoints": 240
}
],
"transformations": [
Expand All @@ -81,41 +115,24 @@
"options": {}
}
],
"type": "hexbin",
"version": "3.0.0"
},
{
"name": "内存利用率",
"maxPerRow": 4,
"custom": {
"textMode": "valueAndName",
"calc": "lastNotNull",
"valueField": "Value",
"colorRange": [
"thresholds"
],
"detailUrl": "/dashboards/linux-host-by-categraf?ident=${__field.labels.ident}",
"textMode": "valueAndName"
},
"datasourceCate": "prometheus",
"datasourceValue": "${prom}",
"id": "86d4a502-21f7-4981-9b38-ed8e696b6f49",
"layout": {
"h": 5,
"i": "872b2040-c5b0-43fe-92c7-e37cb77edffc",
"isResizable": true,
"w": 12,
"x": 12,
"y": 0
"detailUrl": "/dashboards-built-in/detail?__built-in-cate=Linux&__built-in-name=Linux%20Host%20by%20Categraf%20v2&ident=${__field.labels.ident}"
},
"maxPerRow": 4,
"name": "内存利用率",
"options": {
"standardOptions": {
"util": "percent"
},
"thresholds": {
"steps": [
{
"color": "#ef3c3c",
"type": "",
"value": 95
"value": 95,
"type": ""
},
{
"color": "#ff656b",
Expand All @@ -133,24 +150,11 @@
"value": null
}
]
},
"standardOptions": {
"util": "percent"
}
},
"targets": [
{
"expr": "mem_used_percent{ident=~\"$ident\"}",
"instant": true,
"legend": "{{ident}}",
"refId": "A"
}
],
"transformations": [
{
"id": "organize",
"options": {}
}
],
"type": "hexbin",
"version": "3.0.0"
}
},
{
"type": "table",
Expand All @@ -170,22 +174,26 @@
{
"expr": "avg(cpu_usage_active{cpu=\"cpu-total\", ident=~\"$ident\"}) by (ident)",
"legend": "CPU使用率",
"refId": "A"
"refId": "A",
"maxDataPoints": 240
},
{
"expr": "avg(mem_used_percent{ident=~\"$ident\"}) by (ident)",
"legend": "内存使用率",
"refId": "B"
"refId": "B",
"maxDataPoints": 240
},
{
"expr": "avg(mem_total{ident=~\"$ident\"}) by (ident)",
"legend": "总内存",
"refId": "C"
"refId": "C",
"maxDataPoints": 240
},
{
"expr": "avg(disk_used_percent{ident=~\"$ident\",path=\"/\"}) by (ident)",
"legend": "根分区使用率",
"refId": "D"
"refId": "D",
"maxDataPoints": 240
}
],
"transformations": [
Expand All @@ -212,7 +220,7 @@
"links": [
{
"title": "详情",
"url": "/dashboards-built-in/detail?__built-in-cate=Linux&__built-in-name=Linux%20Host%20by%20Categraf&ident=${__field.labels.ident}&prom=1"
"url": "/dashboards-built-in/detail?__built-in-cate=Linux&__built-in-name=Linux%20Host%20by%20Categraf%20v2&ident=${__field.labels.ident}"
}
]
},
Expand All @@ -222,8 +230,8 @@
"overrides": [
{
"matcher": {
"value": "A",
"id": "byFrameRefID"
"id": "byFrameRefID",
"value": "A"
},
"properties": {
"standardOptions": {
Expand Down Expand Up @@ -262,8 +270,8 @@
},
{
"matcher": {
"value": "B",
"id": "byFrameRefID"
"id": "byFrameRefID",
"value": "B"
},
"properties": {
"standardOptions": {
Expand Down Expand Up @@ -303,8 +311,8 @@
},
{
"matcher": {
"value": "C",
"id": "byFrameRefID"
"id": "byFrameRefID",
"value": "C"
},
"properties": {
"standardOptions": {
Expand All @@ -317,8 +325,8 @@
},
{
"matcher": {
"value": "D",
"id": "byFrameRefID"
"id": "byFrameRefID",
"value": "D"
},
"properties": {
"standardOptions": {
Expand Down Expand Up @@ -371,4 +379,4 @@
],
"version": "3.0.0"
}
}
}

0 comments on commit 49c9e41

Please sign in to comment.