From 1ed3f35a94c588f60f7d700db537457689aa8abc Mon Sep 17 00:00:00 2001 From: Thuan Vo Date: Tue, 3 Sep 2024 12:51:03 -0700 Subject: [PATCH] fix: correct grafana chart panel id --- .../Charts/jfr/JFRMetricsChartCard.tsx | 42 ++++++++++--------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/src/app/Dashboard/Charts/jfr/JFRMetricsChartCard.tsx b/src/app/Dashboard/Charts/jfr/JFRMetricsChartCard.tsx index 4b531334bd..085f5330b9 100644 --- a/src/app/Dashboard/Charts/jfr/JFRMetricsChartCard.tsx +++ b/src/app/Dashboard/Charts/jfr/JFRMetricsChartCard.tsx @@ -56,30 +56,34 @@ export interface JFRMetricsChartCardProps extends DashboardCardTypeProps { // TODO these need to be localized export enum JFRMetricsChartKind { - 'Core Count' = 1, - 'Thread Count' = 2, - 'CPU Load' = 3, - 'Heap Usage' = 4, - 'Memory Usage' = 5, - 'Total Memory' = 6, - 'Recording Start Time' = 7, - 'Recording Duration' = 8, - 'Classloading Statistics' = 9, - 'Metaspace Summary' = 10, + 'Recording Duration' = 2, + 'Recording Start Time' = 3, + + 'Core Count' = 5, + 'Thread Count' = 6, + 'Total Memory' = 7, + 'CPU Load' = 8, + 'Memory Usage' = 9, + 'Network Utilization' = 11, - 'Metaspace GC Threshold' = 12, - 'Thread Statistics' = 13, - 'Exception Statistics' = 14, - 'Thread Context Switch Rate' = 15, - 'Compiler Statistics' = 16, - 'Safepoint Duration' = 18, - 'File I/O' = 19, - 'Compiler Total Time' = 20, + 'File I/O' = 13, + + 'Thread Statistics' = 15, + 'Thread Context Switch Rate' = 16, + + 'Heap Usage' = 18, + 'Object Allocation Sample' = 19, + 'Safepoint Duration' = 20, + 'Metaspace Summary' = 21, + 'Metaspace GC Threshold' = 22, 'Compiler Peak Time' = 24, + 'Compiler Total Time' = 25, + 'Compiler Statistics' = 26, - 'Object Allocation Sample' = 38, + 'Classloading Statistics' = 28, + 'Exception Statistics' = 29, } export function kindToId(kind: string): number {