BrightPattern - JVM Monitoring

Dashboard

Memory, garbage collection statistics on the JVM
Last updated: 5 months ago

Downloads: 34

Reviews: 0

    Collector Configuration Details

    WebPortal

    /etc/telegraf/telegraf.d/jolokia-webportal.conf

    [[inputs.jolokia2_agent]]
      urls = ["http://localhost:45119/jolokia"]
      [inputs.jolokia2_agent.tags]
        programname = "webportal"
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_runtime"
            mbean = "java.lang:type=Runtime"
            paths = ["Uptime"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_cpu"
            mbean = "java.lang:type=OperatingSystem"
            paths = ["ProcessCpuLoad"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_memory"
            mbean = "java.lang:type=Memory"
            paths = ["HeapMemoryUsage", "NonHeapMemoryUsage", "ObjectPendingFinalizationCount"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_garbage_collector"
            mbean = "java.lang:name=*,type=GarbageCollector"
            paths = ["CollectionTime", "CollectionCount"]
            tag_keys = ["name"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_last_garbage_collection"
            mbean = "java.lang:name=G1 Young Generation,type=GarbageCollector"
            paths = ["LastGcInfo/duration", "LastGcInfo/GcThreadCount", "LastGcInfo/memoryUsageAfterGc"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_threading"
            mbean = "java.lang:type=Threading"
            paths = ["TotalStartedThreadCount", "ThreadCount", "DaemonThreadCount", "PeakThreadCount"]
    
    [[inputs.jolokia2_agent.metric]]
           name  = "java_class_loading"
           mbean = "java.lang:type=ClassLoading"
           paths = ["LoadedClassCount", "UnloadedClassCount", "TotalLoadedClassCount"]
    
    [[inputs.jolokia2_agent.metric]]
           name     = "java_memory_pool"
           mbean    = "java.lang:name=*,type=MemoryPool"
           paths    = ["Usage", "PeakUsage", "CollectionUsage"]
           tag_keys = ["name"]
    
    [[inputs.jolokia2_agent.metric]]
           name     = "java_nio_bufers"
           mbean    = "java.nio:type=BufferPool,name=*"
           paths    = ["Count", "MemoryUsed", "TotalCapacity"]
           tag_keys = ["name"]
    

    Web Agent Desktop

    /etc/telegraf/telegraf.d/jolokia-webagentdesktop.conf

    [[inputs.jolokia2_agent]]
      urls = ["http://localhost:45029/jolokia"]
      [inputs.jolokia2_agent.tags]
        programname = "webagentdesktop"
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_runtime"
            mbean = "java.lang:type=Runtime"
            paths = ["Uptime"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_cpu"
            mbean = "java.lang:type=OperatingSystem"
            paths = ["ProcessCpuLoad"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_memory"
            mbean = "java.lang:type=Memory"
            paths = ["HeapMemoryUsage", "NonHeapMemoryUsage", "ObjectPendingFinalizationCount"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_garbage_collector"
            mbean = "java.lang:name=*,type=GarbageCollector"
            paths = ["CollectionTime", "CollectionCount"]
            tag_keys = ["name"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_last_garbage_collection"
            mbean = "java.lang:name=G1 Young Generation,type=GarbageCollector"
            paths = ["LastGcInfo/duration", "LastGcInfo/GcThreadCount", "LastGcInfo/memoryUsageAfterGc"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_threading"
            mbean = "java.lang:type=Threading"
            paths = ["TotalStartedThreadCount", "ThreadCount", "DaemonThreadCount", "PeakThreadCount"]
    
    [[inputs.jolokia2_agent.metric]]
           name  = "java_class_loading"
           mbean = "java.lang:type=ClassLoading"
           paths = ["LoadedClassCount", "UnloadedClassCount", "TotalLoadedClassCount"]
    
    [[inputs.jolokia2_agent.metric]]
           name     = "java_memory_pool"
           mbean    = "java.lang:name=*,type=MemoryPool"
           paths    = ["Usage", "PeakUsage", "CollectionUsage"]
           tag_keys = ["name"]
    
    [[inputs.jolokia2_agent.metric]]
           name     = "java_nio_bufers"
           mbean    = "java.nio:type=BufferPool,name=*"
           paths    = ["Count", "MemoryUsed", "TotalCapacity"]
           tag_keys = ["name"]
    

    Scheduler

    /etc/telegraf/telegraf.d/jolokia-scheduler.conf

    [[inputs.jolokia2_agent]]
      urls = ["http://localhost:45199/jolokia"]
      [inputs.jolokia2_agent.tags]
        programname = "scheduler"
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_runtime"
            mbean = "java.lang:type=Runtime"
            paths = ["Uptime"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_cpu"
            mbean = "java.lang:type=OperatingSystem"
            paths = ["ProcessCpuLoad"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_memory"
            mbean = "java.lang:type=Memory"
            paths = ["HeapMemoryUsage", "NonHeapMemoryUsage", "ObjectPendingFinalizationCount"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_garbage_collector"
            mbean = "java.lang:name=*,type=GarbageCollector"
            paths = ["CollectionTime", "CollectionCount"]
            tag_keys = ["name"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_last_garbage_collection"
            mbean = "java.lang:name=G1 Young Generation,type=GarbageCollector"
            paths = ["LastGcInfo/duration", "LastGcInfo/GcThreadCount", "LastGcInfo/memoryUsageAfterGc"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_threading"
            mbean = "java.lang:type=Threading"
            paths = ["TotalStartedThreadCount", "ThreadCount", "DaemonThreadCount", "PeakThreadCount"]
    
    [[inputs.jolokia2_agent.metric]]
           name  = "java_class_loading"
           mbean = "java.lang:type=ClassLoading"
           paths = ["LoadedClassCount", "UnloadedClassCount", "TotalLoadedClassCount"]
    
    [[inputs.jolokia2_agent.metric]]
           name     = "java_memory_pool"
           mbean    = "java.lang:name=*,type=MemoryPool"
           paths    = ["Usage", "PeakUsage", "CollectionUsage"]
           tag_keys = ["name"]
    
    [[inputs.jolokia2_agent.metric]]
           name     = "java_nio_bufers"
           mbean    = "java.nio:type=BufferPool,name=*"
           paths    = ["Count", "MemoryUsed", "TotalCapacity"]
           tag_keys = ["name"]
    

    Email Server

    /etc/telegraf/telegraf.d/jolokia-emailserver.conf

    [[inputs.jolokia2_agent]]
      urls = ["http://localhost:45159/jolokia"]
      [inputs.jolokia2_agent.tags]
        programname = "emailserver"
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_runtime"
            mbean = "java.lang:type=Runtime"
            paths = ["Uptime"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_cpu"
            mbean = "java.lang:type=OperatingSystem"
            paths = ["ProcessCpuLoad"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_memory"
            mbean = "java.lang:type=Memory"
            paths = ["HeapMemoryUsage", "NonHeapMemoryUsage", "ObjectPendingFinalizationCount"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_garbage_collector"
            mbean = "java.lang:name=*,type=GarbageCollector"
            paths = ["CollectionTime", "CollectionCount"]
            tag_keys = ["name"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_last_garbage_collection"
            mbean = "java.lang:name=G1 Young Generation,type=GarbageCollector"
            paths = ["LastGcInfo/duration", "LastGcInfo/GcThreadCount", "LastGcInfo/memoryUsageAfterGc"]
    
    [[inputs.jolokia2_agent.metric]]
            name  = "java_threading"
            mbean = "java.lang:type=Threading"
            paths = ["TotalStartedThreadCount", "ThreadCount", "DaemonThreadCount", "PeakThreadCount"]
    
    [[inputs.jolokia2_agent.metric]]
           name  = "java_class_loading"
           mbean = "java.lang:type=ClassLoading"
           paths = ["LoadedClassCount", "UnloadedClassCount", "TotalLoadedClassCount"]
    
    [[inputs.jolokia2_agent.metric]]
           name     = "java_memory_pool"
           mbean    = "java.lang:name=*,type=MemoryPool"
           paths    = ["Usage", "PeakUsage", "CollectionUsage"]
           tag_keys = ["name"]
    
    [[inputs.jolokia2_agent.metric]]
           name     = "java_nio_bufers"
           mbean    = "java.nio:type=BufferPool,name=*"
           paths    = ["Count", "MemoryUsed", "TotalCapacity"]
           tag_keys = ["name"]