Module 9 · Project 09 · Monitor It with Prometheus and Grafana · Lesson 33 of 48
Build it: monitoring for the notes app
Install the monitoring stack, instrument the app, build a golden-signals dashboard and alerts, then test yourself.
In this lesson · about 40 minutes
- Build Project 09 in stages
- Prove your alerts work by breaking things
- Explain monitoring in interview language
Build it in stages
- Install the stack:
helm install monitoring prometheus-community/kube-prometheus-stack -n monitoring --create-namespaceon your practice cluster. Open Grafana withkubectl port-forward. - Instrument the app: add a Prometheus client library, count requests by route and status, and record durations in a histogram at
/metrics. - Scrape it: add a ServiceMonitor so Prometheus finds the app's Pods by label.
- Dashboard: one row per golden signal for the API, plus node CPU, memory and disk. Save it as JSON in Git (Grafana can load dashboards from ConfigMaps).
- Alerts: HighErrorRate, HighLatency, and a saturation warning such as disk above 85% predicted to fill within 4 hours (
predict_linear). Each with a runbook link. - Route them: Alertmanager sends
severity: pageto a test PagerDuty or a Slack channel, and everything else to a quieter channel. - SLO: write down one SLI and SLO for the API and add an error-budget panel.
Break it on purpose
- Deploy a version that returns 500 on one route. How long until the alert fires? Is that fast enough for your SLO?
- Add a 2-second sleep to one endpoint. Which panel shows it first?
- Silence an alert for 30 minutes, as you would during maintenance.
- Stop the app entirely. What fires? Add an
up == 0alert if nothing does.
Guided dialogue
Mock interview: monitoring
0 of 3 answered
Three common questions.
What would you monitor for a web API?
Flashcards
Project 09 flashcards
0 of 7 known
Say the answer out loud, flip the card, then be honest: cards you miss come back at the end.
Practice exam
Project 09 practice test
Eight questions, 10 minutes.
- 8 questions · 10 minutes
- No feedback until you submit. Flag questions to come back to them.
- Aim for 85% or better before you move on. The real exam's 750 out of 900 is roughly 80–83%.
Write the 'Monitoring and alerting' section for your project.
Consider these questions and write down your thoughts. What you write stays on this device.
Written by Noviq Academy in its own words. The labs are simulations: no real servers are touched. When you build the projects yourself, use a practice virtual machine or a free-tier cloud account you control, watch your cloud spending, and never run cleanup or delete commands on a machine you care about. Tool names belong to their owners; versions and output are shown for learning and may differ slightly from yours. Read-aloud and the whiteboard voice use your device's built-in voices.