ApplicationInsights-Java icon indicating copy to clipboard operation
ApplicationInsights-Java copied to clipboard

Adding per-worker metrics reported to JMX in applicationinsights.json for App Insights

Open MonikaReddy-MSFT opened this issue 3 months ago • 1 comments

Customer opened a question on Microsoft Q&A, but opening this issue in Github as suggested by PG.

I have a Flink pipeline and if possible I would like to report the metrics to JMX so that I can use the applicationinsights.json to report them to Application Insights. However, when Flink metrics are reported to JMX they have object names with generated IDs like below:

org.apache.flink.taskmanager.job.task.operator.currentOutputWatermark:host=,job_id=<ID>,job_name=Flink_metrics_test,operator_id=<ID>,operator_name=Sink-_logger-sink,subtask_index=0,task_attempt_id=<ID>,task_attempt_num=0,task_id=<ID>,task_name=Source-Custom_Source-time-now-stream-counter-map-_Sink-_logger-sink,tm_id=<ID> Is it still possible to configure them as JMX metrics? Related documentation: https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-jmx-metrics-configuration#configuration-example

MonikaReddy-MSFT avatar Mar 08 '24 17:03 MonikaReddy-MSFT