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

[FeatureRequest] Matrix support for Charting in Grafana Explore #306

Closed timansky closed 1 year ago

timansky commented 1 year ago

There is a difference between loki and qryn query result when it is made in Grafana Explore. By default loki returns matrix, but qryn returns stream.

Matrix is used to visualise log volume by error level.

qryn loki

Matrix is already supported as i see in #18

akvlad commented 1 year ago

What is the version of grafana you use? Because in grafana v9.1.0-beta.1 I see this.

akvlad commented 1 year ago

screenshot-localhost_3000-2023 03 02-11_06_26

akvlad commented 1 year ago

grafana v9.4.2:

screenshot-localhost_3000-2023 03 02-11_15_01

timansky commented 1 year ago

Grafana v8.5.13, but i've tried latest 9.4.2 and result is same

loki

loki

qryn

qryn
akvlad commented 1 year ago

I don't know without looking into the logs you have.

Do you expose log levels as labels? Can you check {dc="alakt", level="error"} in qryn? The volume chart does nothing but runs a query sum by (level) (count_over_time({dc="alakt"}[1m])) . Please check it as well.

lmangani commented 1 year ago

@timansky you need to parse the JSON logs or have the level tags in place for this to work and we don't know your data so we cannot guess if this is related. This said, the Grafana approach forcing parsing/display easily abuses the backend, which we do not necessarily like or approve of as a default behaviour.

timansky commented 1 year ago

My mistake, found miss config in log sending