chore: add clickhouse as db for logs on agent and search
ci-agent / build (push) Failing after 22s

This commit is contained in:
d3m0k1d
2026-04-03 23:23:43 +03:00
parent 27e82f80f1
commit d96f952d73
9 changed files with 595 additions and 0 deletions
+13
View File
@@ -1,3 +1,16 @@
package storage
const CreateSqlite = ``
const CreateLogsTable = `
CREATE TABLE IF NOT EXISTS logs (
timestamp DateTime64(3) DEFAULT now(),
level LowCardinality(String),
service LowCardinality(String),
agent LowCardinality(String),
message String
) ENGINE = MergeTree()
ORDER BY (timestamp, level, service, agent)
TTL timestamp + INTERVAL 30 DAY
SETTINGS index_granularity = 8192
`