PromQL to LogQL template based transpiler for qryn
- Experimental! Do not use it.
const { prom2log, prom2labels } = require('@qxip/promql2logql');
const logql = prom2log(promql);
const labels = prom2labels(promql);
Input:
rate(foo{"bar"="baz")[5m]) by (x,y)
Output:
rate({__name__="foo", bar="baz"} | unwrap_value [300s]) by (x,y)