$ grep 6d9aec330fc9094fea2effc9572a0286 /tmp/graphite-clickhouse28409542/graphite-clickhouse.log
{"level":"INFO","timestamp":"2022-11-11T00:45:21.436+0500","logger":"render.pb3parser","message":"pb3_target","request_id":"6d9aec330fc9094fea2effc9572a0286","from":1668109490,"until":1668109500,"maxDataPoints":0,"target":"seriesByTag('name=metric1', 'tag2=~value', 'tag3=value*')"}
{"level":"INFO","timestamp":"2022-11-11T00:45:21.436+0500","logger":"render.pb3parser","message":"pb3_target","request_id":"6d9aec330fc9094fea2effc9572a0286","from":1668109490,"until":1668109500,"maxDataPoints":0,"target":"seriesByTag('name=metric2', 'tag2=~value', 'tag4=value4')"}
{"level":"INFO","timestamp":"2022-11-11T00:45:21.439+0500","logger":"render","message":"query","request_id":"6d9aec330fc9094fea2effc9572a0286","query":"SELECT Path FROM graphite_tags WHERE (((Tag1='__name__=metric2') AND (arrayExists((x) -> x='tag4=value4', Tags))) AND (arrayExists((x) -> x LIKE 'tag2=%' AND match(x, '^tag2=.*value'), Tags))) AND (Date >='2022-11-11' AND Date <= '2022-11-11') GROUP BY Path FORMAT TabSeparatedRaw","written_rows":"0","written_bytes":"0","total_rows_to_read":"8192","read_rows":"18","read_bytes":"937","query_id":"6d9aec330fc9094fea2effc9572a0286::c96706e9825f2b95","time":0.002663623}
{"level":"INFO","timestamp":"2022-11-11T00:45:21.439+0500","logger":"render","message":"query","request_id":"6d9aec330fc9094fea2effc9572a0286","query":"SELECT Path FROM graphite_tags WHERE (((Tag1='__name__=metric1') AND (arrayExists((x) -> x LIKE 'tag3=value%', Tags))) AND (arrayExists((x) -> x LIKE 'tag2=%' AND match(x, '^tag2=.*value'), Tags))) AND (Date >='2022-11-11' AND Date <= '2022-11-11') GROUP BY Path FORMAT TabSeparatedRaw","read_rows":"18","read_bytes":"937","written_rows":"0","written_bytes":"0","total_rows_to_read":"8192","query_id":"6d9aec330fc9094fea2effc9572a0286::61c3c2e56dd401f9","time":0.002531045}
{"level":"INFO","timestamp":"2022-11-11T00:45:21.439+0500","logger":"render","message":"finder","request_id":"6d9aec330fc9094fea2effc9572a0286","metrics":0,"find_cached":false}
{"level":"INFO","timestamp":"2022-11-11T00:45:21.439+0500","logger":"http","message":"access","request_id":"6d9aec330fc9094fea2effc9572a0286","time":0.003153252,"method":"GET","url":"/render/?format=carbonapi_v3_pb","peer":"127.0.0.1:38704","client":"","status":404,"find_cached":false}
No metrics in tags table for 2022-11-11 (But exists for 2022-11-11. stored in UTC)
SQL) SELECT Date, Path FROM graphite_tags WHERE (((Tag1='__name__=metric2') AND (arrayExists((x) -> x='tag4=value4', Tags))) AND (arrayExists((x) -> x LIKE 'tag2=%' AND match(x, '^tag2=.*value'), Tags))) AND (Date >='2022-11-10' AND Date <= '2022-11-11') GROUP BY Date, Path
┌───────Date─┬─Path─────────────────────────────┐
│ 2022-11-10 │ metric2?tag2=value21&tag4=value4 │
└────────────┴──────────────────────────────────┘
{"level":"INFO","timestamp":"2022-11-11T00:58:30.452+0500","logger":"render","message":"query","request_id":"23a3047301886b6783ce867f75259878","query":"SELECT Path FROM graphite_index WHERE ((Level=10002) AND (Path LIKE 'plain.test%' AND
match(Path, '^plain[.]test(1|2)[.]?$'))) AND (Date >='2022-11-10' AND Date <= '2022-11-10') GROUP BY Path FORMAT TabSeparatedRaw","read_rows":"10","read_bytes":"258","written_rows":"0","written_bytes":"0","total_rows_to_read":"10","quer
y_id":"23a3047301886b6783ce867f75259878::12552dfcef4257fb","time":0.002248672}
Queries to index table with 2022-11-10
SQL> SELECT Date, Path FROM graphite_index WHERE ((Level=10002) AND (Path LIKE 'plain.test%' AND
match(Path, '^plain[.]test(1|2)[.]?$'))) AND (Date >='2022-11-10' AND Date <= '2022-11-11') GROUP BY Date, Path
┌───────Date─┬─Path────────┐
│ 2022-11-10 │ plain.test2 │
└────────────┴─────────────┘
Test run 2022-11-11 00:49 +06:00
No metrics in tags table for 2022-11-11 (But exists for 2022-11-11. stored in UTC)
Queries to index table with 2022-11-10