CompCode Academy

Lesson 1 of 4 · Free to read

Session lesson

Platform Observability: Cost, Governance, as-Code

Self-paced phase · ~8–12 focused hours across Lab A/B/C
Audience: Final-year students & early-career engineers
Prerequisites: obs-08-oncall-and-incidents

Why this matters (5 minutes)

Signal volume without governance becomes a second outage: the bill. Platforms win by golden paths, Obs-as-code, and clear vendor vs OSS tradeoffs.

Learning outcomes

  • Set a cardinality/cost budget for metrics and logs
  • Express dashboards/alerts as code
  • Design a golden-path Collector config for app teams
  • Argue OSS LGTM vs SaaS with evidence

Shared lab constants

Systemapi (Express) → SNS → SQS → worker → S3 (+ Postgres/Redis from phase 07)
StackGrafana · Prometheus/Mimir · Loki · Tempo · Pyroscope · OTel Collector · Alloy
RuleExtend the same repo every phase — never start a new toy app.

What MNCs do in 2026

Cardinality budgets, chargeback, multi-region telemetry strategies, dashboard/alert YAML in Git, and paved-road Collector configs are how platform teams scale observability.

Teachable chunks (compressed from days 81–90)

Cost is a reliability signal

Unbounded labels and debug logs page finance first — then you.

Observability as code

PrometheusRule, Grafana dashboards, Collector config reviewed like app code.

Golden paths

One blessed Instrumentation + ServiceMonitor template beats 50 unique snowflakes.

Tradeoffs

OSS depth vs SaaS speed — document when each wins for your org.

Mental model

Watch & learn

Course video

Open on YouTube
Deploy Grafana Loki on AWS EKS — Production-shaped Loki on Kubernetes — labels, Helm, and ops trade-offs.

Course video

Open on YouTube
Complete Terraform Course — Beginner to Pro — Infrastructure as code mental model.

Worked example

Publish golden-path/ with example Instrumentation, ServiceMonitor, and Collector snippet. Add a cardinality budget doc. Export one Grafana dashboard to JSON and store in Git.

Hands-on path

Open Exercises next. Complete Lab A → B → C in order. Stretch is optional.

Phase checklist

  • Cost budget written
  • At least one asset as code
  • Golden path pack reviewed

Key takeaways

  • Keep the same order pipeline — depth beats new toy apps
  • Correlate signals before you SSH
  • Write policies and catalogs your future on-call self can use

Credit

Curriculum themes inspired by the public Observability100 course (https://observability100.vercel.app/course/index.html); lessons and labs rewritten for AI-Tutor.


Observability phase lesson — Platform Observability: Cost, Governance, as-Code.

New free lessons and course updates. Unsubscribe from any email.