Skip to content

sdojjy/presto-loki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

presto connector for loki

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published