{"id":493,"date":"2014-11-03T09:15:00","date_gmt":"2014-11-03T09:15:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2014\/11\/03\/application-insights-metric-explorer-part-1\/"},"modified":"2022-05-26T05:04:12","modified_gmt":"2022-05-26T13:04:12","slug":"application-insights-metric-explorer-part-1","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/application-insights-metric-explorer-part-1\/","title":{"rendered":"Application Insights &#8211; Metric Explorer &#8211; Part 1"},"content":{"rendered":"<p>When you drill through many of the charts from the Application Insights overview page, you get to a detailed view that we call Metrics Explorer (ME), which is the focus of this series of blog posts.\u00a0 In each post of this series, I\u2019ll cover a different set of metrics, explaining what they represent and how to instrument your code to capture them.<\/p>\n<p>We have a number of blogs already on getting started with Application Insights, so I did not want to repeat it here, but I strongly encourage you to go through these videos and documentation on getting started:<\/p>\n<ul>\n<li><a href=\"https:\/\/channel9.msdn.com\/Series\/Application-Insights-on-Azure-Preview-Portal\/Getting-Started-with-Application-Insights\">Getting started with Application Insights<\/a><\/li>\n<li><a href=\"http:\/\/azure.microsoft.com\/documentation\/articles\/app-insights-get-started\/\">Application Insights &#8211; Start monitoring your app&#8217;s health and usage<\/a><\/li>\n<\/ul>\n<h2>\u00a0Setting up client performance metrics<\/h2>\n<p>How long does it take to load your web page, and which parts of the process take the most time? If you\u2019re wondering which pages are slow to load and why, look at the client performance metrics.<\/p>\n<p>These metrics are measured in your web page, and you have to add a snippet of JavaScript to each page, or to a master page. There are detailed instructions in <a href=\"https:\/\/channel9.msdn.com\/Series\/Application-Insights-on-Azure-Preview-Portal\/Getting-Started-with-Application-Insights\">this video<\/a> and in <a href=\"http:\/\/azure.microsoft.com\/en-us\/documentation\/articles\/app-insights-web-track-usage\/\">this help page<\/a>.\u00a0 But if you added Application Insights when you created a new web app project, it will already be set up for you.<\/p>\n<p>As soon as you run your application either locally (clicking F5) or on the server after publishing the website, you should start seeing data almost immediately in your application\u2019s overview page in the <a href=\"http:\/\/portal.azure.com\">Azure portal<\/a>.<\/p>\n<h2>Drill through from Overview<\/h2>\n<p>The Application Health section on the overview page is a lens into your application\u2019s health as we have defined it by the set of metrics related to performance, load and failures.<\/p>\n<p>The top section (1) shows key indicators of the client-side performance.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/11\/8233.2014-11-Overview-Application-Health.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>\u00a0<\/p>\n<p>Click it to get to the detailed performance blade. This blade is a Metrics Explorer view that we\u2019ve initialized with a relevant set of charts.<\/p>\n<p>\u00a0<\/p>\n<h2>What\u2019s in Metrics Explorer?<\/h2>\n<p>The layout of Metrics Explorer is always the same, although the content of the parts depends on how you got there.<\/p>\n<p>\u00a0\u00a0<a href=\"https:\/\/devblogs.microsoft.com\/00\/00\/00\/45\/92\/8640.2014-11-ME-Blade-CP-Drill%20Through.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/11\/8640.2014.-ME-Blade-CP-Drill20Through-1.png\" alt=\"\" border=\"0\" \/><\/a><\/p>\n<p><strong>The top chart<\/strong> (2) in Metrics Explorer is always the bigger version of the chart that you clicked through from Overview page.<\/p>\n<p>**Subsidiary charts **(3) of related metrics. With the client performance overview, we\u2019ve chosen to show server response times, browser exceptions and page views.\u00a0 I would certainly love to get feedback on what set of metrics you would like to see here.<\/p>\n<p><strong>Grids<\/strong> (4).\u00a0 In this case, the first grid shows you average browser page load time by base URL.\u00a0We also give you the count of the hits for the page.\u00a0 The second grid gives you the browser exceptions by file name.<\/p>\n<p>As you play around with the ME and drill through I would love to get <span style=\"text-decoration: underline\">feedback as to what type of information in the drill through would be more useful: what charts\/metrics and what kind of grids<\/span>.\u00a0\u00a0<\/p>\n<h2>What do the client timing metrics mean?<\/h2>\n<p>It is a stacked chart which breaks the total page load time into the <a href=\"http:\/\/www.w3.org\/TR\/navigation-timing\/#processing-model\">standard navigation timing steps defined by W3C<\/a>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/11\/2816.2014-11-CP-Metrics.png\" alt=\"\" border=\"0\" \/><\/p>\n<div>\n<div>\n<div>\n<h2>\n        Customizing a chart\n      <\/h2>\n<p>\n        Select it and you\u2019ll see the list of standard metrics that you can choose from. (The grids and segmented charts, like the client performance metrics chart, are currently read only, but will be editable in the next release.)\n      <\/p>\n<p>\n        You can customize the type chart i.e. (Line, Area or Bar), or select additional metrics you want to chart.\u00a0 In future, you&#8217;ll be able to add charts, segment charts and much more.\n      <\/p>\n<p>\n        \u00a0<a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/11\/7416.2014-11-ME-Metric-Selection.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/11\/7416.2014-11-ME-Metric-Selection.png\" alt=\"\" border=\"0\" \/><\/a>\n      <\/p>\n<p>\n        <strong><em>How are metrics categorized?<\/em><\/strong>\n      <\/p>\n<p>\n        <strong>Client:<\/strong>\u00a0 Metrics that reflect the performance measured in the client browser, for example browser page load time.\n      <\/p>\n<p>\n        <strong>Failures:<\/strong>\u00a0 Exceptions at server or browser: failed requests or failures in calls made to external dependencies.\n      <\/p>\n<p>\n        <strong>Performance counters:\u00a0 <\/strong>System performance counters like process CPU, processor time.\n      <\/p>\n<p>\n        <strong>Server:<\/strong> Performance or load measured at the server such as server response time, or the time spent in external dependencies.\u00a0\n      <\/p>\n<p>\n        <strong>Usage:\u00a0 <\/strong>Reflecting how the users make use of the application, such as sessions and page views.\n      <\/p>\n<p>\n        Each metric appears with its default aggregation in parenthesis. For example, the default aggregation for Server response time is average.\u00a0 In future you\u2019ll be able to select other aggregations like min\/max or percentiles.\n      <\/p>\n<p>\n        <strong><em>Why are some of the metrics greyed out?<\/em><\/strong>\n      <\/p>\n<p>\n        Good question. Only metrics that have the same scale and aggregation types can appear on the same chart. As soon as you select one metric, the others with different aggregation types and scales are disabled. So if you want to enable all the metrics, deselect them all.\u00a0 Again I would love to get your <span style=\"text-decoration: underline\">feedback on this whether this is helpful or not<\/span>.\n      <\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>When you drill through many of the charts from the Application Insights overview page, you get to a detailed view that we call Metrics Explorer (ME), which is the focus of this series of blog posts.\u00a0 In each post of this series, I\u2019ll cover a different set of metrics, explaining what they represent and how [&hellip;]<\/p>\n","protected":false},"author":141,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[224,1],"tags":[],"class_list":["post-493","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","category-devops"],"acf":[],"blog_post_summary":"<p>When you drill through many of the charts from the Application Insights overview page, you get to a detailed view that we call Metrics Explorer (ME), which is the focus of this series of blog posts.\u00a0 In each post of this series, I\u2019ll cover a different set of metrics, explaining what they represent and how [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/141"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=493"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/493\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}