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.
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
- Loading branch information
1 parent
de272bf
commit 1d966f2
Showing
6 changed files
with
169 additions
and
72 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,34 @@ | ||
{ | ||
"@timestamp": "2017-10-12T08:05:34.853Z", | ||
"beat": { | ||
"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": 133286280 | ||
}, | ||
"non_heap_usage": { | ||
"committed": 24576000, | ||
"init": 24576000, | ||
"max": 224395264, | ||
"used": 17684240 | ||
"committed": 32702464, | ||
"init": 2555904, | ||
"max": -1, | ||
"used": 31349800 | ||
} | ||
}, | ||
"uptime": 580487 | ||
"uptime": 56281839 | ||
} | ||
}, | ||
"metricset": { | ||
"host": "jolokia:8778", | ||
"module": "jolokia", | ||
"name": "jmx", | ||
"namespace": "testnamespace", | ||
"rtt": 115 | ||
"name": "jmx" | ||
}, | ||
"service": { | ||
"address": "127.0.0.1:8080", | ||
"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.