How do I view the "Extended metrics" for a Node.js App in Application Insights

Matt Brown 5 Reputation points
2024-06-13T20:27:34.6466667+00:00

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.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,033 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Matt Brown 5 Reputation points
    2024-06-20T19:45:18.66+00:00

    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.

    1 person found this answer helpful.
    0 comments No comments

  2. hossein jalilian 5,560 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, select Metrics Explorer. in the Metrics Explorer, click on the Add metric button. This will open a panel on the right side. in the panel, expand the Node.js Extended Metrics namespace to see the available extended metrics. You should see metrics like % CPU Time in GC, Event Loop Ticks, Heap Used, and Non-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