trying KQL to set alerts for pod status in azure. need assistance for this.
trying KQL to set alerts for pod status in azure. need assistance for this.
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.
Go to Azure Portal.
Find Monitor from Search Option.
Click on Alerts.
Click on New Alert Rules.
Click On Select Resource
Select Subscription and Resource Type As Kubernetes Service.
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.
@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.
@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.
9 people are following this question.