Slackbot
01/30/2023, 3:53 PMTimothy Wigginton
01/30/2023, 3:54 PM2023.01.30 15:50:37.313591 [ 7 ] {} <Error> Application: DB::Exception: Unknown storage policy `tiered`: Cannot attach table `signoz_logs`.`logs` from metadata file /var/lib/clickhouse/metadata/signoz_logs/logs.sql from query ATTACH TABLE signoz_logs.logs (`timestamp` UInt64 CODEC(DoubleDelta, LZ4), `observed_timestamp` UInt64 CODEC(DoubleDelta, LZ4), `id` String CODEC(ZSTD(1)), `trace_id` String CODEC(ZSTD(1)), `span_id` String CODEC(ZSTD(1)), `trace_flags` UInt32, `severity_text` LowCardinality(String) CODEC(ZSTD(1)), `severity_number` UInt8, `body` String CODEC(ZSTD(2)), `resources_string_key` Array(String) CODEC(ZSTD(1)), `resources_string_value` Array(String) CODEC(ZSTD(1)), `attributes_string_key` Array(String) CODEC(ZSTD(1)), `attributes_string_value` Array(String) CODEC(ZSTD(1)), `attributes_int64_key` Array(String) CODEC(ZSTD(1)), `attributes_int64_value` Array(Int64) CODEC(ZSTD(1)), `attributes_float64_key` Array(String) CODEC(ZSTD(1)), `attributes_float64_value` Array(Float64) CODEC(ZSTD(1)), `k8s_pod_name` String MATERIALIZED resources_string_value[indexOf(resources_string_key, 'k8s_pod_name')] CODEC(LZ4), `k8s_container_name` String MATERIALIZED resources_string_value[indexOf(resources_string_key, 'k8s_container_name')] CODEC(LZ4), INDEX body_idx body TYPE tokenbf_v1(10240, 3, 0) GRANULARITY 4, INDEX id_minmax id TYPE minmax GRANULARITY 1, INDEX trace_id_idx trace_id TYPE bloom_filter(0.01) GRANULARITY 64, INDEX span_id_idx span_id TYPE bloom_filter(0.01) GRANULARITY 64, INDEX k8s_container_name_idx k8s_container_name TYPE bloom_filter(0.01) GRANULARITY 64) ENGINE = MergeTree PARTITION BY toDate(timestamp / 1000000000) ORDER BY (timestamp, id) TTL toDateTime(timestamp / 1000000000) + toIntervalSecond(31104000), toDateTime(timestamp / 1000000000) + toIntervalSecond(604800) TO VOLUME 's3' SETTINGS index_granularity = 8192, storage_policy = 'tiered'
2023.01.30 15:50:37.313805 [ 7 ] {} <Information> Application: shutting down
2023.01.30 15:50:37.313978 [ 8 ] {} <Information> BaseDaemon: Stop SignalListener thread
2023.01.30 15:50:37.345957 [ 1 ] {} <Information> Application: Child process exited normally with code 70.
Ankit Nayan
show create signoz_logs.logs
cc: @Vishal Sharma can this be solved by running an alter query on clickhouse?Timothy Wigginton
01/30/2023, 4:42 PMshow create signoz_logs.logs
Ankit Nayan
.... ENGINE = MergeTree PARTITION BY toDate(timestamp / 1000000000) ORDER BY (timestamp, id) TTL toDateTime(timestamp / 1000000000) + toIntervalSecond(31104000), toDateTime(timestamp / 1000000000) + toIntervalSecond(604800) TO VOLUME 's3' SETTINGS index_granularity = 8192, storage_policy = 'tiered'
Timothy Wigginton
01/30/2023, 4:51 PMTimothy Wigginton
01/30/2023, 8:07 PMVishal Sharma
01/31/2023, 4:02 AMTimothy Wigginton
01/31/2023, 4:39 PMVishal Sharma
02/01/2023, 11:40 AMTimothy Wigginton
02/01/2023, 5:48 PMSigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc.
Powered by