-
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
docs: Update labels, add cardinality topic #15399
base: main
Are you sure you want to change the base?
Conversation
Really great write up on labels and cardinality. These are just a few points I noticed but they are only suggestions :) |
6f40023
to
307ad6d
Compare
💻 Deploy preview available: https://deploy-preview-loki-15399-zb444pucvq-vp.a.run.app/docs/loki/latest/ |
|
||
{{< admonition type="note" >}} | ||
[Structured metadata](https://grafana.com/docs/loki/<LOKI_VERSION>/get-started/labels/structured-metadata/) is a feature in Loki and Cloud Logs that allows customers to store metadata that is too high cardinality for log lines, without needing to embed that information in log lines themselves. | ||
It is a great home for metadata which is not easily embeddable in a log line, but is too high cardinality to be used effectively as a label. |
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.
Should it mention bloom filters here as well? The whole point of putting high cardinality fields into structured metadata is that you can filter them relatively efficiently using blooms.
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.
Good point. What do you suggest for wording?
Co-authored-by: Christian Haudum <christian.haudum@gmail.com>
What this PR does / why we need it:
Reorganizes and revises the Labels topic to take into account:
Adds a new topic for cardinality.