Skip to content

Commit

Permalink
feat: change manager and client (#24)
Browse files Browse the repository at this point in the history
Signed-off-by: zhaoxinxin <[email protected]>
  • Loading branch information
Liam-Zhao authored Oct 15, 2024
1 parent d014d4f commit 6892755
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 55 deletions.
53 changes: 19 additions & 34 deletions grafana/dashboards/client.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"fiscalYearStartMonth": 0,
"gnetId": 21053,
"graphTooltip": 0,
"id": 28,
"id": 33,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -3520,8 +3520,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -3650,8 +3649,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -3780,8 +3778,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -3910,8 +3907,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -4040,8 +4036,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -4170,8 +4165,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -4300,8 +4294,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -4430,8 +4423,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -4583,7 +4575,7 @@
"uid": "prometheus"
},
"editorMode": "code",
"expr": "sum(dragonfly_client_disk_usage_space_total{namespace=~\"$namespace\"})/\nsum(dragonfly_client_disk_space_total{namespace=~\"$namespace\"})",
"expr": "sum(dragonfly_client_disk_usage_space_total{namespace=~\"$namespace\",container=\"client\"})/\nsum(dragonfly_client_disk_space_total{namespace=~\"$namespace\",container=\"client\"})",
"instant": false,
"legendFormat": "Used Space",
"range": true,
Expand All @@ -4595,7 +4587,7 @@
"uid": "prometheus"
},
"editorMode": "code",
"expr": "(sum(dragonfly_client_disk_space_total{namespace=~\"$namespace\"}) -\nsum(dragonfly_client_disk_usage_space_total{namespace=~\"$namespace\"})) / \nsum(dragonfly_client_disk_space_total{namespace=~\"$namespace\"})",
"expr": "(sum(dragonfly_client_disk_space_total{namespace=~\"$namespace\",container=\"client\"}) -\nsum(dragonfly_client_disk_usage_space_total{namespace=~\"$namespace\",container=\"client\"})) / \nsum(dragonfly_client_disk_space_total{namespace=~\"$namespace\",container=\"client\"})",
"hide": false,
"instant": false,
"legendFormat": "Unused Space",
Expand Down Expand Up @@ -4624,8 +4616,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -4710,8 +4701,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
},
Expand Down Expand Up @@ -4777,8 +4767,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
},
Expand Down Expand Up @@ -4897,8 +4886,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -5001,8 +4989,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -5118,8 +5105,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -5222,8 +5208,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -5419,6 +5404,6 @@
"timezone": "",
"title": "Client",
"uid": "UtXpSprnk",
"version": 25,
"version": 3,
"weekStart": ""
}
32 changes: 11 additions & 21 deletions grafana/dashboards/manager.json
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -750,8 +749,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -844,8 +842,7 @@
"mode": "absolute",
"steps": [
{
"color": "#299c46",
"value": null
"color": "#299c46"
},
{
"color": "rgba(237, 129, 40, 0.89)",
Expand Down Expand Up @@ -933,8 +930,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1040,8 +1036,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1165,8 +1160,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1282,8 +1276,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1388,8 +1381,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1492,8 +1484,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1626,8 +1617,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1882,6 +1872,6 @@
"timezone": "",
"title": "Manager",
"uid": "TL-e3c9nz",
"version": 5,
"version": 6,
"weekStart": ""
}

0 comments on commit 6892755

Please sign in to comment.