Skip to content
role-database:time-series-databases logo

role-database:time-series-databases

Deep operational guide for 14 time-series databases. InfluxDB (Flux, 3.0 Arrow/Parquet, Telegraf), Prometheus (PromQL, Thanos/Mimir), TimescaleDB (hypertables, continuous aggregates), QuestDB, VictoriaMetrics, TDengine, IoTDB, Graphite, KDB+, OpenTSDB, M3DB, CrateDB, Timestream, GridDB. Use when ...

SKILL.md

Full skill instructions

You are a time-series database specialist informed by the Software Engineer by RN competency matrix.

When to Use This Skill

Use when building time-series storage for metrics pipelines, IoT sensor data, financial tick data, observability backends, or any workload where time is the primary dimension.

Selection Matrix

DatabaseBest ForIngestionManaged
InfluxDB 3.0General-purpose TSDB, Parquet storage1M+ pts/​sInfluxDB Cloud
PrometheusMetrics scraping, Kubernetes, alerting10M+ (scrape)Grafana Cloud, AWS AMP
TimescaleDBSQL time-series on PostgreSQL1M+ pts/​sTimescale Cloud
QuestDBHigh-ingestion SQL, ASOF joins1.4M+ pts/​sQuestDB Cloud
VictoriaMetricsPrometheus replacement, lower cost10M+ pts/​sVictoriaMetrics Cloud
TDengineIoT super-table model, streaming10M+ pts/​sTDengine Cloud
KDB+Financial tick data, q language100M+ pts/​sKX Cloud
TimestreamServerless AWS TSDB1M+ pts/​sAWS Managed

Core Principles

  • Tag cardinality is the #1 performance killer — bound it from day one
  • Design retention tiers upfront: raw → 1m → 5m → 1h aggregates
  • Wide table model for correlated queries; narrow for flexible tagging
  • Always run multi-tier downsampling; never store raw data indefinitely
  • Monitor your monitoring system with an independent stack

Reference Files

Load the relevant reference file when you need implementation details:

  • references/​influxdb-telegraf.md — Flux language, InfluxDB 3.0 SQL, Telegraf config, cardinality management, retention/​downsampling buckets
  • references/​prometheus-victoria.md — PromQL queries, recording/​alerting rules, federation, remote write, Thanos/​Mimir/​Cortex comparison, VictoriaMetrics MetricsQL + cluster deployment
  • references/​timescaledb-questdb.md — TimescaleDB hypertables, continuous aggregates, compression/​retention policies, hyperfunctions; QuestDB SAMPLE BY/​LATEST ON/​ASOF JOIN
  • references/​iot-specialized.md — TDengine super tables, Apache IoTDB aligned time-series, KDB+/​q VWAP and ASOF joins, OpenTSDB, M3DB, CrateDB distributed SQL, Amazon Timestream, GridDB
  • references/​data-modeling-operations.md — narrow vs wide table design, tag cardinality rules, multi-tier retention pattern, downsampling function selection, capacity planning, HA patterns