AlgoViz

Designing metrics and actionable alerts

easy 7 min

A time series is identified by its metric and complete label set.

Video lesson · Chapter 1 of 8

A hundredfold jump in active series

0:00 / 5:32

Theory

Read or listen first. About 2 min.

What it is

A time series is identified by its metric and complete label set. Even useful dimensions multiply when combined. A histogram can create additional series per bucket depending on representation. Choose bounded attributes that support operational decisions. Keep unbounded identifiers in appropriately controlled event or trace data.

Why it exists

A dashboard slows down after a route label starts containing order IDs. Inspect which dimension gained distinct values and how many series the query scans. Removing a high-cardinality label at ingestion may merge values with incompatible semantics. Change instrumentation to emit route templates, then validate alert rates and retention as old series age out.

If distinct label values stayed bounded, check added histogram buckets, newly discovered targets and query range growth.

The dashboard with a million series

Instrumentation → Time-series store (export label sets). Time-series store → Alert evaluation (query windows)
Instrumentation → Time-series store (export label sets). Time-series store → Alert evaluation (query windows)

Inside this chapter

Push (StatsD) vs. Pull (Prometheus) models
Pull monitoring scrapes a target on a schedule. Push monitoring sends samples to a collector. Define how the pipeline signals target disappearance, collector backpressure and stale samples.
The Four Golden Signals: Latency, Traffic, Errors, Saturation
Latency, traffic, errors and saturation answer how long requests took, how much arrived, what failed and what capacity is under pressure. Scope all four to a meaningful user journey.
High Cardinality data problems
Every distinct label set creates a series. A request ID can grow cardinality without bound. Route templates preserve useful grouping with much lower storage and query cost.
Percentiles (p50, p95, p99) vs. Averages
Percentiles target positions in a distribution and averages combine total value with count. Aggregate compatible histograms for a fleet percentile; host percentile values alone are insufficient.
Alerting Strategies and Alert Fatigue
An alert should identify actionable user risk and route to someone who can act. Multi-window burn checks can reduce noise while catching sustained rapid budget consumption.
Dashboarding Best Practices
Start with user outcomes and denominators, then expose drill-downs by release, region and dependency. Annotate deployments and show missing data distinctly from a true zero.
Anomaly Detection basics
An anomaly detector compares observations against an expected baseline. Seasonality and new traffic mixes can produce genuine changes without user harm. Validate against service objectives.

How it works

Step through the idea, or press Play.

Step 1 of 4

Count bounded series. A request metric starts with method and status class.

Understand it

Worked incident

The dashboard with a million series

ObservationActive series for one metric (series)Interpretation
Baseline120Route templates and status classes yield bounded series.
Incident12000Raw identifiers create a new series for many individual orders.
After intervention130Emit template labels and check both query latency and preserved route-level visibility.
Illustrative measurements from the same workload at three checkpoints.

Choose the next investigation

If distinct label values stayed bounded, check added histogram buckets, newly discovered targets and query range growth.

Summary

The whole topic in one minute.

Unique identities multiply storage and query work. A per-customer investigation can use a retained trace or bounded cohort.

If distinct label values stayed bounded, check added histogram buckets, newly discovered targets and query range growth.

Sources