qryn icon indicating copy to clipboard operation
qryn copied to clipboard

/loki/api/v1/series API not respecting time range

Open qqu0127 opened this issue 5 months ago • 0 comments

Should be the cause for https://github.com/metrico/qryn/issues/554

My indirect observation:
From Grafana UI, adding native loki and qryn loki. On the explore page, specify the first label key and value, create one more label tab, click the second label drop down. Notice there is a

GET http://HOST_IP/api/datasources/uid/SOURCE_ID/resources/series?match[]={namespace="MY_NAMESPACE"}&start=1724995631446000000&end=1724997431447000000

Record the response values and length.
Modify the time range, make another query, compare it side by side with native Grafana loki. From native loki, the 2 series API call returns different results from different time range, while qryn loki returns the same.

Correct me if I'm wrong, it seems qryn doesn't fully respect the API protocol and shows different behavior from native loki. It seems to be loading all label / fingerprints from all time. Please let me know if this is intended. Thanks in advance.

qqu0127 avatar Aug 30 '24 06:08 qqu0127