HDDS-1721 : Client Metrics are not being pushed to the configured sink while running a hadoop command to write to Ozone. (#1034)

This commit is contained in:
avijayanhwx 2019-07-17 12:05:43 -07:00 committed by Bharat Viswanadham
parent af0665c7f5
commit 303a7f8a39
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ public class XceiverClientMetrics {
}
public static XceiverClientMetrics create() {
DefaultMetricsSystem.initialize(SOURCE_NAME);
MetricsSystem ms = DefaultMetricsSystem.instance();
return ms.register(SOURCE_NAME, "Storage Container Client Metrics",
new XceiverClientMetrics());