Kubernetes Monitoring with Prometheus and Loki
Deploy Prometheus, Grafana, Loki and Alertmanager on Kubernetes with Helm, then alert on a sample app and trace an issue from metric to log.
What You'll Learn
Architecture Overview & Problem Statement
This project deploys a complete observability stack on Kubernetes with Helm: Prometheus collects metrics, Loki stores logs, Grafana shows both in one...
Milestone 1: Prepare the Cluster and Helm
This milestone checks that the cluster works and adds the Helm repositories.
Milestone 2: Deploy kube-prometheus-stack
This milestone installs Prometheus, Grafana, Alertmanager, node-exporter, and kube-state-metrics in one release, with Kubernetes dashboards and alert...
Milestone 3: Explore the Built-in Dashboards
This milestone opens Grafana so you know what the stack already gives you before you add anything.
Milestone 4: Deploy Loki for Log Storage
This milestone installs Loki, which stores logs and indexes only their labels, not their full text.
Milestone 5: Ship Pod Logs with Grafana Alloy
This milestone installs the agent that reads pod logs and sends them to Loki.
Skills You'll Master
Curriculum Index10 topics
Architecture Overview & Problem Statement
This project deploys a complete observability stack on Kubernetes with Helm: Prometheus collects metrics, Loki stores...
Milestone 1: Prepare the Cluster and Helm
This milestone checks that the cluster works and adds the Helm repositories.
Milestone 2: Deploy kube-prometheus-stack
This milestone installs Prometheus, Grafana, Alertmanager, node-exporter, and kube-state-metrics in one release, with...
Milestone 3: Explore the Built-in Dashboards
This milestone opens Grafana so you know what the stack already gives you before you add anything.
Milestone 4: Deploy Loki for Log Storage
This milestone installs Loki, which stores logs and indexes only their labels, not their full text.
Milestone 5: Ship Pod Logs with Grafana Alloy
This milestone installs the agent that reads pod logs and sends them to Loki.
Milestone 6: Deploy a Sample App with Metrics
This milestone adds an application that exposes Prometheus metrics.
Milestone 7: Route Alerts to Slack
This milestone configures Alertmanager, the component that groups alerts, removes duplicates, and sends them to a...
Milestone 8: Write a Custom Alert Rule
This milestone adds a rule for your own app.
Validation & Testing
Run these checks to prove the whole pipeline works. Next, run the incident exercise.
Career Impact
Roles that use the skills in this module.
Site Reliability Engineer
DevOps Engineer
Platform Engineer
Part of Kubernetes Networking and Traffic Management
Configuring Ingress Controllers with NGINX for Production Traffic
Configure NGINX Ingress Controllers on Kubernetes to route production HTTP and HTTPS traffic with SSL termination, path routing, and rate limiting.
Debugging Kubernetes Networking with kubectl and CNI Plugins
Diagnose and fix Kubernetes pod networking failures, DNS resolution issues, and CNI plugin misconfigurations using kubectl, netshoot, and network policy debugging tools.
Kubernetes Network Policies for Pod-Level Traffic Control
By default, every pod in a Kubernetes cluster can talk to every other pod — regardless of namespace, team, or sensitivity. Network Policies are Kubernetes firewall rules that restrict this. They define which pods are allowed to send traffic to which other pods, and which external IPs can reach your services. Without them, a compromised frontend pod can directly connect to your production database.
Next Modules
Related Guides
Practice on the Coding Sheet
Not a software engineer sheet. Every problem comes from real DevOps, SRE, Platform and Cloud interviews, from your first script to a system you build yourself.
Open the Coding Sheet