Hi Vinay,
Could you check the values reported to JMX?
For that you need to connect jconsole to your Streams app and verify the
MBeans in jconsole that contain the metrics.
If they show other values, the issue is likely in your custom metrics
reporter.
Using the DSL or the processor API should not matter. The number of
metrics will probably differ, but for example processor node metrics
like create-latency-avg should show up in both.
Best,
Bruno
On 21.04.21 01:20, Vinay Ramkrishnan wrote:
> Hi ,
>
> I am trying to configure a custom metrics reporter for my stream-apps. I
> am using the following configuration to enable this.
>
> /config.put(METRIC_REPORTER_CLASSES_CONFIG,
> PrometheusReporter.class.getCanonicalName());/
> /config.put(StreamsConfig.METRICS_RECORDING_LEVEL_CONFIG, "DEBUG");/
>
> I am using kafka-streams-2.2.2 library.
> But my reported metrics (for all thread, task, processor-node metrics)
> are always 0.0 or NaN for the mix, max, avg ones.
> Is there any configuration that I am missing ?
> The streams app uses Stream DSL and not the processor API. Does that matter?
>
> Any help appreciated,
> Thanks,
> Vinay
>
> --
> You received this message because you are subscribed to the Google
> Groups "Confluent Platform" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
confluent-platf...@googlegroups.com
> <mailto:
confluent-platf...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/confluent-platform/2bd430a5-5e50-470c-9f61-77eb9ff98a1an%40googlegroups.com
> <
https://groups.google.com/d/msgid/confluent-platform/2bd430a5-5e50-470c-9f61-77eb9ff98a1an%40googlegroups.com?utm_medium=email&utm_source=footer>.