beats icon indicating copy to clipboard operation
beats copied to clipboard

Add path attribute for jolokia module

Open jguay opened this issue 6 years ago • 4 comments

https://jolokia.org/reference/html/protocol.html#read see 6.2.1.2 Post read request Request is to implement the key path.

Here is an example. This snippet returns 55 metrics :

             jmx.mappings:
               - mbean: 'java.lang:name=PS MarkSweep,type=GarbageCollector'
                 attributes:
                   - attr: "LastGcInfo"
                     field: GC.MarkSweep

But if we only want only this metric memoryUsageAfterGc.Metaspace.used. If the path argument would be implemented, it gives :

                   - attr: "CollectionCount"
                     field: GC.MarkSweep.CollectionCount
                     path: "memoryUsageAfterGc/Metaspace/used"

or I want only all memoryUsageAfterGc.Metaspace

                  - attr: "CollectionCount"
                     field: GC.MarkSweep.CollectionCount
                     path: "memoryUsageAfterGc/Metaspace"

or I want only all used metric

                   - attr: "CollectionCount"
                     field: GC.MarkSweep.CollectionCount
                     path: "*/*/used"

jguay avatar Nov 07 '18 13:11 jguay

Another mention to this issue in discuss: https://discuss.elastic.co/t/jolokia-module-get-value-from-inner-path-substructure/210391

jsoriano avatar Dec 06 '19 11:12 jsoriano

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

botelastic[bot] avatar Nov 05 '20 11:11 botelastic[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

botelastic[bot] avatar Oct 06 '21 11:10 botelastic[bot]

Hi! We just realized that we haven't looked into this issue in a while. We're sorry!

We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1. Thank you for your contribution!

botelastic[bot] avatar Oct 06 '22 17:10 botelastic[bot]