Catalogue / pinterest-2023-tscript-time-series

Pinterest's TScript language transforms time series after they are queried, independent of the database, and defines alerts in the same script

Pinterest, 2023. TScript, the time series analysis and alerting language in Pinterest's observability stack.

Organisation
Pinterest
Evidence
Reported from production
Source
Analyzing Time Series for Pinterest Observability

Pinterest Engineering Blog on Medium, published 2023-07-18

Records

Decision#d1

Do time series operations in a database-independent script layer over the query results, not in the database

Decision#d2

Define alerts alongside graphs in the same script, with crit and warn levels and optional debouncing

Decision#d3

Preallocate one DataFrame per metric filled with NaN instead of merging a DataFrame per series

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.