loki
loki copied to clipboard
Loki config to see also runtime configuration
Description
/config
of Loki read and write targets usually show the entire config used by Loki. However the fields set with runtime configuration do not appear with /config
endpoint
Steps to Reproduce
- Bring up Loki with simple scalable mode of read and write; Inject runtime configuration for "deletion_mode: disabled"
- Hit
/config
of either read and write targets endpoint - Search for deletion_mode text
Expected behavior "deletion_mode" under limits_config is supposed to contain disabled but still the default value of "filter-and-delete" is present
Environment:
- GKE
- kustomize
- Loki version 2.8.2
Screenshots
I have also encountered this unexpected behaviour using kubernetes helm chart 5.15.0 (loki version 2.8.4) and using loki as a single instance. Setting retention_period in runtime configuration seems to work fine (older records are deleted) but config endpoint does not honor it.
the config should reflect the entire config including runtimes or create a new endpoint for runtime like mimir has /runtime_config
is there a way to configure the runtime config in the values.yaml file or generally how its configured. I can see in the pods /etc/loki/runtime_config but its empty