Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 694 Bytes

File metadata and controls

28 lines (25 loc) · 694 Bytes

presto-loki

presto connector for loki

Table

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                 
 )   

Query

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"}');

Configuration

loki.uri=http://localhost:3100
loki.query.chunk.size.duration=1h