victorialogs-datasource: Time Series panel bug, when using quantile() or count() with stats()
Hi, I’m using the next stack and their version: Grafana - v11.2.3 Victoria Logs - v1.12.0 Victoria Logs Grafana Datasource - v0.15.0
When I’m using such query in Grafana Time Series panel namespace:= "ingress-nginx" AND cluster: "eks-prod-eu-west-3" | unpack_json | keep ingress_host,upstream_response_time,path | path:!~ "/files|/content|/blog|/assets" | stats by(path,ingress_host) quantile(0.95, upstream_response_time) p95 | p95:>1 I’m seeing in Grafana just dot’s all the time, instead of graph accross time ranges
The same query but in Vlogs UI seems more workable:
Futhermore values in Grafana tottally differ from values in Vlogs UI. In Vlogs UI they are more true, because logs are corelating with p95 values, but in Grafana they are very low.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 60 (27 by maintainers)
Before pipes
When using unpack_json
When using
keepoperatortimestampfield is removedAnd all values are returned like simple logs. Plugin behaves as expected.
If it is ok for you, please close the issue.
oh, understood… so sorry for such long investigation, so no bug from your side, I appologize
Also dots problem, instead of range graph has even simple count() function
namespace:= "ingress-nginx" AND cluster:= "eks-prod-eu-west-3" | unpack_json | country:!"-" AND ingress_host:= "test.com" | keep ingress_host,country | stats by (country) count()as I see all problems comes from stats()
Just friendly reminder
To build the graph like time range, the response from the VictoriaLogs itself needs to contain the timestamps, but for your request, it returns only just the values but not timestamps. I need to check how to modify your query or maybe we have a bug inside VictoriaLogs itself
I see that the vmui uses the hits API response, but when you try to make the request to the range in the plugin, it requests the stats_range API. Need to check logic behind, will be back soon. Thanks for your logs and screens