---
id: "thanos"
type: "component"
kind: "timeseries-database"
provider: "default"
category: "data"
docs: "https://thanos.io/tip/components/compact.md/"
url: "https://localhost:3000/catalogue/components/thanos"
---

# Thanos

Long-term storage, global query and downsampling for Prometheus over an object store.

| | |
|---|---|
| Provider | [default](https://localhost:3000/catalogue?provider=default) |
| Kind | [Time-series database](https://localhost:3000/catalogue/kinds/timeseries-database) |
| Category | Data |
| Official docs | [https://thanos.io/tip/components/compact.md/](https://thanos.io/tip/components/compact.md/) |

## Properties

| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| `compression` | enum | `none`, `gorilla`, `other` | no | "other" | **"gorilla"** |
| `deduplication` | boolean | — | no | true | inherited |
| `downsampleResolutions` | enum | `raw`, `raw-5m`, `raw-5m-1h` | no | "raw-5m-1h" | inherited |
| `downsampling` | boolean | — | no | false | **true** |
| `labelIndex` | boolean | — | no | true | **true** |
| `managed` | boolean | — | no | false | **false** |
| `objectStoreBackend` | enum | `s3`, `gcs`, `azure`, `swift`, `filesystem` | no | "s3" | inherited |
| `retentionRawDays` | integer | — | no | — | inherited |
| `tiers` | enum | `single`, `hot-cold`, `hot-warm-cold` | no | "single" | **"hot-cold"** |

Bold values are the ones this component pins.

## Rules that apply · 0

No rule selects this kind or its category.

## Other products of the same kind · 23

- [Time Series Database](https://localhost:3000/catalogue/components/alibaba-tsdb.md) `alibaba-tsdb` — alibabacloud
- [Amazon FinSpace](https://localhost:3000/catalogue/components/aws-finspace.md) `aws-finspace` — aws
- [Amazon Timestream for InfluxDB](https://localhost:3000/catalogue/components/aws-timestream-influxdb.md) `aws-timestream-influxdb` — aws
- [Amazon Timestream for LiveAnalytics](https://localhost:3000/catalogue/components/aws-timestream-liveanalytics.md) `aws-timestream-liveanalytics` — aws
- [Azure Data Explorer](https://localhost:3000/catalogue/components/azure-data-explorer.md) `azure-data-explorer` — azure
- [Azure Monitor workspace](https://localhost:3000/catalogue/components/azure-monitor-workspace.md) `azure-monitor-workspace` — azure
- [Workers Analytics Engine](https://localhost:3000/catalogue/components/cloudflare-analytics-engine.md) `cloudflare-analytics-engine` — cloudflare
- [Cortex](https://localhost:3000/catalogue/components/cortex.md) `cortex` — default
- [DolphinDB](https://localhost:3000/catalogue/components/dolphindb.md) `dolphindb` — default
- [Graphite](https://localhost:3000/catalogue/components/graphite.md) `graphite` — default
- [InfluxDB](https://localhost:3000/catalogue/components/influxdb.md) `influxdb` — default
- [Apache IoTDB](https://localhost:3000/catalogue/components/iotdb.md) `iotdb` — default
- [kdb+](https://localhost:3000/catalogue/components/kdb.md) `kdb` — default
- [M3DB](https://localhost:3000/catalogue/components/m3db.md) `m3db` — default
- [Grafana Mimir](https://localhost:3000/catalogue/components/mimir.md) `mimir` — default
- [openGemini](https://localhost:3000/catalogue/components/opengemini.md) `opengemini` — default
- [Prometheus TSDB](https://localhost:3000/catalogue/components/prometheus-tsdb.md) `prometheus-tsdb` — default
- [QuestDB](https://localhost:3000/catalogue/components/questdb.md) `questdb` — default
- [TDengine](https://localhost:3000/catalogue/components/tdengine.md) `tdengine` — default
- [TimescaleDB](https://localhost:3000/catalogue/components/timescaledb.md) `timescaledb` — default
- [Generic time-series database](https://localhost:3000/catalogue/components/timeseries-database.md) `timeseries-database` — default
- [VictoriaMetrics](https://localhost:3000/catalogue/components/victoriametrics.md) `victoriametrics` — default
- [Google Cloud Managed Service for Prometheus](https://localhost:3000/catalogue/components/google-managed-prometheus.md) `google-managed-prometheus` — gcp

## Use it in a design

```yaml
nodes:
  - { id: "thanos", component: "thanos" }
```

## Source (`component` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../../schema/component.schema.json
# Thanos: long-term storage for Prometheus over an object store. Per "Thanos Compactor",
# downsampling to 5m and 1h runs by default and the three retention flags default to 0d,
# so nothing is deleted until retention is configured.
schemaVersion: "1"
type: "component"
id: "thanos"
kind: "timeseries-database"
provider: "default"
docs: "https://thanos.io/tip/components/compact.md/"
defaults:
  downsampling: true
  tiers: "hot-cold"
  labelIndex: true
  compression: "gorilla"
  managed: false
properties:
  downsampleResolutions:
    type: "enum"
    values: ["raw", "raw-5m", "raw-5m-1h"]
    default: "raw-5m-1h"
  objectStoreBackend:
    type: "enum"
    values: ["s3", "gcs", "azure", "swift", "filesystem"]
    default: "s3"
  deduplication:
    type: "boolean"
    default: true
```

Human page: https://localhost:3000/catalogue/components/thanos
