From 3825d22bc878ab738a22c073678727b02936397d Mon Sep 17 00:00:00 2001 From: sunpe Date: Wed, 25 Oct 2023 09:28:02 +0800 Subject: [PATCH] fix: change legend for adapter dashboard --- dashboards/TDinsightV3.json | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/dashboards/TDinsightV3.json b/dashboards/TDinsightV3.json index 1c41de9..7aace31 100644 --- a/dashboards/TDinsightV3.json +++ b/dashboards/TDinsightV3.json @@ -3419,7 +3419,7 @@ "hide": false, "queryType": "SQL", "refId": "A", - "sql": "select sum(`total`) as `Total`, sum(`success`) as `Successful`, sum(`fail`) as `Failed`, sum(`query`) as `Queries`, sum(`write`) as `Writes`, sum(`other`) as `Other` from $database.adapter_requests where req_type=0" + "sql": "select sum(`total`) as `Total`, sum(`success`) as `Successful`, sum(`fail`) as `Failed`, sum(`query`) as `Queries`, sum(`write`) as `Writes`, sum(`other`) as `Other` from $database.adapter_requests where req_type=0 and ts >= $from and ts <= $to" } ], "timeFrom": null, @@ -3484,10 +3484,9 @@ "graph": {}, "legend": { "calcs": [ + "lastNotNull", "min", "max", - "lastNotNull", - "sum", "mean" ], "displayMode": "table", @@ -3651,7 +3650,7 @@ "hide": false, "queryType": "SQL", "refId": "A", - "sql": "select sum(`total`) as `Total`, sum(`success`) as `Successful`, sum(`fail`) as `Failed`, sum(`query`) as `Queries`, sum(`write`) as `Writes`, sum(`other`) as `Other` from $database.adapter_requests where req_type=1" + "sql": "select sum(`total`) as `Total`, sum(`success`) as `Successful`, sum(`fail`) as `Failed`, sum(`query`) as `Queries`, sum(`write`) as `Writes`, sum(`other`) as `Other` from $database.adapter_requests where req_type=1 and ts >= $from and ts <= $to" } ], "timeFrom": null, @@ -3716,10 +3715,9 @@ "graph": {}, "legend": { "calcs": [ + "lastNotNull", "min", "max", - "lastNotNull", - "sum", "mean" ], "displayMode": "table",