You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hit the same issue as #118
No errors an no data:
$>bean org.springframework.boot:name=metricsEndpoint,type=Endpoint
#bean is set to org.springframework.boot:name=metricsEndpoint,type=Endpoint
$>info
#mbean = org.springframework.boot:name=metricsEndpoint,type=Endpoint
#class name = org.springframework.boot.actuate.endpoint.jmx.DataEndpointMBean
I faced the same problem. The issue is that spring boot declares the type of the Data attribute as Object. This is considered a simple type by jmxfetch and thus the entries of the map are not resolved. I solved it by creating my own JMX endpoints in spring boot similar to the existing ones but with a Map return type.
I hit the same issue as #118
No errors an no data:
$>bean org.springframework.boot:name=metricsEndpoint,type=Endpoint
#bean is set to org.springframework.boot:name=metricsEndpoint,type=Endpoint
$>info
#mbean = org.springframework.boot:name=metricsEndpoint,type=Endpoint
#class name = org.springframework.boot.actuate.endpoint.jmx.DataEndpointMBean
attributes
%0 - Data (java.lang.Object, r)
%1 - EndpointClass (java.lang.String, r)
%2 - Sensitive (boolean, r)
operations
%0 - java.lang.Object getData()
%1 - java.lang.String getEndpointClass()
%2 - boolean isSensitive()
#there's no notifications
$>get Data
#mbean = org.springframework.boot:name=metricsEndpoint,type=Endpoint:
Data = {
mem = 893013;
mem.free = 590049;
processors = 4;
instance.uptime = 181587;
uptime = 201589;
systemload.average = 1.78955078125;
heap.committed = 798720;
heap.init = 131072;
heap.used = 208670;
heap = 1864192;
nonheap.committed = 96664;
nonheap.init = 2496;
nonheap.used = 94293;
nonheap = 0;
threads.peak = 24;
threads.daemon = 22;
threads.totalStarted = 31;
threads = 24;
classes = 12646;
classes.loaded = 12646;
classes.unloaded = 0;
gc.ps_scavenge.count = 16;
gc.ps_scavenge.time = 301;
gc.ps_marksweep.count = 3;
gc.ps_marksweep.time = 424;
httpsessions.max = -1;
httpsessions.active = 0;
datasource.primary.active = 0;
datasource.primary.usage = 0.0;
};
$>get Data.mem
#mbean = org.springframework.boot:name=metricsEndpoint,type=Endpoint:
How can i get metrics inside Data structure? Any help are welcome.
Thanks.
The text was updated successfully, but these errors were encountered: