Metric Beat and Jolokia Module

Hi There,

I was trying out the new Jolokia module in Metric beat 5.4.

The configuration is given at the end.
The values are coming for the attributes that don't have space. For others say related to MemoryPool (PS Eden Space etc) exception is coming.

Thanks for your help!.

The exception message is:

6 errors: No key found for metric: 'java.lang:name=PS Eden Space,type=MemoryPool_Usage', skipping...; No key found for metric: 'java.lang:name=PS Eden Space,type=MemoryPool_PeakUsage', skipping...; No key found for metric: 'java.lang:name=PS Old Gen,type=MemoryPool_Usage', skipping...; No key found for metric: 'java.lang:name=PS Old Gen,type=MemoryPool_PeakUsage', skipping...; No key found for metric: 'java.lang:name=PS Survivor Space,type=MemoryPool_Usage', skipping...; No key found for metric: 'java.lang:name=PS Survivor Space,type=MemoryPool_PeakUsage', skipping...

The configuration snippet.

jmx.mappings:
    - mbean: 'java.lang:type=Runtime'
      attributes:
        - attr: Uptime
          field: uptime
    - mbean: 'java.lang:type=GarbageCollector,name=ConcurrentMarkSweep'
      attributes:
        - attr: CollectionTime
          field: gc.cms_collection_time
        - attr: CollectionCount
          field: gc.cms_collection_count
    - mbean: 'java.lang:type=Memory'
      attributes:
        - attr: HeapMemoryUsage
          field: memory.heap_usage
        - attr: NonHeapMemoryUsage
          field: memory.non_heap_usage
    - mbean: 'java.lang:type=MemoryPool,name=PS Eden Space'
      attributes:
        - attr: Usage
          field: memory.edenSpace.usage
        - attr: PeakUsage
          field: memoryPool.edenSpace.peakUsage
    - mbean: 'java.lang:type=MemoryPool,name=PS Old Gen'
      attributes:
        - attr: Usage
          field: memoryPool.oldSpace.usage
        - attr: PeakUsage
          field: memoryPool.oldSpace.peakUsage
    - mbean: 'java.lang:type=MemoryPool,name=PS Survivor Space'
      attributes:
        - attr: Usage
          field: memoryPool.survivorSpace.usage
        - attr: PeakUsage
          field: memoryPool.survivorSpace.peakUsage

This sounds a lot like the problem here: https://github.com/elastic/beats/issues/4265 Does this help?

Thank you very much. Now I am getting all the values.

This topic was automatically closed after 21 days. New replies are no longer allowed.