HELM Loki-stack: how to add custom loki.yaml config file

I am using loki-stack, but would like to use a loki.yaml config file similar to this documentation. Where can I specify where my loki.yaml config file is located?

Hi @fritzrehde,

Welcome to the :grafana: community support forums !!

If you are running on a local machine (not in a containerized environment), then I would say you can put anywhere you but in my test-vm, I put it inside /usr/local/bin/ (both Loki binary and its config file)

[root@grafana ~]# cd /usr/local/bin
[root@grafana ~]# ./loki-linux-amd64 -config.file=loki-local-config.yaml

I’m running in a containerized environment with the loki-stack helm chart, so I can’t specify a command line option.

I found this link where it seems to have the same custom configuration scenario:

Maybe this helps you as well once you point the installer to use your values.yaml ?