Hurence / historian

big data timeseries historian
Apache License 2.0
4 stars 1 forks source link

add filtering to promql dialect #199

Open oalam opened 3 years ago

oalam commented 3 years ago

Filtering series by value

Only keep series with a sample value greater than a given number:

node_filesystem_avail_bytes > 10*1024*1024

Only keep series from the left-hand side whose sample values are larger than their right-hand-side matches:

go_goroutines > go_threads

Instead of filtering, return 0 or 1 for each compared series:

go_goroutines > bool go_threads

Match only on specific labels:

go_goroutines > bool on(job, instance) go_threads

Available comparison operators: ==,!=, >,<, >=, <=