Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

Latest commit

 

History

History
83 lines (51 loc) · 4.32 KB

File metadata and controls

83 lines (51 loc) · 4.32 KB

Previous lab: Lab 3 - Continuous Delivery

Lab 4 - Continuous Monitoring (CM)

Duration: 10 min

Monitor - Overview

The goal of this lab is to discover the monitoring tools and the alert rules we have deployed through the previous labs and finally how to interact with the insights and how to display them.

Best practices highlighted:

  • Get actionable insights through application performance and instant analytics
  • Create a dashboard to have an overview of some metrics regarding: VSTS Work/Build/Release and Application Insights
  • Automate communications with your teammates through Slack notifications

You will go through 3 main sections in this lab:

  • Browse the alert rules previously provisioned
  • Browse Azure Application Insights previously provisioned and linked your VSTS account on it to create an issue
  • Customize your VSTS Dashboard

Browse the alert rules previously provisioned

  1. Navigate to https://portal.azure.com where you should be able to see your Azure resources deployed:

Azure - All Resources

  1. Navigate to the QA Azure Web App > Alerts blade to see what kind of alerts you provisioned earlier by deploying the ARM Template:

Azure - Alert Rules

Note: Not part of this lab, but other metrics could be configured and furthermore you could send email, SMS or setup a webhook to trigger some notifications, automations, etc.

Browse Azure Application Insights previously provisioned and linked your VSTS account on it to create an issue

  1. Navigate to the QA Application Insights resource > Overview blade to see which metrics and insights you got:

Azure - ApplicationInsights-OverviewBlade

  1. Then navigate to its Failures (preview) blade and follow the flow exposed on the image below:

ApplicationInsights - Display Exception

  1. You will land to the GET /Contact failure/exception detail page, from there click on the New Work Item toolbar button to Configure work item integration with the values below by following the flow illustrated on the image below:
  • Tracking System: Visual Studio Team Serices
  • URL: https://.visualstudio.com
  • Project: yourproject, for example: MyFirstProject
  • Area: yourarea, for example: MyFirstProject

ApplicationInsights - Configure VSTS

  1. You will be then able to click again on the New Work Item toolbar button to populate your VSTS Backlog with this new bug.

Note: Not part of this lab, but Application Insights has many other great features you could leverage and take advantage of. Furthermore, you could integrate Application Insights into OMS Log Analytics for more advanced and centralized monitoring and insights

Customize your VSTS Dashboard

  1. Go to your VSTS account https://<your-vsts-account>.visualstudio.com and open your VSTS project for this lab

  2. Navigate to the Dashboards tab and click on the Edit Dashboard > + buttons at the bottom right hand corner:

VSTSDashboard - Default

  1. On the Add widget panel, add the widgets below:
  • Azure Application Insights Chart Widget
    • If it's not installed, you will need to install the associated VSTS Marketplace extension here.
  • Azure Application Insights Metrics
    • Same extension as above.
  • Build Usage
    • If it's not installed, you will need to install the associated VSTS Marketplace extension here.
  • Chart for Build History
  • Deployment status
  • Pull Requests
  • Release Definition Overview
  1. After some configurations you could have a new dashboard similar to the following:

VSTSDashboard - Customized

Congratulations, you have successfully completed the labs. Let's review what we have seen throughout this lab and discuss what's next for your DevOps journey.

Next lab: Conclusion