Closed agrajm closed 3 years ago
Update: Able to figure out some details
customMetrics
table and can also be seen in the portal in Metrics -> Log Based Metrics under "Custom" I still don't know the reason behind the intermittent errors I'm observing in the logs Also, where can I find the complete schema for the applicationinsights.json file ?
@agrajm we tried reproducing the issue locally. Looks like the fix will be on the Artemis side. Looking at the exception you shared, after whitelisting the "java.lang" object in the management.xml file resolved the issue.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
Thanks @kryalama this works after whitelisting at Artemis end.
Expected behavior
Deploy Java Application Agent with Apache Artemis. It should collect "all" exposed JMX Metrics that I can see in the JDK Mission Control for the application and I should be able to see them in Azure Portal. Is this assumption wrong?
By default the auto-collect for JMX is true so it should collect all the JMX metrics exposed by the application automatically. I explicitly turn this on in applicationinsights.json but that does not help either.
Actual behavior
Errors in logs and in-determinstic metrics seen in Portal. Some metrics are getting collected some time while others are not getting collected.
To Reproduce
jmxMetrics
and specific metrics as below4.. Logs suggest error in fetching JMX objects
Sample Application
A plain vanilla installation of Apache Artemis run with -javaagent as application insight agent.
System information
Please provide the following information:
Logs
Screenshots
Trying to see the metrics in Portal in AppInsights -> Metrics -> Log Based Metrics
Questions
Which "namespace" are these JMX metrics collected in? - "azure.applicationinsights" or "microsoft.insights/components/kusto" (Log Based Metrics) ?
Are these metrics also available in
customMetrics
table in Logs?How to capture & see all the JMX metrics in AppInsights or Azure Portal that I can see in Zulu Mission Control ?
Once able to capture these JMX metrics, the actual goal is to capture the JMS queue level metrics exposed by Apache Artemis. It provides a GUI which shows other queue level relevant metrics like message count, no of messages acknowledged, consumer count, durable message count (shown below)
For achieving above, I tried with following
jmxMetrics
in applicationinsights.json but it did not work and raised an IllegalArgumentException - probably need to expose these from Artemis first and I cannot see them in Zulu Mission Control also!Error when I configure this