Skip to content

Commit d77af88

Browse files
committed
add Agent Compression Ratio panel
1 parent 51a24c6 commit d77af88

File tree

1 file changed

+140
-13
lines changed

1 file changed

+140
-13
lines changed

dashboards/DeepFlow-System/DeepFlow-Agent.json

+140-13
Original file line numberDiff line numberDiff line change
@@ -4663,8 +4663,7 @@
46634663
"mode": "absolute",
46644664
"steps": [
46654665
{
4666-
"color": "green",
4667-
"value": null
4666+
"color": "green"
46684667
},
46694668
{
46704669
"color": "red",
@@ -8118,7 +8117,8 @@
81188117
"mode": "absolute",
81198118
"steps": [
81208119
{
8121-
"color": "green"
8120+
"color": "green",
8121+
"value": null
81228122
},
81238123
{
81248124
"color": "red",
@@ -8132,9 +8132,9 @@
81328132
},
81338133
"gridPos": {
81348134
"h": 7,
8135-
"w": 24,
8135+
"w": 12,
81368136
"x": 0,
8137-
"y": 14
8137+
"y": 16
81388138
},
81398139
"id": 58,
81408140
"interval": "$interval",
@@ -8242,7 +8242,8 @@
82428242
"mode": "absolute",
82438243
"steps": [
82448244
{
8245-
"color": "green"
8245+
"color": "green",
8246+
"value": null
82468247
},
82478248
{
82488249
"color": "red",
@@ -8257,8 +8258,8 @@
82578258
"gridPos": {
82588259
"h": 7,
82598260
"w": 12,
8260-
"x": 0,
8261-
"y": 21
8261+
"x": 12,
8262+
"y": 16
82628263
},
82638264
"id": 57,
82648265
"interval": "$interval",
@@ -8318,6 +8319,131 @@
83188319
"title": "tx_pps",
83198320
"type": "timeseries"
83208321
},
8322+
{
8323+
"datasource": {
8324+
"type": "deepflowio-deepflow-datasource",
8325+
"uid": "$datasource"
8326+
},
8327+
"fieldConfig": {
8328+
"defaults": {
8329+
"color": {
8330+
"mode": "palette-classic"
8331+
},
8332+
"custom": {
8333+
"axisBorderShow": false,
8334+
"axisCenteredZero": false,
8335+
"axisColorMode": "text",
8336+
"axisLabel": "",
8337+
"axisPlacement": "auto",
8338+
"barAlignment": 0,
8339+
"drawStyle": "line",
8340+
"fillOpacity": 10,
8341+
"gradientMode": "none",
8342+
"hideFrom": {
8343+
"legend": false,
8344+
"tooltip": false,
8345+
"viz": false
8346+
},
8347+
"insertNulls": false,
8348+
"lineInterpolation": "linear",
8349+
"lineWidth": 1,
8350+
"pointSize": 5,
8351+
"scaleDistribution": {
8352+
"type": "linear"
8353+
},
8354+
"showPoints": "never",
8355+
"spanNulls": false,
8356+
"stacking": {
8357+
"group": "A",
8358+
"mode": "none"
8359+
},
8360+
"thresholdsStyle": {
8361+
"mode": "off"
8362+
}
8363+
},
8364+
"links": [],
8365+
"mappings": [],
8366+
"thresholds": {
8367+
"mode": "absolute",
8368+
"steps": [
8369+
{
8370+
"color": "green",
8371+
"value": null
8372+
},
8373+
{
8374+
"color": "red",
8375+
"value": 80
8376+
}
8377+
]
8378+
},
8379+
"unit": "percent"
8380+
},
8381+
"overrides": []
8382+
},
8383+
"gridPos": {
8384+
"h": 7,
8385+
"w": 12,
8386+
"x": 0,
8387+
"y": 23
8388+
},
8389+
"id": 499,
8390+
"interval": "$interval",
8391+
"options": {
8392+
"legend": {
8393+
"calcs": [
8394+
"mean"
8395+
],
8396+
"displayMode": "table",
8397+
"placement": "right",
8398+
"showLegend": true,
8399+
"sortBy": "Mean",
8400+
"sortDesc": true
8401+
},
8402+
"tooltip": {
8403+
"mode": "multi",
8404+
"sort": "none"
8405+
}
8406+
},
8407+
"pluginVersion": "10.4.0",
8408+
"targets": [
8409+
{
8410+
"_comment": "Please DON'T modify this variable selection field.",
8411+
"datasource": "$datasource",
8412+
"debug": false,
8413+
"metaExtra": {},
8414+
"queryText": "{\"appType\":\"trafficQuery\",\"db\":\"deepflow_tenant\",\"sources\":\"\",\"from\":\"deepflow_agent_collect_sender\",\"select\":[{\"key\":\"metrics.compression-ratio\",\"func\":\"Avg\",\"op\":\"\",\"val\":\"\",\"as\":\"compression_ratio\",\"params\":[],\"uuid\":\"e03fee99-8d04-9576-5f32-7c4996b22263\",\"type\":\"metric\",\"subFuncs\":[],\"whereOnly\":false,\"isResourceType\":false,\"isIpType\":false,\"cache\":{\"func\":\"Avg\",\"params\":[],\"subFuncs\":[]}}],\"where\":[{\"key\":\"tag.host\",\"func\":\"\",\"op\":\"IN\",\"val\":[{\"label\":\"$host\",\"value\":\"host\",\"isVariable\":true,\"variableType\":\"query\"}],\"as\":\"\",\"params\":[],\"uuid\":\"c8fddada-5e4f-31ca-27bc-2f601285b30a\",\"type\":\"tag\",\"subFuncs\":[],\"whereOnly\":false,\"isResourceType\":false,\"isIpType\":false}],\"having\":[{\"key\":\"\",\"func\":\"\",\"op\":\"\",\"val\":\"\",\"as\":\"\",\"params\":[],\"uuid\":\"420d5c22-3f10-ec0e-58e1-7857cfc12495\",\"type\":\"metric\"}],\"groupBy\":[{\"key\":\"tag.host\",\"func\":\"\",\"op\":\"\",\"val\":\"\",\"as\":\"\",\"params\":[],\"uuid\":\"6926cb7c-1457-ad5c-87e3-07719b2a0867\",\"type\":\"tag\",\"subFuncs\":[],\"whereOnly\":false,\"isResourceType\":false,\"isIpType\":false},{\"type\":\"tag\",\"key\":\"tag.type\",\"func\":\"\",\"op\":\"\",\"val\":\"\",\"as\":\"\",\"params\":[],\"uuid\":\"64232b5b-3a7d-bf12-ebd3-6caacaf39276\",\"subFuncs\":[],\"whereOnly\":false,\"isResourceType\":false,\"isIpType\":false}],\"orderBy\":[{\"key\":\"\",\"func\":\"\",\"op\":\"\",\"val\":\"\",\"as\":\"\",\"params\":[],\"uuid\":\"2c1ac79e-9491-141b-4662-b1f40b2bb079\",\"type\":\"metric\",\"sort\":\"asc\"}],\"interval\":\"$interval\",\"slimit\":\"\",\"limit\":\"1000\",\"offset\":\"\",\"formatAs\":\"timeSeries\",\"alias\":\"${tag.host}-${tag.type}\",\"showMetrics\":0,\"tracingId\":null}",
8415+
"refId": "B",
8416+
"returnMetrics": [
8417+
{
8418+
"displayName": "compression_ratio",
8419+
"name": "compression_ratio",
8420+
"type": 1,
8421+
"unit": ""
8422+
}
8423+
],
8424+
"returnTags": [
8425+
{
8426+
"displayName": "time_value",
8427+
"isResource": false,
8428+
"name": "`time_value`"
8429+
},
8430+
{
8431+
"displayName": "tag.host",
8432+
"isResource": false,
8433+
"name": "tag.host"
8434+
},
8435+
{
8436+
"displayName": "tag.type",
8437+
"isResource": false,
8438+
"name": "tag.type"
8439+
}
8440+
],
8441+
"sql": "SELECT Avg(`metrics.compression-ratio`) AS `compression_ratio`, time(time, 60) AS `time_value`, `tag.host`, `tag.type` FROM deepflow_agent_collect_sender WHERE `tag.host` IN ('ubuntu-14-V7','ubuntu-16-V6','ubuntu-15-V5','node-dev-W5') AND time>=1737103091 AND time<=1737106691 GROUP BY `time_value`, `tag.host`, `tag.type` SLIMIT 20 LIMIT 1000"
8442+
}
8443+
],
8444+
"title": "compression_ratio",
8445+
"type": "timeseries"
8446+
},
83218447
{
83228448
"datasource": {
83238449
"type": "deepflowio-deepflow-datasource",
@@ -8367,7 +8493,8 @@
83678493
"mode": "absolute",
83688494
"steps": [
83698495
{
8370-
"color": "green"
8496+
"color": "green",
8497+
"value": null
83718498
},
83728499
{
83738500
"color": "red",
@@ -8383,7 +8510,7 @@
83838510
"h": 7,
83848511
"w": 12,
83858512
"x": 12,
8386-
"y": 21
8513+
"y": 23
83878514
},
83888515
"id": 22,
83898516
"interval": "$interval",
@@ -8558,7 +8685,7 @@
85588685
"h": 10,
85598686
"w": 24,
85608687
"x": 0,
8561-
"y": 15
8688+
"y": 17
85628689
},
85638690
"id": 479,
85648691
"interval": "$interval",
@@ -8729,7 +8856,7 @@
87298856
"h": 10,
87308857
"w": 24,
87318858
"x": 0,
8732-
"y": 25
8859+
"y": 27
87338860
},
87348861
"id": 481,
87358862
"interval": "$interval",
@@ -8915,7 +9042,7 @@
89159042
"h": 10,
89169043
"w": 24,
89179044
"x": 0,
8918-
"y": 35
9045+
"y": 37
89199046
},
89209047
"id": 399,
89219048
"interval": "$interval",

0 commit comments

Comments
 (0)