I reuse the same MetricBuilder to collect a batch/bulk of Metrics before sending them thru the wire but it failed with:
java.lang.ArrayIndexOutOfBoundsException: 887
at java.util.ArrayList.add(ArrayList.java:463)
at org.kairosdb.client.builder.MetricBuilder.addMetric(MetricBuilder.java:68)
So it seems MetricBuilder is not prepared to be used in multi-threaded environment.
Are there any recommendations how to do this ?
My application does monitoring.monitor("measurement", value, tags) all over the place. I don't want to make single HTTP call for all of them.
I reuse the same MetricBuilder to collect a batch/bulk of
Metrics before sending them thru the wire but it failed with:So it seems MetricBuilder is not prepared to be used in multi-threaded environment.
Are there any recommendations how to do this ?
My application does
monitoring.monitor("measurement", value, tags)all over the place. I don't want to make single HTTP call for all of them.