hfutatzhanghb opened a new pull request, #5597: URL: https://github.com/apache/hadoop/pull/5597
### Description of PR In our prod environment, we try to collect datanode metrics every 15s through jmx_exporter. we found the datanodenetworkerror metric generates a lot. for example, if we have a cluster with 1000 datanodes, every datanode may generate 999 datanodenetworkerror metrics, and overall datanodes will generate 1000 multiple 999 = 999000 metrics. This is a very expensive operation. In most scenarios, we only need the topN of it. ### How was this patch tested? no need extra UT, TestDataNodeMetrics#testTimeoutMetric has done it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org