correction in the first snippet: https://stackoverflow.com/questions/55495935/storm-trident-custom-metrics-are-not-appearing-in-the-jmx
On Wed, Apr 3, 2019 at 6:50 PM Niraj Gupta <[email protected]> wrote: > *Storm version*: 1.0.3 I'm registering custom metric in the makeState of > the StateFactory implementation. > > @Overridepublic State makeState(final Map conf, final IMetricsContext > metricsContext, final int partitionIndex, final int numPartitions) { > this.metrics.put(metric, new ReducedMetric(new MeanReducer())); > metricsContext.registerMetric("custom-metric-1", reducedMetric, 1); > reducedMetric.update(100);} > > I have added the following JMX config in the storm.yml > > -Dcom.sun.management.jmxremote.port=3337 > -Dcom.sun.management.jmxremote.local.only=false > -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false > -Dcom.sun.management.jmxremote.authenticate=false > > After running the Storm cluster when I'm connecting to the 3337 port then > I'm not seeing this metrics which I had defined. > > What am I missing? > > -- > Regards, > Niraj Gupta > +91 727533898 > 0 > -- Regards, Niraj Gupta +91 7275338980
