metrico / qryn

⭐️ All-in-One Polyglot Observability with OLAP Storage for Logs, Metrics, Traces & Profiles. Drop-in Grafana Cloud replacement compatible with Loki, Prometheus, Tempo, Pyroscope, Opentelemetry, Datadog and beyond :rocket:
https://qryn.dev
GNU Affero General Public License v3.0
1.24k stars 68 forks source link

topk / bottomk init #308

Closed akvlad closed 1 year ago

akvlad commented 1 year ago

https://github.com/metrico/qryn/issues/299

supported functions:

The function support is limited. The functions do not work with:

lmangani commented 1 year ago

Subtask for @Dletta

Dletta commented 1 year ago

Lab Tests confirm topK, bottomK works as expected.

Quantile_over_time, seems to want a specific set of data to run. I do see the following error:

18|qryn-dev  | 2023-03-02T21:55:28: Couldn't execute script:
18|qryn-dev  | 2023-03-02T21:55:28: Expected [ 'bottomk', or 'extract' ] @1:7 encountered 'le_over'.
18|qryn-dev  | 2023-03-02T21:55:28: quantile_over_time(0.95, bottomk(1, count_over_time({http=~"correct"} [5s])) [10s])
akvlad commented 1 year ago

screenshot-localhost_3000-2023 03 03-12_20_40

this is a response from a loki instance.