Thanos — extension of Prometheus for long-term storage, global view and high availability.
Prometheus limitations:
Architecture:
Sidecar config:
1containers:2 - name: thanos-sidecar3 image: quay.io/thanos/thanos:v0.32.04 args:5 - sidecar6 - --tsdb.path=/prometheus7 - --prometheus.url=http://localhost:90908 - --objstore.config-file=/etc/thanos/bucket.yml9 volumeMounts:10 - name: data11 mountPath: /prometheus12 - name: bucket-config13 mountPath: /etc/thanos
Object Storage config (S3):
1type: S32config:3 bucket: thanos-metrics4 endpoint: s3.us-east-1.amazonaws.com5 sse_config:6 type: SSE-S3
Query: thanos query --endpoint=sidecar1:10901 --endpoint=sidecar2:10901 — global view.
Thanos vs Mimir: Thanos simpler, Mimir (Grafana) better for high-write scale.