Project

General

Profile

Feature #2102

Add JMX Log-Level Counter (analog to Hadoop)

Added by Udo Offermann 4 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
z2-base
Target version:
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

LogLevelsAsJMX.zip (1.93 KB) LogLevelsAsJMX.zip Udo Offermann, 13.09.2021 15:29

Related issues

Related to z2-Environment - Feature #2120: Integrate #2099, #2102, #2103, #2104, #2113, #2114, #2115, #2116, #2117 with 2.9.1Resolved07.11.2021Henning Blohm

Actions
#1

Updated by Udo Offermann 4 months ago

  • Target version set to 2.5.7
#2

Updated by Udo Offermann 4 months ago

  • Status changed from New to Feedback
#3

Updated by Udo Offermann 4 months ago

  • Status changed from Feedback to In Progress
#4

Updated by Henning Blohm 3 months ago

  • Status changed from In Progress to Resolved

reviewed

#5

Updated by Henning Blohm 3 months ago

  • Related to Feature #2120: Integrate #2099, #2102, #2103, #2104, #2113, #2114, #2115, #2116, #2117 with 2.9.1 added
#6

Updated by Henning Blohm 3 months ago

  • % Done changed from 0 to 100

Also available in: Atom PDF