Skip to content

fix(pattern): Fix feature flag for enabling pattern persistence - #18216

Merged
paul1r merged 1 commit into
mainfrom
chaudum/fix-pattern-persistence-main
Jun 24, 2025
Merged

fix(pattern): Fix feature flag for enabling pattern persistence#18216
paul1r merged 1 commit into
mainfrom
chaudum/fix-pattern-persistence-main

Conversation

@chaudum

@chaudum chaudum commented Jun 24, 2025

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

PR #17737 introduced a feature to persist detected patterns on the pattern ingesters. And while there is a dedicated global config PatternPersistence and a per-tenant config PatternPersistenceEnabled, none of these were honoured, because for writing the patterns to the distributor, the same writer (and its config) as for persisting aggregated metrics is used. So, when aggregated metrics is enabled, also patterns were automatically written/persisted as well.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
@chaudum chaudum added type/bug Somehing is not working as expected backport k260 labels Jun 24, 2025
@paul1r
paul1r marked this pull request as ready for review June 24, 2025 19:52
@paul1r
paul1r requested a review from a team as a code owner June 24, 2025 19:52
@paul1r
paul1r merged commit c167800 into main Jun 24, 2025
@paul1r
paul1r deleted the chaudum/fix-pattern-persistence-main branch June 24, 2025 19:52
loki-gh-app Bot pushed a commit that referenced this pull request Jun 24, 2025
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
(cherry picked from commit c167800)
felix0102 pushed a commit to felix0102/loki that referenced this pull request Aug 2, 2026
…ana#18216)

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport k260 size/M type/bug Somehing is not working as expected

2 participants