CLI Arguments
Pass these flags when starting theopendata-timeseries binary.
| Flag | Environment Variable | Default | Description |
|---|---|---|---|
-c, --config | PROMETHEUS_CONFIG_FILE | none | Path to the prometheus.yaml configuration file |
-p, --port | OPEN_TSDB_PORT | 9090 | Port to listen on |
Configuration File
The configuration file follows the Prometheus YAML format with additional sections for storage. The generic placeholders used in this reference are:<string>: a regular string<int>: an integer value<duration>: a duration matching[0-9]+(ms|s|m|h|d)(e.g.30s,1m,2h)
[ ] is optional. The default value is shown after | default =.
<scrape_config>
Each scrape config defines a set of targets and the parameters for scraping them.
<static_config>
A static config defines a list of targets and a common set of labels to apply.
<storage_config>
Storage is tagged by type.
- InMemory
- SlateDb
Stores data in memory only. Data is lost on restart. Useful for testing
and development. No additional fields are required.
<block_cache_config>
The block cache sits in front of SlateDB and holds decoded SST blocks. It is
tagged by type. Only FoyerHybrid is currently available.
<object_store_config>
The object store is tagged by type.
- Local filesystem
- AWS S3
- In-memory
<cache_warmer_config>
On startup, the server scans recent time bucket key ranges through the storage
reader. The block cache picks up those blocks as a side effect, so the first
queries after a restart do not pay cold-cache latency. The warmer runs once
and exits.
Enabled by default. Set cache_warmer: null to disable.
<ingest_consumer_config>
Enables the durable-queue write path. See the
Stateless Ingest page for the full architecture, the
OpenTelemetry Collector side, and operational guidance.
Examples
- Local development
- Production (S3)
- Testing (in-memory)
prometheus.yaml