Forum Discussion

Arslan11's avatar
Arslan11
Brass Contributor
Sep 07, 2020
Solved

Azure monitoring alerts

 

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. 

 

 

  • HiArslan11 

    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.

1 Reply

  • HiArslan11 

    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.

Resources