Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Version incompatibility with modern Grafana #170

Open
rmdmattingly opened this issue Oct 3, 2024 · 0 comments
Open

Version incompatibility with modern Grafana #170

rmdmattingly opened this issue Oct 3, 2024 · 0 comments

Comments

@rmdmattingly
Copy link

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:

  1. Install Grafana 10.x
  2. Install Loki add-on
  3. Attempt to add the data source
  4. 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):

  • Add-on version: 1.11.2
  • Operating system HA OS 13.1
  • HA Core: 2024.9.1

Additional context
N/A

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant