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
If I am reading current code correctly, it's just reading attributes from MBeans.
Some times, the server gives out metrics by calling operations, here's an example from SpringBoot:
Can we added to the exporter the ability to invole the operations in this case, possibly definable by the yml file?
I understand I can use spring boot actuator prometheus endpoint to export the metrics, but the metric names are slightly different and may mess up existing grafana dashboards.
Thanks,
Sean
The text was updated successfully, but these errors were encountered:
@seanliu-oss This is an interesting concept, and I can see where it would be valuable. My concern is that MBean operations may not return single native values (int, long, etc.), but may return Objects required for other MBean calls.
Example:
public class Cache {
public String getName();
public long getTTL();
public long getSize();
}
public interface CacheMBean {
public List<String> getIds();
public Cache getCache(String id);
}
In this example, an end-user wants to get the Cache name, TTL, and size. (The cache name should be a label.)
Programmatic flow (pseudo code)...
lookup the MBean
call cacheMBean.getIds()
for each id, call cacheMBean.getCache(id)
for each Cache Object
call cache.getName()
call cache.getTTL()
call cache.getSize()
Defining such logic via YAML is difficult. The JMX Exporter would have to implement a reflection-based pseudo language.
I also like to have this approach, at least to support "basic data" returned operations or TabularData that could be easily transformed into metrics data
Hi there,
If I am reading current code correctly, it's just reading attributes from MBeans.
Some times, the server gives out metrics by calling operations, here's an example from SpringBoot:
Can we added to the exporter the ability to invole the operations in this case, possibly definable by the yml file?
I understand I can use spring boot actuator prometheus endpoint to export the metrics, but the metric names are slightly different and may mess up existing grafana dashboards.
Thanks,
Sean
The text was updated successfully, but these errors were encountered: