Metricbeat with Jolokia integration Clarification

Hi All,
As part Metricbeaty 5.5.2 with Jolokia integration,we need to get the jvm merics, how to set the jolokia-jvm-1.3.7-agent.jar to linux environment/application.

metricbeat.yml

  • module: jolokia
    metricsets: ["jmx"]
    enabled: true
    period: 1s
    hosts: ["localhost:8778"]
    namespace: "metrics"
    jmx.mappings:

      - mbean: 'java.lang:type=Runtime'
    attributes:
      - attr: Uptime
        field: uptime
        field_type: integer      
    
          - 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
    

I'm getting config error like below:
CRIT Exiting: error loading config file: yaml: line 60: did not find expected key
Exiting: error loading config file: yaml: line 60: did not find expected key

Can you please tell me what might be wrong?
Thank you for your time.

Please refer https://jolokia.org/agent/jvm.html

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.