Flink monitoring with Jolokia

Hi,

I configured metricbeat to pull the metrics from Flink app with Jolokia.
I have added jolokia java agent to flink and I am able to pull the basic MBean Metrics like memory, CPU, runtime, etc. But apart from these, Flink exports a lot of custom metrics from its JMX.

Any suggestions on how to fetch those custom jmx metrics through jolokia?

The jmx metricset allows for customization of the collected fields. Which you choose to pick up depends on your use-case.

I configured flink to expose the metric in the form of prometheus and used prometheus module in metricbeat to fetch the metrics.