The trick was to use a version of applicationinsights package, specifically 2.9.5. Using a 3.x.x version did not communicate the metrics correctly to the Metrics Explorer in Monitoring > Metrics.
How do I view the "Extended metrics" for a Node.js App in Application Insights
I have installed the applicationinsights-native-metrics package mentioned here: https://learn.microsoft.com/en-us/azure/azure-monitor/app/nodejs
I assume my app is generating metrics mentioned in the article but I can't quite figure out how to view them in Application Insights. Any pointers would be greatly appreciated.
2 answers
Sort by: Most helpful
-
-
hossein jalilian 9,615 Reputation points
2024-06-13T23:12:05.34+00:00 Thanks for posting your question in the Microsoft Q&A forum.
Follow these steps:
In the Azure portal, navigate to your Application Insights resource. under the
Investigate
section, selectMetrics Explorer
. in the Metrics Explorer, click on theAdd metric
button. This will open a panel on the right side. in the panel, expand theNode.js Extended Metrics
namespace to see the available extended metrics. You should see metrics like% CPU Time in GC
,Event Loop Ticks
,Heap Used
, andNon-Heap Used
. Select the metrics you want to view by clicking on the checkbox next to each metric name
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful