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

venkata suresh 1 Reputation point
2021-06-17T04:17:32.647+00:00

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

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,459 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Monalla-MSFT 13,071 Reputation points Moderator
    2021-06-22T15:59:01.817+00:00

    Hello @venkata suresh - 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.


  2. venkata suresh 1 Reputation point
    2021-07-10T02:46:24.753+00:00

    @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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.