Platform Engineering · Lesson 166

Observability Cardinality, Retention, and Cost

Stage 8 · Observability Tools · Advanced

Keep telemetry useful and affordable by controlling labels, sampling, retention, aggregation, and query shape.

Reading time · ~30 minutes, interactive

Difficulty: Advanced · Know this first: the preceding lesson in this module

Production request

Use this incident as the thread: a team needs a reliable answer, but one resource or control is behaving differently under load.

What is happening?

What can fail?

How do I troubleshoot it?

Change an input

Adjust the working-set or load assumption and keep the diagnosis explicit.

50

Commands and parameters

Run the commands in a disposable lab or on a host you own. Replace placeholders such as $PID and $POD.

promtool tsdb analyze prometheus-data/
count({__name__=~".+"})
# inspect label values
count by (path) (http_requests_total)
# tail collector logs
kubectl logs deploy/otel-collector

Knowledge check

Hands-on lab

Write what you observed, the command or query you ran, and the next decision you would make.

Lab is ready.

Basic to master checks

Basic

Intermediate

Advanced

Master

Production design exercise

Design the control for a multi-tenant production platform. State the boundary, signal, safe default, failure mode, rollback, and owner.

Next in this series · Lesson 167
OpenTelemetry: Instrumentation, Context, and Collectors

Go to Lesson 167 →

Or browse the full course from the Lessons index.