@qxip/promql2logql
v1.0.30
Published
Basic PromQL to LogQL transpiler for qryn
Downloads
15
Readme
prom2logql
PromQL to LogQL template based transpiler for qryn
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)