[ https://issues.apache.org/jira/browse/HDFS-8880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14961680#comment-14961680 ]
Arpit Agarwal commented on HDFS-8880: ------------------------------------- I'll address #3 by eliminating the extra thread. I am not opposed to a more general solution, pending which this is still useful. I added this to scratch a personal itch as I often missed textual records of NN metrics stored with the service logs for easy grep'ing by metric name or timestamp. There was no intention to add this to every service. Coda Hale [slf4jreporter|https://dropwizard.github.io/metrics/3.1.0/manual/core/#man-core-reporters-slf4j] looks particularly interesting but IIUC the reporters also use a polling thread and there'd be at least some code added to each service to instantiate reporters. We can file a Jira for a more general solution as there was some community interest from YARN, and perhaps downstream. > NameNode metrics logging > ------------------------ > > Key: HDFS-8880 > URL: https://issues.apache.org/jira/browse/HDFS-8880 > Project: Hadoop HDFS > Issue Type: Improvement > Components: namenode > Reporter: Arpit Agarwal > Assignee: Arpit Agarwal > Fix For: 2.8.0 > > Attachments: HDFS-8880.01.patch, HDFS-8880.02.patch, > HDFS-8880.03.patch, HDFS-8880.04.patch, namenode-metrics.log > > > The NameNode can periodically log metrics to help debugging when the cluster > is not setup with another metrics monitoring scheme. -- This message was sent by Atlassian JIRA (v6.3.4#6332)