SOLVED

Azure monitoring alerts

%3CLINGO-SUB%20id%3D%22lingo-sub-1642197%22%20slang%3D%22en-US%22%3EAzure%20monitoring%20alerts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1642197%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3EI%20have%20got%20a%20custom%20query%20alert%20setup%20for%20disk%20space%20warning%20at%20the%20moment%2C%20which%20alerts%20if%20it%20is%20below%2015%25.%3C%2FP%3E%3CP%3EIs%20there%20any%20way%20my%20alert%20can%20be%20more%20automated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20instance%2C%20if%20the%20space%20of%20the%20server%20has%20grown%20over%20two%20days.%20I%20should%20get%20both%20values%20what%20the%20value%20was%20before%2C%20and%20what%20is%20now.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%20say%20it%20was%2012%20%25%20for%20four%20days%20and%20it%20was%20grown%20by%203%25%20next%20day.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1657295%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20monitoring%20alerts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1657295%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F643248%22%20target%3D%22_blank%22%3E%40Arslan11%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20not%20possible%20out%20of%20the%20box%20as%20alerts%20has%20time%20window%20of%20maximum%2024%20hours.%20You%20can%20potentially%20make%20your%20own%20automation%20by%20using%20one%20of%20these%3A%3C%2FP%3E%0A%3CP%3E-%20Azure%20Automation%3C%2FP%3E%0A%3CP%3E-%20Logic%20App%3C%2FP%3E%0A%3CP%3E-%20Azure%20Function%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20any%20of%20these%20services%20you%20can%20write%20runbook%2Fscript%2Fworkflow%20that%20performs%20the%20following%20actions%3C%2FP%3E%0A%3CP%3E-%20Logins%20to%20Azure%3C%2FP%3E%0A%3CP%3E-%20Executes%20a%20query%20that%20gets%20the%20free%20disk%20space%20for%20the%20day%20before%3C%2FP%3E%0A%3CP%3E-%20Executes%20a%20query%20that%20gets%20the%20free%20disk%20space%20for%20the%20current%20day%3C%2FP%3E%0A%3CP%3E-%20Make%20comparison%20of%20the%20results%20and%20based%20on%20them%20configure%20some%20other%20automation%20like%20e-mail%20or%20something%20else.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor
 

I have got a custom query alert setup for disk space warning at the moment, which alerts if it is below 15%.

Is there any way my alert can be more automated.

 

For instance, if the space of the server has grown over two days. I should get both values what the value was before, and what is now.

 

For example say it was 12 % for four days and it was grown by 3% next day. 

 

 

1 Reply
best response confirmed by Stanislav Zhelyazkov (MVP)
Solution

Hi@Arslan11 

This is not possible out of the box as alerts has time window of maximum 24 hours. You can potentially make your own automation by using one of these:

- Azure Automation

- Logic App

- Azure Function

 

In any of these services you can write runbook/script/workflow that performs the following actions

- Logins to Azure

- Executes a query that gets the free disk space for the day before

- Executes a query that gets the free disk space for the current day

- Make comparison of the results and based on them configure some other automation like e-mail or something else.