Feature #2102
Add JMX Log-Level Counter (analog to Hadoop)
Start date:
13.09.2021
Due date:
% Done:
100%
Estimated time:
origin:
Description
Hadoop makes its log output available via JMX by providing the number of log entries by log level in an MBean:
Output of http://localhost:50070/jmx?qry=Hadoop:service=NameNode,name=JvmMetrics
{ "beans" : [ { "name" : "Hadoop:service=NameNode,name=JvmMetrics", "modelerType" : "JvmMetrics", "tag.Context" : "jvm", "tag.ProcessName" : "NameNode", "tag.SessionId" : null, "tag.Hostname" : "ifish.fritz.box", "MemNonHeapUsedM" : 46.26464, "MemNonHeapCommittedM" : 48.875, "MemNonHeapMaxM" : -1.0, "MemHeapUsedM" : 243.12225, "MemHeapCommittedM" : 483.0, "MemHeapMaxM" : 889.0, "MemMaxM" : 889.0, "GcCount" : 4, "GcTimeMillis" : 55, "GcNumWarnThresholdExceeded" : 0, "GcNumInfoThresholdExceeded" : 0, "GcTotalExtraSleepTime" : 144, "ThreadsNew" : 0, "ThreadsRunnable" : 8, "ThreadsBlocked" : 0, "ThreadsWaiting" : 6, "ThreadsTimedWaiting" : 88, "ThreadsTerminated" : 0, "LogFatal" : 0, "LogError" : 1, "LogWarn" : 4, "LogInfo" : 151 }
Find a sample implementation in the attachments
Files
Related issues
Updated by Henning Blohm about 3 years ago
- Related to Feature #2120: Integrate #2099, #2102, #2103, #2104, #2113, #2114, #2115, #2116, #2117 with 2.9.1 added