Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 716 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 716 Bytes

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)