liveBook · Manning

Time-series database

As explained in Designing AI Systems

A time-series database stores measurements indexed by time and supports time-range queries over metrics.

A time-series database stores pre-aggregated counters and histograms for operational metrics, making time-range queries efficient. In an observability architecture, it complements logs, traces, and quality scores rather than replacing them. section 7.7

Use it for aggregate operational views such as:

  • Request volume, latency distributions, cost trends, and error rates. section 7.7
  • Queries such as “what was the p99 latency for the patient intake workflow over the last 24 hours?” section 7.7
  • Threshold alerts, including paging when p95 latency exceeds five seconds for ten consecutive minutes. section 7.7
Figure 7.9 A sample observability dashboard. KPI cards provide an at-a-glance summary. The latency chart pulls from the Time-Series DB, the cost breakdown queries the Trace + Generation Store, and quality trends come from the Score Store. Alerts fire when metrics cross configured thresholds. Clicking any data point or flagged trace opens the trace viewer, closing the loop between aggregate monitoring and individual request debugging.

Shows how latency charts query the time-series database while dashboards connect aggregate signals to alerts and trace-level investigation. section 7.7

How Designing AI Systems covers it

How deep it goes
Defines a storage role and query pattern for counters and histograms, but does not explain schema or implementation details.
Examples
Uses p99 latency queries, request-volume charts, cost trends, error rates, and threshold alerts as concrete applications.
What you can do after
Operate dashboards and alerts that monitor aggregate latency, volume, cost, and error metrics over time.
How it connects
Connects metrics with observability, dashboards, alerts, logs, traces, and quality scores.

Also explained in

Compare how 4 books explain time-series database →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Designing AI Systems. The section links point to the parts of the book it draws on.