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.
With Azure Native Dynatrace Services, our SaaS solution is available as a native azure resource in the Azure Portal. With the native azure resource, we can easily get Azure monitor metrics and azure resource logs without the need of provisioning ActiveGate in your Azure subscription to query the Azure Monitor metrics or setting up Eventhub or Azure functions to forward Azure logs.
đź”· Review how Azure Native Dynatrace integrates and gathers Azure monitor metrics
đź”· 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 Native Dynatrace Service: An native Azure resource inside the Azure Portal.
#3 . 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:

The Dynatrace Clouds app, a novel way for observing multiple resources across multiple clouds. It provides a single, centralized dashboard that displays all resources across multiple clouds, and significantly enhances multicloud resource tracking and governance.
The Clouds App provides: - Centralized oversight and insights: A univied view that elimiates the to switch between different cloud services dashboards. - Logs and metrics in context: With a single click, the dashboard shows an analysis of logs and metrics for a selected resource in its appropriate context, making it easier to understand the complexities inherent in cloud infrastructure. - Enhanced troubleshooting: Troubleshooting is more effective when teams can see patterns and anomalies across all cloud environments, rather than analyzing them in isolation.
Check out this blog for additional use cases. Also here's a link to the docs
Apps -> Clouds.dt-orders-monolith to view the metrics for that VM 
Problems tab.Kubernetes Azure Load Balancer service 

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


Hosts Classic app, 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


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