Open ivanmagdic opened 1 year ago
It would be great to describe that in documentation, per each storage provider. For example, in Azure you need to create a container per each bucket name.
Right now you can only guess that by accident or analyzing urls that Loki backend logs into stdout
The tricky part is that the Helm chart wraps the storage config, so it is not possible to just use the Loki docs on storage config. So as @kirll-lappo-dg7 suggested, if this is intentional, maybe just some docs are missing.
The implementation for Azure is here https://github.com/grafana/loki/blob/v3.0.0/production/helm/loki/templates/_helpers.tpl#L280 and I saw that the same is valid for S3 https://github.com/grafana/loki/blob/v3.0.0/production/helm/loki/templates/_helpers.tpl#L221 - Helm value bucket_name / bucketName are not required here (as opposed to configuring Loki without Helm).
The tricky part is that the Helm chart wraps the storage config, so it is not possible to just use the Loki docs on storage config. So as @kirll-lappo-dg7 suggested, if this is intentional, maybe just some docs are missing.
The implementation for Azure is here https://github.com/grafana/loki/blob/v3.0.0/production/helm/loki/templates/_helpers.tpl#L280 and I saw that the same is valid for S3 https://github.com/grafana/loki/blob/v3.0.0/production/helm/loki/templates/_helpers.tpl#L221 - Helm value bucket_name / bucketName are not required here (as opposed to configuring Loki without Helm).
Still you may specify more than one backet names, which will be used as container name as well (as far as I understood from error messages in Loki backend)
Describe the bug When defining 'container_name' in 'azure_storage_config' a provided name is not used, and instead a 'chunks' name is used for the container name. It seems to be inherited from 'loki.storage.bucketNames.chunks' because if you change that value, for example, if we set it to 'logs', that container name ('logs') is used in config.yaml.
To Reproduce Steps to reproduce the behavior:
Expected behavior A 'container_name' that is defined in 'azure_storage_config ' property should be used instead of 'loki.storage.bucketNames.chunks' to define container name.
Environment:
Screenshots, Promtail config, or terminal output When using following Helm'values.yaml':
loki 'config.yaml' is following:
If we change the Helm 'values.yaml':
the 'config.yaml' will be like following: