-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add basic support for arrays #377
Comments
I'd like to see a few other uses rather than supporting the first use case we come across. |
I will add one more case. We are using jmx+zabbix to monitor complex java metrics. Some zabbix triggers involved value of -XX:MinMetaspaceExpansion/ -XX:MaxMetaspaceExpansion. For example we have such metaspace trigger Name: No memory for next Metaspace expansion Values of MinMetaspaceExpansion/MaxMetaspaceExpansion are accessible by jmx only in mbea "java.lang.Runtime InputArguments" which is array, currently not supported by jmx_exporter. |
I'd really appreciate array support as well. Specifically I'm interested in the following attribute: AFAIU it's currently unsupported: https://github.com/prometheus/jmx_exporter/blob/master/collector/src/main/java/io/prometheus/jmx/JmxScraper.java#L284 Could be really useful :) |
I'm also using Debezium but for me a really useful metric would be to calculate the progress % of the snapshot Debezium exposes the current PK ids being snapshoted, and the last PK ids to be snapshoted, but since a database table may have multiple columns in a PK, the JMX value is an array of Ids, so unfortunately not exported to prometheus |
@zeeke I'm sure you have moved on from this issue, given it it's over 4 years old, but had some questions. Looking at the ActiveMQ MBean reference (https://activemq.apache.org/jmx.html) it appears that some of the attributes should be simple numerics. Are these being exported? |
I'm trying to configure an exporter for ActiveMQ and I thinks some array attributes can be useful as exported metric:
The attributes I'm interested on are:
and the object type is (as reported by VisualVM): javax.management.ObjectName[205]
These object aren't supported by the exporter, as stated in:
https://github.com/prometheus/jmx_exporter/blob/master/collector/src/main/java/io/prometheus/jmx/JmxScraper.java#L273
Please think if a simple array length can be extracted as a metric for this kind of objects. If there aren't any better plan to manage arrays, it's better than nothing.
I can work on a PR if needed.
The text was updated successfully, but these errors were encountered: