From ce62af4086e66aeaa8fe1596ccf0c77bcf7d77a8 Mon Sep 17 00:00:00 2001 From: Gabriel Bernal Date: Mon, 22 Jan 2024 10:12:13 +0100 Subject: [PATCH] consider all metric keys to display all results on dashboards tables --- src/components/dashboards/table.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/dashboards/table.tsx b/src/components/dashboards/table.tsx index f05e851..4f428d5 100644 --- a/src/components/dashboards/table.tsx +++ b/src/components/dashboards/table.tsx @@ -106,8 +106,7 @@ const Table: React.FC = ({ customDataSource, panel, pollInterval, queries if (response) { const id = panel.targets[i].refId; response.data.result.forEach(({ metric, value }) => { - const label = _.first(Object.keys(metric)); - const tag = metric[label]; + const tag = Object.values(metric).join('-'); if (!acc[tag]) { acc[tag] = { ...metric }; }