From 05d29a805b88a51e75d75befff8163d75aba0cc1 Mon Sep 17 00:00:00 2001 From: fumingwei Date: Fri, 28 Jun 2024 14:08:26 +0800 Subject: [PATCH] add new assert chart Traffic (Imbalance Analysis) --- NEZHA/master/dashboard-temp.json | 247 +++++++++++++++++++++---------- 1 file changed, 170 insertions(+), 77 deletions(-) diff --git a/NEZHA/master/dashboard-temp.json b/NEZHA/master/dashboard-temp.json index 5952356..c9a2c98 100644 --- a/NEZHA/master/dashboard-temp.json +++ b/NEZHA/master/dashboard-temp.json @@ -1140,6 +1140,99 @@ } ], "datasource":"metrics" + }, + { + "name":"Traffic (Imbalance Analysis)", + "span":"3.0", + "height":"2.0", + "type":"Line chart", + "unit":"packets/sec(IEC)", + "weight":14, + "param":{ + "rightYAxis":{ + "elementNames":[], + "unit":2, + "style":"line", + "label":"" + }, + "stack":0, + "visibility":{ + "result":"", + "varName":"", + "varValue":"", + "operator":"" + }, + "color":{ + "mode":"palette", + "paletteColors":[ + "#3685FF", + "#00DCA2", + "#00BFD0", + "#954Eff", + "#FFCB01", + "#f65A96", + "#FF9094", + "#00CCF5", + "#FF8BEA", + "#4D7693", + "#72577C", + "#99D750", + "#DD8270", + "#C475EE", + "#7E83FB", + "#7EB090", + "#CF6684", + "#4E55FF", + "#FF8D00", + "#FF5200" + ] + }, + "legend":{ + "values":[], + "show":true, + "placement":"bottom" + }, + "showHeader":1, + "link":"", + "tooltip":{ + "mode":"all", + "sort":"none" + }, + "thresholds":[ + { + "color":"#ed10c4", + "id":"42330a2" + } + ], + "thresholdShow":true, + "enable":{ + "rightYAxis":false, + "thresholds":false, + "visibility":false, + "legend":true, + "tooltip":true, + "valueMapping":false + }, + "valueMapping":[], + "dataLink":[], + "nullType":"zero" + }, + "remark":"", + "x":"0.0", + "y":"6.0", + "elements":[ + { + "expression":"stddev(irate(rx_pkts_per_stream{asset=\"{{asset.name}}\", device=~\"nf(.*)\"}[2m])) by (app)", + "legend":"{{app}}", + "name":"A", + "orderNum":0, + "id":"", + "state":1, + "type":"expert", + "queryType":1 + } + ], + "datasource":"metrics" } ] }, @@ -1149,7 +1242,7 @@ "height":"1.0", "type":"Group", "unit":"short", - "weight":14, + "weight":15, "param":{ "thresholds":[], "visibility":{ @@ -1198,7 +1291,7 @@ }, "remark":"", "x":"0.0", - "y":"11.23", + "y":"13.23", "elements":[], "datasource":"misc", "children":[ @@ -1208,7 +1301,7 @@ "height":"2.0", "type":"Line chart", "unit":"percent(0.0-1.0)", - "weight":15, + "weight":16, "param":{ "rightYAxis":{ "elementNames":[], @@ -1272,7 +1365,7 @@ "height":"2.0", "type":"Line chart", "unit":"bytes(IEC)", - "weight":16, + "weight":17, "param":{ "rightYAxis":{ "elementNames":[], @@ -1336,7 +1429,7 @@ "height":"2.0", "type":"Line chart", "unit":"bits/sec(SI)", - "weight":17, + "weight":18, "param":{ "rightYAxis":{ "elementNames":[], @@ -1437,7 +1530,7 @@ "height":"2.0", "type":"Line chart", "unit":"bits/sec(SI)", - "weight":18, + "weight":19, "param":{ "rightYAxis":{ "elementNames":[], @@ -1538,7 +1631,7 @@ "height":"2.0", "type":"Line chart", "unit":"bits/sec(SI)", - "weight":19, + "weight":20, "param":{ "rightYAxis":{ "elementNames":[], @@ -1639,7 +1732,7 @@ "height":"2.0", "type":"Line chart", "unit":"bits/sec(SI)", - "weight":20, + "weight":21, "param":{ "rightYAxis":{ "elementNames":[], @@ -1740,7 +1833,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":21, + "weight":22, "param":{ "rightYAxis":{ "elementNames":[], @@ -1841,7 +1934,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":22, + "weight":23, "param":{ "rightYAxis":{ "elementNames":[], @@ -1962,7 +2055,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":23, + "weight":24, "param":{ "rightYAxis":{ "elementNames":[], @@ -2083,7 +2176,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":24, + "weight":25, "param":{ "rightYAxis":{ "elementNames":[], @@ -2184,7 +2277,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":25, + "weight":26, "param":{ "rightYAxis":{ "elementNames":[], @@ -2285,7 +2378,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":26, + "weight":27, "param":{ "rightYAxis":{ "elementNames":[], @@ -2386,7 +2479,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":27, + "weight":28, "param":{ "rightYAxis":{ "elementNames":[], @@ -2478,7 +2571,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":28, + "weight":29, "param":{ "rightYAxis":{ "elementNames":[], @@ -2570,7 +2663,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":29, + "weight":30, "param":{ "rightYAxis":{ "elementNames":[], @@ -2662,7 +2755,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":30, + "weight":31, "param":{ "rightYAxis":{ "elementNames":[], @@ -2754,7 +2847,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":31, + "weight":32, "param":{ "rightYAxis":{ "elementNames":[], @@ -2865,7 +2958,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":32, + "weight":33, "param":{ "rightYAxis":{ "elementNames":[], @@ -2929,7 +3022,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":33, + "weight":34, "param":{ "rightYAxis":{ "elementNames":[], @@ -3030,7 +3123,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":34, + "weight":35, "param":{ "rightYAxis":{ "elementNames":[], @@ -3131,7 +3224,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":35, + "weight":36, "param":{ "rightYAxis":{ "elementNames":[], @@ -3232,7 +3325,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":36, + "weight":37, "param":{ "rightYAxis":{ "elementNames":[], @@ -3345,7 +3438,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":37, + "weight":38, "param":{ "rightYAxis":{ "elementNames":[], @@ -3458,7 +3551,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":38, + "weight":39, "param":{ "rightYAxis":{ "elementNames":[], @@ -3573,7 +3666,7 @@ "height":"1.0", "type":"Group", "unit":"short", - "weight":39, + "weight":41, "param":{ "thresholds":[], "visibility":{ @@ -3622,7 +3715,7 @@ }, "remark":"", "x":"0.0", - "y":"23.47", + "y":"27.47", "elements":[], "datasource":"misc", "children":[ @@ -3632,7 +3725,7 @@ "height":"2.0", "type":"Line chart", "unit":"percent(0.0-1.0)", - "weight":40, + "weight":42, "param":{ "rightYAxis":{ "elementNames":[], @@ -3735,7 +3828,7 @@ "height":"2.0", "type":"Line chart", "unit":"bytes(IEC)", - "weight":41, + "weight":43, "param":{ "rightYAxis":{ "elementNames":[], @@ -3838,7 +3931,7 @@ "height":"2.0", "type":"Line chart", "unit":"bits/sec(SI)", - "weight":42, + "weight":44, "param":{ "rightYAxis":{ "elementNames":[], @@ -3941,7 +4034,7 @@ "height":"2.0", "type":"Line chart", "unit":"bits/sec(SI)", - "weight":43, + "weight":45, "param":{ "rightYAxis":{ "elementNames":[], @@ -4034,7 +4127,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":44, + "weight":46, "param":{ "rightYAxis":{ "elementNames":[], @@ -4137,7 +4230,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":45, + "weight":47, "param":{ "rightYAxis":{ "elementNames":[], @@ -4230,7 +4323,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":46, + "weight":48, "param":{ "rightYAxis":{ "elementNames":[], @@ -4333,7 +4426,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":47, + "weight":49, "param":{ "rightYAxis":{ "elementNames":[], @@ -4426,7 +4519,7 @@ "height":"2.0", "type":"Line chart", "unit":"bits/sec(SI)", - "weight":48, + "weight":50, "param":{ "rightYAxis":{ "elementNames":[], @@ -4529,7 +4622,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":49, + "weight":51, "param":{ "rightYAxis":{ "elementNames":[], @@ -4632,7 +4725,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":50, + "weight":52, "param":{ "rightYAxis":{ "elementNames":[], @@ -4745,7 +4838,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":51, + "weight":53, "param":{ "rightYAxis":{ "elementNames":[], @@ -4858,7 +4951,7 @@ "height":"2.0", "type":"Line chart", "unit":"packets/sec(IEC)", - "weight":52, + "weight":54, "param":{ "rightYAxis":{ "elementNames":[], @@ -4951,7 +5044,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":53, + "weight":55, "param":{ "rightYAxis":{ "elementNames":[], @@ -5044,7 +5137,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":54, + "weight":56, "param":{ "rightYAxis":{ "elementNames":[], @@ -5137,7 +5230,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":55, + "weight":57, "param":{ "rightYAxis":{ "elementNames":[], @@ -5310,7 +5403,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":56, + "weight":58, "param":{ "rightYAxis":{ "elementNames":[], @@ -5423,7 +5516,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":57, + "weight":59, "param":{ "rightYAxis":{ "elementNames":[], @@ -5528,7 +5621,7 @@ "height":"1.0", "type":"Group", "unit":"short", - "weight":58, + "weight":61, "param":{ "thresholds":[], "visibility":{ @@ -5577,7 +5670,7 @@ }, "remark":"", "x":"0.0", - "y":"25.47", + "y":"27.94", "elements":[], "datasource":"misc", "children":[ @@ -5587,7 +5680,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":59, + "weight":62, "param":{ "rightYAxis":{ "elementNames":[], @@ -5690,7 +5783,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":60, + "weight":63, "param":{ "rightYAxis":{ "elementNames":[], @@ -5793,7 +5886,7 @@ "height":"2.0", "type":"Line chart", "unit":"packets/sec(IEC)", - "weight":61, + "weight":64, "param":{ "rightYAxis":{ "elementNames":[], @@ -5896,7 +5989,7 @@ "height":"2.0", "type":"Line chart", "unit":"bytes/sec(SI)", - "weight":62, + "weight":65, "param":{ "rightYAxis":{ "elementNames":[], @@ -6009,7 +6102,7 @@ "height":"2.0", "type":"Line chart", "unit":"packets/sec(IEC)", - "weight":63, + "weight":66, "param":{ "rightYAxis":{ "elementNames":[], @@ -6122,7 +6215,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":64, + "weight":67, "param":{ "rightYAxis":{ "elementNames":[], @@ -6225,7 +6318,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":65, + "weight":68, "param":{ "rightYAxis":{ "elementNames":[], @@ -6338,7 +6431,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":66, + "weight":69, "param":{ "rightYAxis":{ "elementNames":[], @@ -6451,7 +6544,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":67, + "weight":70, "param":{ "rightYAxis":{ "elementNames":[], @@ -6564,7 +6657,7 @@ "height":"2.0", "type":"Line chart", "unit":"us", - "weight":68, + "weight":71, "param":{ "rightYAxis":{ "elementNames":[], @@ -6707,7 +6800,7 @@ "height":"2.0", "type":"Line chart", "unit":"percent(0.0-1.0)", - "weight":69, + "weight":72, "param":{ "rightYAxis":{ "elementNames":[], @@ -6810,7 +6903,7 @@ "height":"2.0", "type":"Line chart", "unit":"bytes(IEC)", - "weight":70, + "weight":73, "param":{ "rightYAxis":{ "elementNames":[], @@ -6915,7 +7008,7 @@ "height":"1.0", "type":"Group", "unit":"short", - "weight":71, + "weight":75, "param":{ "thresholds":[], "visibility":{ @@ -6964,7 +7057,7 @@ }, "remark":"", "x":"0.0", - "y":"24.47", + "y":"27.7", "elements":[], "datasource":"misc", "children":[ @@ -6974,7 +7067,7 @@ "height":"2.0", "type":"Line chart", "unit":"percent(0.0-1.0)", - "weight":72, + "weight":76, "param":{ "rightYAxis":{ "elementNames":[], @@ -7077,7 +7170,7 @@ "height":"2.0", "type":"Line chart", "unit":"bytes(IEC)", - "weight":73, + "weight":77, "param":{ "rightYAxis":{ "elementNames":[], @@ -7180,7 +7273,7 @@ "height":"2.0", "type":"Line chart", "unit":"bits/sec(SI)", - "weight":74, + "weight":78, "param":{ "rightYAxis":{ "elementNames":[], @@ -7283,7 +7376,7 @@ "height":"2.0", "type":"Line chart", "unit":"bits/sec(SI)", - "weight":75, + "weight":79, "param":{ "rightYAxis":{ "elementNames":[], @@ -7386,7 +7479,7 @@ "height":"2.0", "type":"Line chart", "unit":"packets/sec(IEC)", - "weight":76, + "weight":80, "param":{ "rightYAxis":{ "elementNames":[], @@ -7479,7 +7572,7 @@ "height":"2.0", "type":"Line chart", "unit":"bits/sec(SI)", - "weight":77, + "weight":81, "param":{ "rightYAxis":{ "elementNames":[], @@ -7582,7 +7675,7 @@ "height":"2.0", "type":"Line chart", "unit":"bits/sec(SI)", - "weight":78, + "weight":82, "param":{ "rightYAxis":{ "elementNames":[], @@ -7675,7 +7768,7 @@ "height":"2.0", "type":"Line chart", "unit":"packets/sec(IEC)", - "weight":79, + "weight":83, "param":{ "rightYAxis":{ "elementNames":[], @@ -7768,7 +7861,7 @@ "height":"2.0", "type":"Line chart", "unit":"packets/sec(IEC)", - "weight":80, + "weight":84, "param":{ "rightYAxis":{ "elementNames":[], @@ -7861,7 +7954,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":81, + "weight":85, "param":{ "rightYAxis":{ "elementNames":[], @@ -7964,7 +8057,7 @@ "height":"2.0", "type":"Line chart", "unit":"short", - "weight":82, + "weight":86, "param":{ "rightYAxis":{ "elementNames":[], @@ -8057,7 +8150,7 @@ "height":"2.0", "type":"Line chart", "unit":"bits/sec(SI)", - "weight":83, + "weight":87, "param":{ "rightYAxis":{ "elementNames":[], @@ -8160,7 +8253,7 @@ "height":"2.0", "type":"Line chart", "unit":"packets/sec(IEC)", - "weight":84, + "weight":88, "param":{ "rightYAxis":{ "elementNames":[], @@ -8253,7 +8346,7 @@ "height":"2.0", "type":"Line chart", "unit":"bits/sec(SI)", - "weight":85, + "weight":89, "param":{ "rightYAxis":{ "elementNames":[], @@ -8356,7 +8449,7 @@ "height":"2.0", "type":"Line chart", "unit":"bits/sec(SI)", - "weight":86, + "weight":90, "param":{ "rightYAxis":{ "elementNames":[],