Compare commits
2 Commits
8838077eff
...
76afcaa637
| Author | SHA1 | Date | |
|---|---|---|---|
| 76afcaa637 | |||
|
|
b1c5cc0616 |
@@ -10,5 +10,5 @@ CREATE TABLE IF NOT EXISTS agent_metrics (
|
||||
ENGINE = MergeTree()
|
||||
PARTITION BY (tenant_id, toYYYYMM(collected_at))
|
||||
ORDER BY (tenant_id, agent_id, metric_name, collected_at)
|
||||
TTL collected_at + INTERVAL 365 DAY DELETE
|
||||
TTL toDateTime(collected_at) + INTERVAL 365 DAY DELETE
|
||||
SETTINGS index_granularity = 8192;
|
||||
|
||||
Reference in New Issue
Block a user