question

venkatasuresh-1274 avatar image
0 Votes"
venkatasuresh-1274 asked Monalla-MSFT commented

how to set alerts in azure when the AKS pods are down and up?

trying KQL to set alerts for pod status in azure. need assistance for this.

azure-kubernetes-service
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@venkatasuresh-1274 - Did the below answer help resolve your issue?

0 Votes 0 ·
venkatasuresh-1274 avatar image
0 Votes"
venkatasuresh-1274 answered Monalla-MSFT commented

@Monalla-MSFT Thanks for your response.i have tried with recommended alerts but results are not stable.
let me have a try with your solution and will keep you posted.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@venkatasuresh-1274 - Hope the above solution worked for you. If so, Please feel free to "Accept as Answer" so it can be helpful to the community.

0 Votes 0 ·
Monalla-MSFT avatar image
0 Votes"
Monalla-MSFT answered

Hello @venkatasuresh-1274 - Thanks for reaching out.

Enable Alert for following situations :
· When CPU or memory utilization on cluster nodes exceeds a threshold
· When CPU or memory utilization on any container within a controller exceeds a threshold as compared to a limit that's set on the corresponding resource
· NotReady status node counts
· Failed, Pending, Unknown, Running, or Succeeded pod-phase counts
· When free disk space on cluster nodes exceeds a threshold

Also find the below steps to create an Alert for AKS resources.


  1. Go to Azure Portal.

  2. Find Monitor from Search Option.

  3. Click on Alerts.

  4. Click on New Alert Rules.

  5. Click On Select Resource

  6. Select Subscription and Resource Type As Kubernetes Service.

  7. Select the AKS cluster and click on Done.
    After Selecting the Resources , you can click on Condition and you will see the options.


Please take a look at below docs for more reference :
1. Azure Monitor for containers overview
2. Azure Monitor for containers

Hope this helps. Please feel free to "Accept as Answer" if the above response helps.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.