ApplicationInsights-Java
ApplicationInsights-Java copied to clipboard
Adding per-worker metrics reported to JMX in applicationinsights.json for App Insights
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