Skip to content

metrico/promql2logql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prom2logql

PromQL to LogQL template based transpiler for qryn

Node.js CI

Status

  • Experimental! Do not use it.

Usage

const { prom2log, prom2labels } = require('@qxip/promql2logql');
const logql = prom2log(promql);
const labels = prom2labels(promql);

Example

Input:

rate(foo{"bar"="baz")[5m]) by (x,y)

Output:

rate({__name__="foo", bar="baz"} | unwrap_value [300s]) by (x,y)

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •