forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick to 7.0: Add support in jolokia get response for single va…
…lue (elastic#11075) (elastic#11115) * Add support in jolokia get response for single value (elastic#11075) * Add support in jolokia get response for single value * Use reflect.TypeOf to check attribute and value type * Add changelog * Replace reflect by type switching * Fix indentation for comments (cherry picked from commit c238ea2) * Fix changelog rebase * Rerun TestData to generate data.json
- Loading branch information
1 parent
a0bf5ca
commit b7ad730
Showing
6 changed files
with
171 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,38 @@ | ||
{ | ||
"@timestamp": "2017-10-12T08:05:34.853Z", | ||
"beat": { | ||
"agent": { | ||
"hostname": "host.example.com", | ||
"name": "host.example.com" | ||
}, | ||
"event": { | ||
"dataset": "jolokia.testnamespace", | ||
"duration": 115000, | ||
"module": "jolokia" | ||
}, | ||
"jolokia": { | ||
"testnamespace": { | ||
"memory": { | ||
"heap_usage": { | ||
"committed": 112721920, | ||
"init": 64673792, | ||
"max": 921174016, | ||
"used": 81023984 | ||
"committed": 514850816, | ||
"init": 536870912, | ||
"max": 7635730432, | ||
"used": 85208288 | ||
}, | ||
"non_heap_usage": { | ||
"committed": 24576000, | ||
"init": 24576000, | ||
"max": 224395264, | ||
"used": 17684240 | ||
"committed": 30277632, | ||
"init": 2555904, | ||
"max": -1, | ||
"used": 29298840 | ||
} | ||
}, | ||
"uptime": 580487 | ||
"uptime": 6749672 | ||
} | ||
}, | ||
"metricset": { | ||
"host": "jolokia:8778", | ||
"module": "jolokia", | ||
"name": "jmx", | ||
"namespace": "testnamespace", | ||
"rtt": 115 | ||
"name": "jmx" | ||
}, | ||
"service": { | ||
"address": "127.0.0.1:8778", | ||
"type": "jolokia" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
metricbeat/module/jolokia/jmx/_meta/test/jolokia_get_response_uptime.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"request":{ | ||
"mbean":"java.lang:type=Runtime", | ||
"attribute":"Uptime", | ||
"type":"read" | ||
}, | ||
"value":88622, | ||
"timestamp":1551739190, | ||
"status":200 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.