Is there a way to incresae log level in query-service and frontend pods? (we are working on older ve...
w
Is there a way to incresae log level in query-service and frontend pods? (we are working on older version before the functionality merge) - if yes, what I need to change in values.yaml to get it to work?
a
@WD did you try ?
Copy code
queryService:
  env:
    - name: LOG_LEVEL
      value: debug
This could be referenced elsewhere as (of course many ifs and buts): {{ .Values.queryService.env.LOG_LEVEL }} what frontend pod: techstack you have [nginx,node] ?
w
Frontend is the default SigNoz team created in the k8s chart
It seems it's nginx:
Copy code
/frontend # ps aux
PID   USER     TIME  COMMAND
    1 root      0:00 nginx: master process nginx -g daemon off;
    7 nginx     0:03 nginx: worker process
(multiple nginx worker processes)
   23 root      0:00 /bin/sh
   29 root      0:00 ps aux
/frontend
I tried what you pasted in query-service - it seems it didn't make any difference, only see INFO level;
{"level":"INFO","timestamp":"2025-04-14T07:06:35.511Z","caller":"app/server.go:398","msg":"/api/v1/health","timeTaken":0,"path":"/api/v1/health"}
a
Try kubectl exec -it <query-service-pod> -- printenv | grep LOG_LEVEL you should see debug or anything from values.yaml assuming: you did push helm upgrade helm upgrade signoz signoz/signoz -f values.yaml underpinning: we attempt to override at pod, nginx layer for old signoz query-service (Go based). query-service is straight forward, nginx is a bit of tweak, but works in the end. Haven’t found doc yet, /still looking/ eager and hope to see how your trial goes ahead!?
w
I'll try again with the LOG_LEVEL at query-service pod, maybe I did something wrong. (the printenv would show nothing as I already deleted the changes I did and currently I'm away from PC to make any changes/try again)
I've added LOG_LEVEL, printens shows it's applied to query-service but I don't really see more logs, esp. when I encounter API 500 in a dashboard:
Browser tools:
a
@Vibhu Pandey : can you help @WD here please? I can’t find any specific doc yet.