-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding per-worker metrics reported to JMX in applicationinsights.json for App Insights #3582
Comments
@MonikaReddy-MSFT In the JMX metrics configuration, you can use It should be something like that:
|
@jeanbisutti - Thanks for the response. Customer responded back saying - The documentation needs updated because it made no mention or example of that. Additionally, are these able to replace values in general (i.e. does it work like Regex pattern matching, so I could use a pattern like "objectName": "*.currentOutputWatermark",). T |
See https://docs.oracle.com/javase/8/docs/api/javax/management/ObjectName.html: "The asterisk matches any sequence of zero or more characters". Microsoft documentation with wildcard: https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-standalone-config#java-management-extensions-metrics |
@jeanbisutti that page has some great information; I think a great solution would be to add links in the documentation so that it can be found easier. Here is a PR: MicrosoftDocs/azure-docs#121864 to fix https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-jmx-metrics-configuration#configuration-example |
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=,job_name=Flink_metrics_test,operator_id=,operator_name=Sink-_logger-sink,subtask_index=0,task_attempt_id=,task_attempt_num=0,task_id=,task_name=Source-Custom_Source-time-now-stream-counter-map-_Sink-_logger-sink,tm_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
The text was updated successfully, but these errors were encountered: