Home
%3CLINGO-SUB%20id%3D%22lingo-sub-376616%22%20slang%3D%22en-US%22%3EGetting%20started%20with%20Azure%20Monitor%20Dynamic%20Thresholds%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-376616%22%20slang%3D%22en-US%22%3E%3CP%3EFor%20IT%20Operations%20teams%2C%20performance%20metrics%20are%20essential%20to%20monitoring%20server%20health.%20They%20give%20you%20an%20early%20warning%20of%20potential%20problems%20and%20some%20quantifiable%20data%20over%20%E2%80%9Cthe%20computers%20are%20running%20slow%E2%80%9D.%20They%20also%20give%20you%20data%20to%20back%20up%20a%20recommendation%20to%20upgrade%20a%20system.%20This%20monitoring%20basic%20has%20around%20ever%20since%20server%20operating%20systems%20existed.%20It%20can%20translate%20to%20a%20Cloud%20world%2C%20especially%20if%20you%E2%80%99re%20running%20virtual%20machines%20that%20are%20not%20set%20to%20auto%20scale.%20Historically%2C%20you%20may%20have%20set%20a%20%E2%80%9Chigh%20but%20not%20too%20high%E2%80%9D%20alert%20threshold%20boundary%20(say%2C%20CPU%20performance%20is%20greater%20than%2070%20or%2080%20percent)%20and%20even%20a%20low%20threshold%20(which%20can%20signify%20that%20processes%2C%20applications%20or%20user%20loads%20are%20less%20than%20normal).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20Azure%20Automation%2C%20you%20might%20have%20extended%20this%20to%20plug%20in%20some%20Runbook%20steps%20to%20execute%2C%20if%20an%20alert%20is%20triggered.%20But%20beyond%20that%2C%20the%20configuration%20of%20server%20metrics%20monitoring%20has%20been%20a%20very%20subjective%20task.%20This%20usually%20involves%20a%20few%20initial%20weeks%20of%20pain%2C%20as%20you%20tweak%20the%20threshold%20to%20find%20the%20sweet%20spot%20of%20what%20is%20outside%20of%20the%20normal%20operating%20range%20for%20that%20system.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%E2%80%99m%20enjoying%20presenting%20at%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FMicrosoft-Ignite-The-Tour%2FMaintaining-your-environment%2Fm-p%2F284170%3FWT.mc_id%3DITOpsTalk-blog-socuff%22%20target%3D%22_self%22%3EMicrosoft%20Ignite%20the%20Tour%20about%20Azure%20Monitor%3C%2FA%3E%2C%20which%20pulls%20together%20monitoring%20and%20alerting%20capabilities%20from%20different%20applications%2C%20different%20operating%20systems%20and%20different%20physical%20locations.%20It%E2%80%99s%20great%20to%20get%20started%20with%20Azure%20Monitor%20on%20your%20first%20Cloud%20virtual%20machines%20and%20then%20deploy%20the%20monitoring%20agent%20to%20your%20on-premises%20servers%20too.%20And%20while%20a%20%E2%80%9Csingle%20glass%20of%20pain%E2%80%9D%20across%20all%20of%20your%20systems%20is%20nice%2C%20our%20latest%20announcement%20gives%20you%20a%20better%20glimpse%20into%20how%20Cloud%20power%20can%20truly%20help%20your%20IT%20operations.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EAzure%20Monitor%20now%20supports%20Dynamic%20Thresholds%20for%20metric%20alerts%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3ENow%20you%20have%20the%20option%20to%20not%20%E2%80%9Chard%20code%E2%80%9D%20your%20alert%20threshold%20numbers%20and%20instead%20let%20our%20advanced%20machine%20learning%20analyze%20the%20behaviour%20of%20your%20system%20and%20identify%20patterns%20and%20anomalies.%20This%20is%20not%20a%20one-off%20event.%20Over%20time%2C%20this%20dynamic%20threshold%20will%20refine%20itself%2C%20even%20taking%20into%20account%20regular%20%E2%80%9Canomalies%E2%80%9D%20(with%20Smart%20Pattern%20Recognition)%20such%20as%20a%20dip%20in%20usage%20on%20the%20weekends.%20That%20becomes%20recognised%20as%20normal%20for%20that%20system.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDynamic%20Thresholds%20make%20it%20easy%20to%20push%20out%20alert%20rules%20across%20multiple%20systems%20and%20applications%20at%20scale%2C%20which%20would%20normally%20require%20setting%20individual%20thresholds%20for%20each%20system.%20And%20Dynamic%20Thresholds%20are%20currently%20free%20to%20try%20while%20the%20service%20is%20in%20public%20preview.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EEnabling%20a%20Dynamic%20Threshold%20Alert%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EWithin%20Azure%20Monitor%2C%20when%20you%20add%20a%20metric%20alert%20you%E2%80%99re%20now%20presented%20with%20the%20option%20to%20set%20the%20threshold%20as%20Dynamic.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20750px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F93634iFED93ACC82CBF313%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22AlertLogic.jpg%22%20title%3D%22AlertLogic.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ENow%20there%20are%20some%20options%20you%20can%20tweak%3A%3CBR%20%2F%3E%3CEM%3EOperator%3C%2FEM%3E%20%E2%80%93%20Alert%20when%20the%20metric%20is%20only%20greater%20than%2C%20or%20less%20than%20the%20dynamic%20threshold%2C%20or%20if%20it%20is%20either%20of%20those%20states.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EThreshold%20sensitivity%3C%2FEM%3E%20%E2%80%93%20How%20far%20does%20the%20metric%20have%20to%20vary%20from%20the%20threshold%20before%20the%20alert%20should%20fire%3F%20Do%20you%20want%20it%20to%20be%20highly%20sensitive%20to%20changes%20or%20less%20sensitive%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EFrequency%2C%20number%20of%20violations%20and%20time%20period%3C%2FEM%3E%20%E2%80%93%20These%20let%20us%20fine%20tune%20the%20noise%20of%20the%20alerts.%20If%20the%20CPU%20spikes%20once%20and%20doesn%E2%80%99t%20reoccur%2C%20do%20you%20need%20an%20alert%3F%20%3CBR%20%2F%3EAnd%20like%20other%20Azure%20Monitor%20alerts%2C%20you%20can%20then%20determine%20what%20needs%20to%20happen%20when%20the%20alert%20is%20generated%20%E2%80%93%20who%20is%20notified%2C%20what%20severity%20is%20set%20and%20if%20an%20automation%20runbook%20or%20third%20party%20support%20ticket%20is%20triggered.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENote%3A%3C%2FSTRONG%3E%20Once%20a%20Dynamic%20Threshold%20alert%20is%20created%2C%20it%20will%20review%20the%20historical%20data%20to%20aggregate%20and%20define%20the%20initial%20thresholds.%20If%20the%20resource%20is%20new%20and%20does%20not%20yet%20have%20at%20least%203%20days%20of%20operational%20history%2C%20the%20alerts%20will%20not%20fire%20until%20that%20data%20set%20is%20available.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20alerts%20are%20also%20tracked%20inside%20Azure%20Monitor%20in%20the%20Azure%20Portal.%20In%20this%20example%2C%20the%20Monitor%20Condition%20automatically%20updated%20itself%20to%20Resolved%20after%20the%20virtual%20machine%20CPU%20dropped%20back%20down%20to%20normal%20levels%2C%20but%20I%20still%20have%20enough%20data%20to%20go%20back%20and%20investigate%20the%20cause.%20For%20this%20reason%2C%20the%20Alert%20State%20remains%20and%20New%20and%20I%20can%20manually%20change%20it%20to%20Acknowledge%20or%20Closed%20and%20add%20an%20optional%20comment.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20816px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F93635iCB15428659BDCC17%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22AlertStates.jpg%22%20title%3D%22AlertStates.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20Alert%20details%20also%20tell%20me%20what%20the%20metric%20reached%20and%20what%20the%20current%20threshold%20was%20set%20to%3A%20(note%20this%20was%20a%20very%20low%20stressed%20test%20system%20in%20my%20demo%20tenant!)%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20584px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F93636iBDFE9826FAA3F35F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Threshold.jpg%22%20title%3D%22Threshold.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ESupported%20metrics%3C%2FSTRONG%3E%3CBR%20%2F%3ENow%20it's%20time%20to%20think%20outside%20of%20the%20server%20box!%20Dynamic%20thresholds%20can%20apply%20to%20scenarios%20like%20monitoring%20application%20HTTP%20request%20excution%20time%20via%20Application%20Insights%20and%20all%20other%20Azure%20Monitor%20based%20metric%20sources.%20To%20see%20the%20complete%20list%2C%20visit%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Fazure%2Fazure-monitor%2Fplatform%2Falerts-metric-near-real-time%3FWT.mc_id%3DITOpsTalk-blog-socuff%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Fazure%2Fazure-monitor%2Fplatform%2Falerts-metric-near-real-time%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EResource%20Manager%20templates%3C%2FSTRONG%3E%3CBR%20%2F%3EYes%2C%20you%20can%20include%20Dynamic%20Thresholds%20metric%20alerts%20in%20your%20Azure%20Resource%20Manager%20templates!%20Find%20the%20JSON%20example%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Falerts-metric-create-templates%3FWT.mc_id%3DITOpsTalk-blog-socuff%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Falerts-metric-create-templates%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EConclusion%3C%2FSTRONG%3E%3CBR%20%2F%3EI%E2%80%99m%20excited%20about%20the%20future%20of%20IT%20Operations%20with%20Cloud%20capabilities%20at%20our%20fingers.%20Making%20monitoring%20smarter%20and%20preventing%20or%20auto-remediating%20problems%20provides%20a%20better%20level%20of%20service%20availability.%20I%E2%80%99m%20hoping%20this%20is%20just%20the%20first%20step%20of%20many%20in%20applying%20machine%20learning%20to%20benefit%20everyday%20IT%20Ops%20tasks.%20Please%20take%20some%20time%20to%20try%20it%20out%20and%20let%20us%20know%20your%20feedback!%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ETo%20learn%20more%3A%3C%2FSTRONG%3E%3CBR%20%2F%3EView%20the%20announcement%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fblog%2Fannouncing-azure-monitor-aiops-alerts-with-dynamic-thresholds%2F%3FWT.mc_id%3DITOpsTalk-blog-socuff%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fblog%2Fannouncing-azure-monitor-aiops-alerts-with-dynamic-thresholds%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EView%20the%20product%20documentation%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Falerts-dynamic-thresholds%3FWT.mc_id%3DITOpsTalk-blog-socuff%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Falerts-dynamic-thresholds%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3ESend%20us%20your%20feedback!%20Email%20azurealertsfeedback%40microsoft.com%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-376616%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F93633i7CC08D9FF2B11B5E%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22Graph.jpg%22%20title%3D%22Graph.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETake%20advantage%20of%20machine%20learning%20in%20the%20Cloud%20to%20dynamically%20manage%20alert%20thresholds.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-376616%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

For IT Operations teams, performance metrics are essential to monitoring server health. They give you an early warning of potential problems and some quantifiable data over “the computers are running slow”. They also give you data to back up a recommendation to upgrade a system. This monitoring basic has around ever since server operating systems existed. It can translate to a Cloud world, especially if you’re running virtual machines that are not set to auto scale. Historically, you may have set a “high but not too high” alert threshold boundary (say, CPU performance is greater than 70 or 80 percent) and even a low threshold (which can signify that processes, applications or user loads are less than normal).

 

With Azure Automation, you might have extended this to plug in some Runbook steps to execute, if an alert is triggered. But beyond that, the configuration of server metrics monitoring has been a very subjective task. This usually involves a few initial weeks of pain, as you tweak the threshold to find the sweet spot of what is outside of the normal operating range for that system.

 

I’m enjoying presenting at Microsoft Ignite the Tour about Azure Monitor, which pulls together monitoring and alerting capabilities from different applications, different operating systems and different physical locations. It’s great to get started with Azure Monitor on your first Cloud virtual machines and then deploy the monitoring agent to your on-premises servers too. And while a “single glass of pain” across all of your systems is nice, our latest announcement gives you a better glimpse into how Cloud power can truly help your IT operations.

 

Azure Monitor now supports Dynamic Thresholds for metric alerts

Now you have the option to not “hard code” your alert threshold numbers and instead let our advanced machine learning analyze the behaviour of your system and identify patterns and anomalies. This is not a one-off event. Over time, this dynamic threshold will refine itself, even taking into account regular “anomalies” (with Smart Pattern Recognition) such as a dip in usage on the weekends. That becomes recognised as normal for that system.

 

Dynamic Thresholds make it easy to push out alert rules across multiple systems and applications at scale, which would normally require setting individual thresholds for each system. And Dynamic Thresholds are currently free to try while the service is in public preview.

 

Enabling a Dynamic Threshold Alert

Within Azure Monitor, when you add a metric alert you’re now presented with the option to set the threshold as Dynamic.

AlertLogic.jpg

Now there are some options you can tweak:
Operator – Alert when the metric is only greater than, or less than the dynamic threshold, or if it is either of those states.

 

Threshold sensitivity – How far does the metric have to vary from the threshold before the alert should fire? Do you want it to be highly sensitive to changes or less sensitive?

 

Frequency, number of violations and time period – These let us fine tune the noise of the alerts. If the CPU spikes once and doesn’t reoccur, do you need an alert?
And like other Azure Monitor alerts, you can then determine what needs to happen when the alert is generated – who is notified, what severity is set and if an automation runbook or third party support ticket is triggered.

 

Note: Once a Dynamic Threshold alert is created, it will review the historical data to aggregate and define the initial thresholds. If the resource is new and does not yet have at least 3 days of operational history, the alerts will not fire until that data set is available.

 

The alerts are also tracked inside Azure Monitor in the Azure Portal. In this example, the Monitor Condition automatically updated itself to Resolved after the virtual machine CPU dropped back down to normal levels, but I still have enough data to go back and investigate the cause. For this reason, the Alert State remains and New and I can manually change it to Acknowledge or Closed and add an optional comment.

AlertStates.jpg

 

The Alert details also tell me what the metric reached and what the current threshold was set to: (note this was a very low stressed test system in my demo tenant!)
Threshold.jpg

 

Supported metrics
Now it's time to think outside of the server box! Dynamic thresholds can apply to scenarios like monitoring application HTTP request excution time via Application Insights and all other Azure Monitor based metric sources. To see the complete list, visit https://docs.microsoft.com/en-gb/azure/azure-monitor/platform/alerts-metric-near-real-time

 

Resource Manager templates
Yes, you can include Dynamic Thresholds metric alerts in your Azure Resource Manager templates! Find the JSON example here: https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-metric-create-templates

 

Conclusion
I’m excited about the future of IT Operations with Cloud capabilities at our fingers. Making monitoring smarter and preventing or auto-remediating problems provides a better level of service availability. I’m hoping this is just the first step of many in applying machine learning to benefit everyday IT Ops tasks. Please take some time to try it out and let us know your feedback! 

 

To learn more:
View the announcement https://azure.microsoft.com/en-us/blog/announcing-azure-monitor-aiops-alerts-with-dynamic-thresholds...

 

View the product documentation https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-dynamic-thresholds


Send us your feedback! Email azurealertsfeedback@microsoft.com