Skip to content
Permalink
Browse files

Issue #52 - Fix parsing of EstimatedHistogram for Cassandra 4.0

  • Loading branch information...
erebe committed Jul 9, 2019
1 parent 1148b3b commit 3a001d21e579721b4743c16239ce7ace3085ce2d
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/com/criteo/nosql/cassandra/exporter/JmxScraper.java
@@ -293,7 +293,9 @@ private void updateMetric(MBeanServerConnection beanConn, MBeanInfo mBeanInfo, N
if (first >= '0' && first <= '9') {
updateStats(nodeInfo, mBeanInfo.metricName, Double.valueOf(str));

} else if (first == '[') {
// https://books.google.fr/books?id=BvsVuph6ehMC&pg=PA82
// EstimatedHistogram are object for JMX but are long[] behind
} else if (str.startsWith(long[].class.getName())) {

// This is ugly to redo the shouldScrap and metricName formating this late
// but EstimatedHistogram in cassandra are special case that we cannot detect before :(

0 comments on commit 3a001d2

Please sign in to comment.
You can’t perform that action at this time.