Repository navigation
docs: Clarify fake tenant ID for Ruler local storage in single tenant mode - #24300
Merged
JStickler merged 2 commits intoSep 8, 2026
Merged
Conversation
Contributor
Signed commits reportAll 2 commits between |
JStickler
approved these changes
Sep 8, 2026
JStickler
left a comment
Contributor
There was a problem hiding this comment.
[docs team] LGTM, thanks for taking the time to update the docs.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
The Ruler storage docs show a local storage layout of
/tmp/loki/rules/<tenant id>/, but never explain what<tenant id>is when Loki runs withauth_enabled: false. In that mode the tenant ID defaults tofake(-auth.no-auth-tenant), so rule files must be placed under<directory>/fake/— a fact users keep rediscovering the hard way (#5459, #4654, #4859).This PR:
<tenant id>must match the tenant ID the Ruler runs under, and that it defaults tofakein single tenant mode (configurable with-auth.no-auth-tenant)./tmp/loki/rules/fake/layout for the existing example.-ruler.storage.local.directory(rules read from here) is distinct fromrule_path(scratch space for temporary rule files).unable to read rule dir ...) until the directory is created.Docs-only change; no code behavior is modified. Re-submission of #24278 with an SSH-signed commit (branch protection requires verified signatures).
Which issue(s) this PR fixes:
Fixes #5459
Special notes for your reviewer:
fakedefault is verified againstpkg/loki/loki.go(default of the-auth.no-auth-tenantflag) and the local rule store, which reads<directory>/<userID>(pkg/ruler/rulestore/local/local.go,filepath.Join(l.cfg.Directory, userID)).local.gowraps theos.ReadDirerror (unable to read rule dir %s) and the Ruler sync loop logs it at error level (unable to list rules), retrying on every sync.rule_fileglob.Checklist
CONTRIBUTING.mdguide (required)docs/sources/setup/upgrade/_index.mddeprecated-config.yamlanddeleted-config.yamlfiles respectively in thetools/deprecated-config-checkerdirectory. Example PR