In order to do more with less and scale, organizations must transcend IT silos, foster collaboration and improve productivity. Automation and a common data model are key components of this, but it takes platforms that support operational teams and workflows.
π· Review how Dynatrace integrates with Azure monitor
π· Review how Azure monitor metrics can be configured as Metric events for alerts
Referring to the picture below, here are the components for this lab.

#1 . Azure: Azure cloud platform where Azure services produce metrics that are sent to Azure monitor.
#2 . Azure VM running ActiveGate: A Dynatrace ActiveGate process required to monitor Azure monitor data.
#3 . Dynatrace: Dynatrace tenant where monitoring data is collected and analyzed.
#4 . Dynatrace Azure Dashboard: Out of the box dashboard for each configured Azure subscription.
In addition to monitoring your Azure workloads using OneAgent, Dynatrace provides integration with Azure Monitor which adds infrastructure monitoring to gain insight even into serverless application scenarios.
The integration uses Azure Monitor metrics for service insights, as well as Azure Resource Manager (ARM) to gather metadata.

Azure menu item.Environment dynamics action click on the eastus region to open the virtual machine regional pageNotice the following details:

Click on the dt-orders-active-gate host to open the host page.
Notice the following details:

Dynatrace Davis automatically analyzes abnormal situations within your IT infrastructure and attempts to identify any relevant impact and root cause. Davis relies on a wide spectrum of information sources, such as a transactional view of your services and applications, as well as on events raised on individual nodes within your Smartscape topology.
There are two main sources for single events in Dynatrace:
Settings --> Anomaly Detection --> Metric Events menu.Add metric Event button. 
Add metric event templateCPU % percentageMetric key from dropdownAzure CPU usage from dropdown
Average from dropdowndt-orders-monolithEntities click on > to see Advanced dimension definition and select Azure VM from dropdown 
Add dimension filter and select as shown below. 

> next to Advanced model properties and input as shown. 
Event template section add: CPU CUSTOM ALERTCustom alertAzure VM from dropdown 
Save ChangesCPU Resource Alert and Event type = RESOURCE as shown below. 

Run Command feature to start a shell script.dt-orders-monlith VM from the search menu and select it. 
Run Command under Operations from the left menu 
RunShellScript and type in the command listed below in the Run Command Script window and click run/home/workshop/azure-modernization-dt-orders-setup/learner-scripts/run-cpu-prb.sh


host view, the CPU should now be high as shown below
severity = RESOURCE where Davis was invoked, and #2 is the alert from severity = CUSTOM ALERT.
Settings --> Integrations --> Problem NotificationsAdd Notification buttonNotification types from the drop down to review the configurations inputs.Custom integration type, review the option to customize the payload.Alert profile, but you only have default as an option currentlySettings --> Alerting --> Alerting profilesdefault rule.Add alerting profile buttonRun Command feature in Azure Portal to execute stop shell script.dt-orders-monlith VM from the search menu and select it. 
Run Command under Operations from the left menuRunShellScript and type in the following command listed below in the Run Command Script window and click run/home/workshop/azure-modernization-dt-orders-setup/learner-scripts/stop-cpu-prb.sh


π«Class Note - Please update the Tracking Spreadsheet if you've completed the task on this step.
In this section, you should have completed the following:
β Reviewed how Dynatrace integrates with Azure monitor
β Reviewed how Azure monitor metrics can be configured as Metric events for alerts