Skip to content

About

presto connector for loki

Resources

Stars

4 stars

Watchers

2 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

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

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages