Analyze application-specific monitoring data

Now that Application Insights is properly configured, you can monitor what’s going on in your application. Using the Azure portal, you’ll be able to access the following information:

  • The Application map in Application Insights
  • Performance data
  • Failures
  • Metrics
  • Live Metrics
  • Availability
  • Logs

Before reviewing this information, you’ll need to record some log data. To do this, go to your application, go through the different sub-pages, and refresh each page a couple of times. After waiting for a bit, Application Insights will update with this information from your application.

For more information about the information that Application Insights provides, review the Application Insights Overview dashboard documentation.

Step-by-step guidance

  1. In your web browser, go to the Azure portal and then to the resource group where you deployed your application.
  2. In the resource group, select the Application Insights resource. On the overview page, you can find data about failed requests, server response time, server requests, and availability.

    ai_overview

  3. Select Application map, which provides information about each of the individual applications you’re running as part of your overall workload, in addition to their dependencies. This is where the role names you configured earlier when redeploying the applications are used to identify each app.

    application map

  4. Select api-gateway, which offers details about the application, like the slowest requests or failed dependencies.

    api-gateway

  5. Select Performance, which provides more data on the application’s performance.

    performance

  6. You can also drag your mouse on the graph to select a specific time period, which will then update the view with only data for that period.
  7. Go back to the Application map and select the highlighted api-gateway application.
  8. To see live metrics of your application, select Live metrics. This will show you near–real-time performance information for your application, along with the logs and traces coming in.

    live metrics

  9. To configure an availability test for your application, select Availability and then Create standard test.
  10. Enter the following details and select Create:
    • Test name: Enter the name for your test.
    • URL: Enter the URL to your api-gateway.
    • Keep all the default settings for the rest of the configuration. Notice that Alerts for this test will be enabled.

      After you create the test, your application will be pinged for availability every five minutes from five separate test locations.

  11. On the right of your newly created availability test, select the ellipses and then the Open Rules (Alerts) page.
  12. Select the alert rule for your availability test. By default, there are no action groups associated with this alert rule. We won’t configure them in this lab, but for future reference, you should know that with action groups, you can send email or SMS notifications to specific people or groups:

  13. Go back to your Application Insights resource.
  14. For information on all failures in your applications, select Failures. To find more details on them, you can select any of the response codes, exception types, or failed dependencies.

    failures

  15. To review your applications’ operations performance data, select Performance. This view will be similar to the earlier one.

    performance

  16. To get all logged data, select Logs. To search and analyze the logged data, you can use Kusto Query Language (KQL) queries.
  17. Select Queries and then Performance.
  18. To load this query in the query window, double-click Operations performance.
  19. For the results of this query, select Run.

    performance