When installing loki in podman I am not sure how to confirm if the loki-config.yaml I have on my system is being used in the container. I have run the setup as it is mentioned in the grafana installation using this command:
In rootless podman this command does not work but it will in rootfull. When I say that it works in rootfull I do not have any evidence that it actually used my custom config file.
I have one issue in my test environment which many posts have mentioned to add the following line to the config file: frontend:
max_outstanding_per_tenant: 2048
Either this fix does not work because the issue is still there or it is not reading my config file and still reading the default file when installing loki.
I am not sure. The issue didn’t go away and I have no way to verify that Loki is indeed using my config file. I tried to check the log but it doesn’t appear to provide information that it is. We are not using docker compose as we are configuring in podman based on install directions supplied by Grafana. Those do not seem to work unless you are in rootfull mode which defeats the purpose of using podman. Podman is new to us and we are just trying to get it all figured out.
Loki works and we can get logs. The issue we ran into is that all of the sudden the data in the dashboard goes away and we are left with the error : to many outstanding requests
The loki config file by default is not large but there are attributes that can be added apparently to build it out however you need it. One fix mentioned for this is to Increase max_outstanding_per_tenant to 2048. This was mentioned in https://github.com/grafana/loki/issues/4613
I have seen others report this issue with not much response. I am trying to see if this works for me but I am looking to find a way to show proof that Loki really is using the config file I give it and not its default config file. I suppose one way would be to create a volume that points to the directory loki stores the config file in. Once you run the container you would then see the config file in the volume. If you stopped the container then in theory you could change the config file and then start the container again. Down side to this option is that you need root access to do this. I also feel this may not be standard practice.