presto connector for loki
map loki date to one table
presto> show create table loki.default.loki;
Create Table
----------------------------------
CREATE TABLE loki.default.loki (
labels Label,
timestamp integer,
value varchar
)
use loki query_range and label predicate will be pushed down as a loki query parameter
example:
select * from loki.default.loki where timestamp > 1599575057 and timestamp <1599575157 and labels = label('{job="varlogs"}');
loki.uri=http://localhost:3100
loki.query.chunk.size.duration=1h