Skip to content

Commit

Permalink
docs(clickhouseexpoter): set TTL to 180 days to match other examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderMael committed Oct 24, 2024
1 parent 6b2e53e commit 509aecd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ CREATE TABLE IF NOT EXISTS otel_metrics_exponential_histogram
INDEX idx_attr_key mapKeys(Attributes) TYPE bloom_filter(0.01) GRANULARITY 1,
INDEX idx_attr_value mapValues(Attributes) TYPE bloom_filter(0.01) GRANULARITY 1
) ENGINE = MergeTree
TTL toDateTime(TimeUnix) + toIntervalDay(7)
TTL toDateTime(TimeUnix) + toIntervalDay(180)
PARTITION BY toDate(TimeUnix)
ORDER BY (ServiceName, MetricName, Attributes, toUnixTimestamp64Nano(TimeUnix))
SETTINGS index_granularity = 8192, ttl_only_drop_parts = 1;
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ CREATE TABLE IF NOT EXISTS otel_metrics_gauge
) ENGINE = MergeTree
PARTITION BY toDate(TimeUnix)
ORDER BY (ServiceName, MetricName, Attributes, toUnixTimestamp64Nano(TimeUnix))
TTL toDateTime(TimeUnix) + toIntervalDay(7)
TTL toDateTime(TimeUnix) + toIntervalDay(180)
SETTINGS index_granularity = 8192, ttl_only_drop_parts = 1;

0 comments on commit 509aecd

Please sign in to comment.