I am able to access the MBeans in JConsole, and they show up like com.netflix.servo
> HystrixCommand
> countSuccess
> (actual commands and their attributes)
I couldn't find any examples on how to query these objects and the values, e.g. the countSuccess, countFailure etc.
The closest I came was ObjectName o = new ObjectName("com.netflix.servo:name=countSuccess,instance=T6JmxStatCommand,type=HystrixCommand");
which is at https://github.com/n0rad/hands-on-hystrix/blob/master/src/test/java/fr/n0rad/hands/on/hystrix/t6/T6JmxStatMain.java but apparently it doesn't work.
The mbeans were registered via this code: HystrixPlugins.getInstance().registerMetricsPublisher(HystrixServoMetricsPublisher.getInstance());