From 419dd0faf6b49a9a876d88caf26cf692caeaa620 Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" Date: Wed, 18 Sep 2019 14:09:15 +0200 Subject: [PATCH] HDDS-2134. OM Metrics graphs include empty request type Closes #1451 --- .../src/main/resources/webapps/ozoneManager/ozoneManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/ozoneManager.js b/hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/ozoneManager.js index ca035548cd..00d5614ad8 100644 --- a/hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/ozoneManager.js +++ b/hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/ozoneManager.js @@ -69,7 +69,7 @@ var groupedMetrics = {others: [], nums: {}}; var metrics = result.data.beans[0] for (var key in metrics) { - var numericalStatistic = key.match(/Num([A-Z][a-z]+)(.+?)(Fails)?$/); + var numericalStatistic = key.match(/Num([A-Z][a-z]+)([A-Z].+?)(Fails)?$/); if (numericalStatistic) { var type = numericalStatistic[1]; var name = numericalStatistic[2];