Challenge 03 - AKS Monitoring
< Previous Challenge - Home - Next Challenge >
Introduction
This challenge will cover monitoring in AKS, using open source components such as Prometheus and Azure services such as Azure Monitor.
Description
- Implement Prometheus/Grafana or Azure Container Insights to be able to monitor cluster metrics
- You can access container logs via Azure Monitor
- Increase the CPU utilization of the API container with the
pi
API endpoint, and see the corresponding metric increase in Prometheus and/or Azure Monitor
- Implement a mechanism so that Kubernetes increases the amount of API pods when CPU utilization goes high
- If you didn’t do it already, configure a mechanism that scales the cluster automatically in and out depending on the required capacity
Success Criteria
- You can display cluster metrics graphically
- You can show live container logs with Azure Container Insights
- Verify that the cluster auto-scales when there are not enough CPU resources
- Participants can explain the autoscaling event using AKS metrics
Learning Resources
These docs might help you achieving these objectives: