-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Introduce policy stream mapping #15982
base: main
Are you sure you want to change the base?
Conversation
…na/loki into retention-as-label-when-discarding
87272ca
to
243f34e
Compare
…na/loki into add-stream-mapping-to-loki
💻 Deploy preview available: https://deploy-preview-loki-15982-zb444pucvq-vp.a.run.app/docs/loki/latest/ |
@@ -3927,6 +3927,9 @@ otlp_config: | |||
# CLI flag: -validation.enforced-labels | |||
[enforced_labels: <list of strings> | default = []] | |||
|
|||
# Map of policies to stream selectors with a priority. Experimental. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a default for this setting? (even if the default is nothing is set?)
Also, this could use an example in the description, since users might not know what a mapping should look like.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, default means no mapping and no policies assigned.
But good call, I'll improve the docs of this struct.
What this PR does / why we need it:
Introduces the idea of policies to Loki, which are recognizable based on the given stream selectors.
This is an improved version of #15561 and built on top of #15875.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Checklist
CONTRIBUTING.md
guide (required)feat
PRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.docs/sources/setup/upgrade/_index.md
deprecated-config.yaml
anddeleted-config.yaml
files respectively in thetools/deprecated-config-checker
directory. Example PR