{"id":783,"date":"2014-08-27T23:35:12","date_gmt":"2014-08-27T23:35:12","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2014\/08\/27\/monitoring-your-existing-applications\/"},"modified":"2022-05-26T07:18:32","modified_gmt":"2022-05-26T15:18:32","slug":"monitoring-your-existing-applications","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/monitoring-your-existing-applications\/","title":{"rendered":"Monitoring your existing Applications"},"content":{"rendered":"<p>Sometimes you want to monitor a web application that\u2019s already installed and running \u2013 without updating the code or redeploying it. Maybe it has some kind of performance issues or is throwing exceptions and you need to apply instrumentation ASAP.<\/p>\n<p>Now you can do that with Application Insights Status Monitor. Just by installing it on your server, you get performance telemetry right away, and you can add web tests too. If, later, you want to insert trace code or usage analytics, you can go back to the standard method of adding Application Insights to your app project.<\/p>\n<p>[BTW &#8211; this applies to Application Insights in the Microsoft Azure Preview Portal, not the older version in Visual Studio Online \u2013 see this earlier <a href=\"http:\/\/blogs.msdn.com\/b\/visualstudioalm\/archive\/2014\/07\/03\/application-insights-tools-for-visual-studio-included-in-visual-studio-2013-update-3-rc.aspx\">blog<\/a> for background]<\/p>\n<p><strong><em>To start<\/em><\/strong>, log in to Microsoft Azure. Click <strong>+<\/strong> to create an Application Insights resource.<\/p>\n<p><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/08\/4188.image_thumb_48868D55.png\" width=\"468\" height=\"271\" \/><\/p>\n<p>\u00a0<\/p>\n<p><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/08\/7563.image_thumb_5191B050.png\" width=\"213\" height=\"521\" \/><\/p>\n<p><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;margin: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/08\/4810.image_thumb_7A9365A7.png\" width=\"191\" height=\"187\" \/><\/p>\n<p>Choose <strong>Quick start<\/strong>.<\/p>\n<p><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/08\/7024.image_thumb_6A7E3DFC.png\" width=\"637\" height=\"466\" \/><\/p>\n<p>Scroll down past the first part of the Quick start blade, which is about the standard method of <a href=\"http:\/\/azure.microsoft.com\/en-us\/documentation\/articles\/app-insights-monitor-application-health-usage\/\">adding Application Insights to your app project in Visual Studio<\/a><\/p>\n<p><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/08\/5618.image_thumb_5496F5D9.png\" width=\"388\" height=\"428\" \/><\/p>\n<p>Now you come to the new alternative approach, which starts on your IIS server machine (whether it\u2019s a VM or an actual box):<\/p>\n<p><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/08\/1033.image_thumb_2152394F.png\" width=\"389\" height=\"227\" \/><\/p>\n<p>\u00a0<\/p>\n<p>Click the download link to get the Application Insights Status Monitor (the \u2018agent\u2019). Run it on the first server where your application is installed.\u00a0 The first window you\u2019ll see is the Web Platform Installer:\u00a0<\/p>\n<p><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/08\/8304.image_thumb_3FA80417.png\" width=\"450\" height=\"306\" \/><\/p>\n<p>Click through all the usual stuff:<\/p>\n<p><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/08\/8231.image_thumb_6193669B.png\" width=\"447\" height=\"307\" \/><\/p>\n<p>Steps to enable a local IIS application for Application Insights:<\/p>\n<p>1&#46; Choose the local IIS application from the list on the left<\/p>\n<p>2&#46; Ensure the Application Insights resource that was created from the Azure Portal Preview is selected in the list.\u00a0<\/p>\n<p>3&#46; Click Add Application Insights<\/p>\n<p><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/08\/6406.image_thumb_75AC8324.png\" width=\"532\" height=\"347\" \/><\/p>\n<p>\u00a0<\/p>\n<p>Next Restart IIS to enable Application Insight APM for your application so you can see how your code dependencies are performing:<\/p>\n<p><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/08\/5224.image_thumb_59934118.png\" width=\"697\" height=\"73\" \/><\/p>\n<p>\u00a0<\/p>\n<p>At this point, make sure that someone is using your app. If you don\u2019t have a mass of raving fans, just log in to it yourself and use it a bit to generate some data.<\/p>\n<p>Click <strong>Open in Microsoft Azure Portal<\/strong>. This should get you directly back to your Application Insights blade.<\/p>\n<p><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/08\/1738.image_thumb_57CDFF23.png\" width=\"538\" height=\"351\" \/><\/p>\n<p>\u00a0<\/p>\n<p>Application Insights blade shows your application\u2019s response time, number of requests, slowest requests and failed number of requests.\u00a0 Drill into these parts to see individual request metrics.<\/p>\n<p><img decoding=\"async\" title=\"sm7-edut\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"sm7-edut\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/08\/1261.sm7-edut_thumb_3578FA5B.png\" width=\"273\" height=\"971\" \/><\/p>\n<p>**Next steps: **<\/p>\n<p>\u00b7 <a href=\"http:\/\/azure.microsoft.com\/en-us\/documentation\/articles\/app-insights-monitor-web-app-availability\/\">Set up web tests<\/a> to monitor your application\u2019s availability from different locations around the world<\/p>\n<p>\u00b7 <a href=\"http:\/\/azure.microsoft.com\/en-us\/documentation\/articles\/app-insights-search-diagnostic-logs\/\">Collect and search trace logs<\/a> to help diagnose issues<\/p>\n<p>\u00b7 Add client side JavaScript to enable <a href=\"http:\/\/azure.microsoft.com\/en-us\/documentation\/articles\/app-insights-monitor-application-health-usage\/\">Usage Analytics<\/a><\/p>\n<p>\u00a0<\/p>\n<p>Useful tips<\/p>\n<p>Re-open the Status Monitor from the system tray \n*   <img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;margin: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/08\/0020.image_thumb_7B89B76E.png\" width=\"244\" height=\"173\" \/><\/p>\n<pre><code>You can also see update notifications there.\n\n&lt;a name=\"GetMoreData\"&gt;&lt;\/a&gt;\n<\/code><\/pre>\n<p>*   By installing the Application Insights Status Monitor the Application Insights profiler will be enabled (this will apply to applications that add Application Insights to the project and then redeploy as well as application that are enabled for Application Insights from Status Monitor).\u00a0 For the profiler to be loaded and start sending data you will need to Restart IIS or it will begin executing only after the next IIS reset.\u00a0 Once the profiler is loaded into the process it will start sending your application\u2019s dependency data to the Application Insight service.\u00a0 This includes calls to external resources including SQL (both sync and async) as well as calls your application makes to different HTTP endpoints (again both sync and async).\u00a0<\/p>\n<blockquote>\n<p>Note: this dependency data isn\u2019t available in the portal yet but will be soon so stay tuned.<\/p>\n<\/blockquote>\n<p><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;margin: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/08\/0250.image_thumb_6E189096.png\" width=\"697\" height=\"73\" \/><\/p>\n<p>\u00a0<\/p>\n<ul>\n<li>If you are a System Center 2012 R2 customer or using Application Insights from a Visual Studio Online account and have the Microsoft Monitoring Agent monitoring your application the Status Monitor can be used at enable the same application for Application Insights in Preview Portal.\u00a0 Note: when Status Monitor includes the APM profiler this will no longer be the case and you will need to choose one.\u00a0 <\/li>\n<li>To change or create a new Application Insights resource for an application already sending telemetry data to Application Insights or for a new application choose Configure Settings <\/li>\n<\/ul>\n<p><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/08\/6472.image_thumb_04E57CA3.png\" width=\"753\" height=\"350\" \/><\/p>\n<ul>\n<li>Look for different Notifications in the Notifications list.\u00a0 For example if an application was deployed to the server and was already enabled for Application Insights using Visual Studio Update 3 this notifications will be displayed <\/li>\n<\/ul>\n<p><img decoding=\"async\" title=\"clip_image002\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"clip_image002\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/08\/5822.clip_image002_thumb_32669C66.jpg\" width=\"379\" height=\"99\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you want to monitor a web application that\u2019s already installed and running \u2013 without updating the code or redeploying it. Maybe it has some kind of performance issues or is throwing exceptions and you need to apply instrumentation ASAP. Now you can do that with Application Insights Status Monitor. Just by installing it on [&hellip;]<\/p>\n","protected":false},"author":132,"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-783","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","category-devops"],"acf":[],"blog_post_summary":"<p>Sometimes you want to monitor a web application that\u2019s already installed and running \u2013 without updating the code or redeploying it. Maybe it has some kind of performance issues or is throwing exceptions and you need to apply instrumentation ASAP. Now you can do that with Application Insights Status Monitor. Just by installing it on [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/783","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\/132"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=783"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/783\/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=783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}