thanos

High-availability Prometheus with long-term storage and multi-cluster capabilities.

brewmacoslinux
Try with needOr install directly
Source

About

Highly available Prometheus setup with long term storage capabilities

Commands

thanosthanos-sidecarthanos-storethanos-querythanos-rulethanos-compactthanos-downsamplethanos-bucket

Examples

set up prometheus sidecar for long term storage$ thanos sidecar --tsdb.path=/prometheus --prometheus.url=http://localhost:9090 --objstore.config-file=objstore.yml
query prometheus metrics across multiple clusters$ thanos query --store=localhost:10901 --store=remote-cluster:10901 --web.listen-address=0.0.0.0:9090
store historical data in object storage bucket$ thanos store --data-dir=/var/thanos/store --objstore.config-file=objstore.yml --web.listen-address=0.0.0.0:10902
compress and optimize prometheus data for long-term archival$ thanos compact --data-dir=/var/thanos/compact --objstore.config-file=objstore.yml --consistency-delay=30m
create alerts from multiple prometheus instances$ thanos rule --data-dir=/var/thanos/rule --eval-interval=30s --rule-file=rules.yml --objstore.config-file=objstore.yml