beats
beats copied to clipboard
Add path attribute for jolokia module
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"
Another mention to this issue in discuss: https://discuss.elastic.co/t/jolokia-module-get-value-from-inner-path-substructure/210391
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.
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.
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!