Re: unable to find custom JMX metrics

2018-02-14 Thread Guozhang Wang
Salah, I'm cross-posting my answer from SO here: Looking at your code closely again, I realized you may forget to add the metric into your sensor, i.e. you need to call `sensorStartTs.add(metricName, MeasurableStat)` where `MeasurableStat` defines the type of the stat, like Sum, Avg, Count, etc.

Re: unable to find custom JMX metrics

2018-02-14 Thread Matthias J. Sax
Cross posted at SO: https://stackoverflow.com/questions/48745642/kstreams-streamsmetrics-recordthroughput-where-are-they-in-jconsole-adding-ow On 2/12/18 3:52 AM, Salah Alkawari wrote: > hi, > i have a processor that generates custom jmx metrics: > public class ProcessorJMX implements Processor

unable to find custom JMX metrics

2018-02-12 Thread Salah Alkawari
hi, i have a processor that generates custom jmx metrics: public class ProcessorJMX implements Processor { private StreamsMetrics streamsMetrics; private Sensor sensorStartTs; @Override public void init(ProcessorContext processorContext) { streamsMetrics = processorContext