These are chat archives for rhuss/jolokia

18th
Jun 2018
Jacob D'Onofrio
@jdonofrio728
Jun 18 2018 00:49
Hey @rhuss, thanks for the repy. The URL you gave me yields an UnsupportedOperationException
[root@ip-10-45-74-218 ~]# curl 'http://localhost:8778/jolokia/read/java.lang:type=MemoryPool,name=%2aEden%20Space/%2a/Usage'

{
  "request": {
    "path": "Usage",
    "mbean": "java.lang:name=*Eden Space,type=MemoryPool",
    "type": "read"
  },
  "stacktrace": "java.lang.UnsupportedOperationException: 
....
  "error_type": "java.lang.UnsupportedOperationException",
  "error": "java.lang.UnsupportedOperationException : Usage threshold is not supported",
  "status": 500
}
Roland Huß
@rhuss
Jun 18 2018 05:48
I would expect to see a path */Usage here, not sure why this is not the case here. would to investigat this further, but on the road this week. Could you open please a GitHub issue ?
Jacob D'Onofrio
@jdonofrio728
Jun 18 2018 13:00
It does not, also yields a null value:
[vagrant@default-centos-7 ~]$ curl 'http://localhost:8778/jolokia/read/java.lang:type=MemoryPool,name=%2aEden%20Space/Usage/%2a/used' | jq .
{
  "request": {
    "path": "*/used",
    "mbean": "java.lang:name=*Eden Space,type=MemoryPool",
    "attribute": "Usage",
    "type": "read"
  },
  "value": null,
  "timestamp": 1529326769,
  "status": 200
}