-
Notifications
You must be signed in to change notification settings - Fork 7
Labeling strategies to reduce cardinality LP #452
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
Open
Eve832
wants to merge
19
commits into
main
Choose a base branch
from
eve/labeling-strategy
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
05602cb
new labeling strategy LJ
Eve832 7a5fa6e
Add gateway collector enforcement pattern via Fleet Management
Eve832 dce4311
Merge branch 'main' into eve/labeling-strategy
jdbaldry cbcefd8
Merge branch 'main' into eve/labeling-strategy
jdbaldry d0e91ef
content review
Eve832 fd55821
change milestone name
Eve832 0d6443b
change toc name
Eve832 276c22a
Update labeling-strategy-lj/understand-cardinality/content.json
Eve832 5b8c3e1
Update labeling-strategy-lj/explore-your-cardinality/content.json
Eve832 7ee3fbd
Julie's suggestions
Eve832 e62a666
change dumb language
Eve832 9f72c1a
clarify log streams cost
Eve832 29173db
logs clarification
Eve832 54f17fd
more log stream clarification
Eve832 1d0e0db
small change
Eve832 3c670b5
autocollapse set to false
Eve832 0873168
remove stupid colons
Eve832 f5ae3ed
add exemplars
Eve832 4654957
moar colons
Eve832 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
90 changes: 90 additions & 0 deletions
90
labeling-strategy-lj/assets/images/label-multiplication.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions
60
labeling-strategy-lj/assets/images/log-stream-splitting.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions
42
labeling-strategy-lj/assets/images/unbounded-label-growth.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| { | ||
| "id": "labeling-strategy-business-value", | ||
| "title": "Understand the business value", | ||
| "blocks": [{ | ||
| "type": "markdown", | ||
| "content": "Labeling decisions are made at instrumentation time but billed at ingestion time, and there is often no way to easily determine the cost impact of those decisions. A team that enables a monitoring integration with all its defaults can multiply its telemetry volume overnight, because every combination of label values creates another unique series or stream to store and pay for." | ||
| }, | ||
| { | ||
| "type": "markdown", | ||
| "content": "This pattern is one of the most common causes of unexpected billing spikes: a team with a fixed monthly observability budget turns everything on, sends thousands of metrics it never queries, and exceeds its contract in a fraction of the expected time. The root cause is rarely one bad decision. It's the compounding effect of labels not chosen with deliberation." | ||
| }, | ||
| { | ||
| "type": "markdown", | ||
| "content": "A deliberate labeling strategy protects three things:\n\n- **Cost**: fewer unique label combinations means fewer active series and streams to pay for.\n- **Performance**: smaller indexes and fewer streams mean faster queries.\n- **Clarity**: labels chosen on purpose make your telemetry easier to navigate and attribute to teams." | ||
| }, | ||
| { | ||
| "type": "markdown", | ||
| "content": "This path gives you the mental model first, then the hands-on tools; you'll see the cardinality math, inspect your own stack, and learn the decision frameworks for metrics and logs." | ||
| } | ||
| ] | ||
| } | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "id": "labeling-strategy-business-value", | ||
| "type": "guide", | ||
| "description": "Learn why a deliberate labeling strategy protects your Grafana Cloud costs, query performance, and telemetry clarity.", | ||
| "category": "take-action", | ||
| "author": { | ||
| "name": "Eve832", | ||
| "team": "Grafana Documentation" | ||
| }, | ||
| "testEnvironment": { | ||
| "tier": "cloud" | ||
| }, | ||
| "depends": [], | ||
| "recommends": ["labeling-strategy-understand-cardinality"], | ||
| "suggests": [], | ||
| "provides": [] | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| menuTitle: Business value | ||
| weight: 100 | ||
| step: 2 | ||
| layout: single-journey | ||
| cta: | ||
| type: continue | ||
| keywords: | ||
| - labels | ||
| - cardinality | ||
| - cost-optimization | ||
| - business-value | ||
| description: Learn why a deliberate labeling strategy protects your Grafana Cloud costs, query performance, and telemetry clarity. |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.