Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Analyze application specific monitoring data

Now that Application Insights is properly configured, you can use this service to monitor what is going on in your application. You can follow the below guidance to do so.

Use this guidance to take a look at:

  • The Application Map
  • Performance data
  • Failures
  • Metrics
  • Live Metrics
  • Availability
  • Logs

To get the logging information flowing, you should navigate to your application and to the different sub-pages and refresh each page a couple of times. It might take some time to update Application Insights with information from your application.

Step by step guidance

  1. In your browser, navigate to the Azure Portal and your resource group.

  2. Select the Application Insights resource in the resource group. On the overview page you will already see data about Failed requests, Server response time, Server requests and Availability.

    ai_overview

  3. Select Application map. This will show you information about the different applications running in your Spring Cloud Service and their dependencies. This is where the role names you configured in the YAML files are used.

    application map

  4. Select the api-gateway service. This will show you details about this application, like slowest requests and failed dependencies.

    api-gateway

  5. Select Investigate performance. This will show you more data on performance.

    performance

  6. You can also drag your mouse on the graph to select a specific time period, and it will update the view.

  7. Select again your Application Insights resource to navigate back to the Application map and the highlighted api-gateway service.

  8. Select Live Metrics, to see live metrics of your application. This will show you near real time performance of your application, as well as the logs and traces coming in

    live metrics

  9. Select Availability, and next Create Standard test, to configure an availability test for your application.

  10. Fill out the following details and select Create:

    • Test name: Name for your test
    • URL: Fill out 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.

    Once created every 5 minutes your application will now be pinged for availability from 5 test locations.

  11. Select the three dots on the right of your newly created availability test and select 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 will not configure them in this lab, but just for your information, with action groups you can send email or SMS notifications to specific people or groups.

  13. Navigate back to your Application Insights resource.

  14. Select Failures, to see information on all failures in your applications. You can click on any of the response codes, exception types or failed dependencies to get more information on these failures.

    failures

  15. Select Performance, to see performance data of your applications’ operations. This will be a similar view to the one you looked at earlier.

    performance

  16. Select Logs, to see all logged data. You can use Kusto Query Language (KQL) queries to search and analyze the logged data

  1. Select Queries and next Performance.

  2. Double click Operations performance. This will load this query in the query window.

  3. Select Run, to see the results of this query.

performance