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.
<object_store_config>
The object store is tagged by type.
- Local filesystem
- AWS S3
- In-memory
Examples
- Local development
- Production (S3)
- Testing (in-memory)
prometheus.yaml