Describe the bug
I believe the version of Loki is out of sync with modern Grafana. When adding my Loki 1.11.2 installation as a data source on Grafana 10.1.1, I ran into the following bug (from Grafana's service logs):
logger=tsdb.loki endpoint=CheckHealth endpoint=checkHealth pluginId=loki dsName=loki-2 dsUID=fdzsbpc3fbcowa uname=admin fromAlert=false t=2024-10-03T15:33:01.869081357-04:00 level=error msg="Error received from Loki" duration=80.778118ms stage=databaseRequest statusCode=400 contentLength=65 start=1970-01-01T00:00:01Z end=1970-01-01T00:00:04Z step=1s query=vector(1)+vector(1) queryType=instant direction=backward maxLines=0 supportingQueryType=none lokiHost=39bd2704-loki:3100 lokiPath=/loki/api/v1/query status=error error="parse error at line 1, col 1: syntax error: unexpected IDENTIFIER" statusSource=downstream
parse error at line 1, col 1: syntax error: unexpected IDENTIFIER being the interesting part. Googling around, this appears to be a common compatibility issue between older versions of Loki and newer versions of Grafana.
To Reproduce
Steps to reproduce the behavior:
Install Grafana 10.x
Install Loki add-on
Attempt to add the data source
Read the Grafana service logs
Expected behavior
A working data source
Logs
logger=tsdb.loki endpoint=CheckHealth endpoint=checkHealth pluginId=loki dsName=loki-2 dsUID=fdzsbpc3fbcowa uname=admin fromAlert=false t=2024-10-03T15:33:01.869081357-04:00 level=error msg="Error received from Loki" duration=80.778118ms stage=databaseRequest statusCode=400 contentLength=65 start=1970-01-01T00:00:01Z end=1970-01-01T00:00:04Z step=1s query=vector(1)+vector(1) queryType=instant direction=backward maxLines=0 supportingQueryType=none lokiHost=39bd2704-loki:3100 lokiPath=/loki/api/v1/query status=error error="parse error at line 1, col 1: syntax error: unexpected IDENTIFIER" statusSource=downstream
Environment (please complete the following information):
Describe the bug I believe the version of Loki is out of sync with modern Grafana. When adding my Loki 1.11.2 installation as a data source on Grafana 10.1.1, I ran into the following bug (from Grafana's service logs):
parse error at line 1, col 1: syntax error: unexpected IDENTIFIER
being the interesting part. Googling around, this appears to be a common compatibility issue between older versions of Loki and newer versions of Grafana.To Reproduce Steps to reproduce the behavior:
Expected behavior A working data source
Logs
Environment (please complete the following information):
Additional context N/A