TLDR Alejandro needed help with data management in Clickhouse. Srikanth and vishal-signoz provided links and examples for implementing tag level TTL and data deletion.
See
Ahaa ok. I thought I have an option via SigNoz UI to clean data from determined date
On the other hand, is a way to say for example application with tag service name helloworld keep traces from last 15 days ?
Yes, there is some form of tag level TTL, but there is no way to do it from UI.
How can I do it ? Without the UI ?
through clickhouse command line
can you share that command ?
I know it exists but haven’t tried it ourselves.
Here’s an example Alejandro for the your case ```CREATE TABLE events ( `event` String, `time` DateTime, `value` UInt64 ) ENGINE = MergeTree ORDER BY (event, time) TTL time + INTERVAL 1 MONTH DELETE WHERE event != 'error', time + INTERVAL 6 MONTH DELETE WHERE event = 'error'```
Refer:
Follow this:
Alejandro
Thu, 11 May 2023 20:36:15 UTCLooks I have not space at clickhouse: ```Cannot reserve 1.00 MiB, not enough space``` how can i drop my data from clickhouse since x days?