Azure Monitoring:
- Enable Monitoring, collect metrix and logs and build dashboard
DataTypes in Azure Monitoring:
- Metrics:
- Numeric time series values – time, name , value
- it will store data in azure Monitoring database
- ex: cpu, memory, network input/output and disk iops
- logs:
- text – error message , sucess, fail , status code
- log analytics workspace – store logs (container)
- windows events, linux sys logs, app logs , custom logs
- DCR- rule for collect data and store in log analytics workspace
- KQL query – fetch data
Key componets:
- Host – collection of Metrics for every vm
- AMA – azure Monitoring agent – agent will be runing on vm
- DCR- Data collection Rule – define what to collect from vm
- LAW – Log analytics workspace – where we want store logs
- VM Insight – ready-made Monitoring experience
- Workbooks/Dashboard/Grafana – visualization options.
Architecture azure vm Monitoring

Pre-requests
- sub – azure Monitoring and runing vm (windows/linux)
- permisssions: azure Monitoring contrubtion + vm contrubtion
- LAW need created or need to create
- connection between vm and azure Monitoring enpoints or (pravite link/ proxy configure)
Enable monitoring for vm
sudo apt update && sudo apt install stress -y
stress --vm 2 --vm-bytes 1G --timeout 300s ## add load cpu


