Monitoring a N-tier Web Application on Azure
- Let consider the following architecture

- After creating these architecture we will try to create the monitoring setup
- Lets create this architecture
- We need to Create Virtual Network
- Quick understanding of cidr
192.168.0.0/16 x.x.x.x/n 192.168.0.0/16 => 192.168.x.x => 32-16 => 16 bits for ip address => 2^16 => numbers of devices that can be connected 10.0.0.0/8 => 10.x.x.x => 32-8 => 24 => 2^24 10.0.0.0/24 => 10.0.0.x => 32-24 => 2^8 10.0.0.0 => 192.168.0.x 192.168.0.0/16 => Smaller networks 192.168.0.x/24 192.168.1.x/24 ....................... 192.168.255.x/24- Creating a Virtual Network

- Lets create a Windows VM in the Business Tier Subnet

- Lets create a Linux VM in the Web Tier Subnet

- Exploring Basic Monitoring Available for Windows and Linux VMs
- Windows VM:

- Linux VM: Almost similar

- Windows VM:
- Lets create two alert rules
- When your virtual machine has excessive cpu usage
- Lets assume Percentage CPU > 85 for last 5 minutes => excessive usage
- When your virtual machine has low cpu usage
- Lets assume Percentage CPU < 10 for last 5 minutes => low cpu usage
- Navigate to Montior => Alerts and Create

- After you create alerts wait for the alert to happen, once the alert is triggered you would see the alert information in the alerts section and also recieve an email

- When your virtual machine has excessive cpu usage
