helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

Bug with loki-stack chart while adding datasource

Open dikshant-devops opened this issue 1 year ago • 8 comments
trafficstars

Hi, I am creating this issue to let you know that with recent version, I tried adding datasource in separate grafana as http://loki:3100 and try to save and test but it fails with error "Unable to connect with Loki. Please check the server logs for more details." but I am able to see logs in dashboard. This is happening in GKE and kind cluster both as testing environment. Please take a look as so many can get confused with this.

Getting below error in grafana pods "logger=tsdb.loki endpoint=checkHealth pluginId=loki dsName=loki dsUID=cdn1r5hikan7kc uname=admin fromAlert=false t=2024-05-30T11:24:42.682252191Z level=info msg="Prepared request to Loki" duration=23.256µs queriesLength=1 stage=prepareRequest runInParallel=false logger=tsdb.loki endpoint=checkHealth pluginId=loki dsName=loki dsUID=cdn1r5hikan7kc uname=admin fromAlert=false t=2024-05-30T11:24:42.861757897Z level=error msg="Error received from Loki" duration=179.38691ms 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=loki.monitoring.svc.cluster.local:3100 lokiPath=/loki/api/v1/query status=error error="parse error at line 1, col 1: syntax error: unexpected IDENTIFIER" statusSource=downstream logger=tsdb.loki endpoint=CheckHealth t=2024-05-30T11:24:42.861870966Z level=error msg="Loki health check failed" error="error from loki: parse error at line 1, col 1: syntax error: unexpected IDENTIFIER" logger=context userId=1 orgId=1 uname=admin t=2024-05-30T11:24:42.861963433Z level=info msg="Request Completed" method=GET path=/api/datasources/uid/cdn1r5hikan7kc/health status=400 remote_addr=127.0.0.1 time_ms=181 duration=181.02212ms size=106 referer=http://localhost:3001/connections/datasources/edit/cdn1r5hikan7kc handler=/api/datasources/uid/:uid/health status_source=server"

dikshant-devops avatar May 30 '24 11:05 dikshant-devops

I just got the same issue, the endpoint returns a parser error while we can still send query to the data source.

spuyet avatar Jun 04 '24 14:06 spuyet

looks like loki-stack is not being maintained properly.

dikshant-devops avatar Jun 04 '24 17:06 dikshant-devops

loki-stack is deprecated

Sheikh-Abubaker avatar Jun 17 '24 16:06 Sheikh-Abubaker

@Sheikh-Abubaker Is there any successor to loki-stack? If not, does anyone know a good and helm driven way to add loki to my kube-prometheus-stack?

EHJ-52n avatar Sep 10 '24 13:09 EHJ-52n

@EHJ-52n try using loki

Sheikh-Abubaker avatar Sep 10 '24 13:09 Sheikh-Abubaker

but then the Chart should be updated with deprecated: true

erkules avatar Sep 10 '24 15:09 erkules

loki-stack is deprecated

Will there be migration documentation to move from loki-stack?

lavahot avatar Sep 18 '24 22:09 lavahot

loki-stack 已弃用

loki-stack is deprecated, is this news from grafana official?

csyyy106 avatar Oct 16 '24 11:10 csyyy106

loki-stack is deprecated

The official Loki documentation still references the loki-stack Helm chart for installing monolithic Loki on Kubernetes: https://grafana.com/docs/loki/latest/setup/install/helm/install-monolithic/

This should be changed.

marratj avatar Nov 14 '24 10:11 marratj

loki-stack is deprecated

The official Loki documentation still references the loki-stack Helm chart for installing monolithic Loki on Kubernetes: https://grafana.com/docs/loki/latest/setup/install/helm/install-monolithic/

This should be changed.

Uh... that took forever to debug before reading this. This line is still to be fixed ASAP.

Deploy Loki using the configuration file values.yaml: helm install loki grafana/loki-stack -f values.yaml

RassK avatar Nov 21 '24 00:11 RassK

i got the same issue.

ghost avatar Jan 03 '25 06:01 ghost

I faced the same error. It is due to the loki-stack helm chart is not updated with the correct image version.

As mentioned here https://github.com/grafana/helm-charts/issues/3507 , update the container image version to 2.9.3 in the statefulset object and it will be good to go.

Please update the helm chart with correct app version accordingly.

senthilnathan-am avatar Jan 07 '25 10:01 senthilnathan-am

The loki-stack chart is deprecated and no longer maintained. Please migrate to the actively maintained Loki chart referenced in https://github.com/grafana/helm-charts/pull/3974, Closing this issue as not planned.

Sheikh-Abubaker avatar Nov 01 '25 13:11 Sheikh-Abubaker