-
Notifications
You must be signed in to change notification settings - Fork 521
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
Add toggle to inject the tenant ID to generated metrics #3638
Add toggle to inject the tenant ID to generated metrics #3638
Conversation
# If set, the tenant ID will added as label with the given label name to all generated metrics. | ||
[inject_tenant_id_as: <string>] |
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.
I'll be honest, I didn't really find a nice and concise way to describe this setting. Suggestion are welcome 😅
Also feedback about the name of the setting itself is welcome. It's a bit verbose now imo.
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.
I like it 👍
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.
Even if it's long, it's clear what it does.
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.
Nice feature and lgtm.
# If set, the tenant ID will added as label with the given label name to all generated metrics. | ||
[inject_tenant_id_as: <string>] |
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.
I like it 👍
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.
Approving for text and doc updates.
This PR must be merged before a backport PR will be created. |
08ab162
to
12ab9b7
Compare
Squashing so backport action can cherry pick the commit |
(cherry picked from commit 6206fcd)
What this PR does:
When a
inject_tenant_id_as
is set, the Tempo tenant ID is added to all metrics generated by the metrics-generator.E.g. if set to
__tempo_tenant
, metrics generated for tenantfoo
will all have the label__tempo_tenant="foo"
.I made the config a string so users can pick a value that doesn't conflict with other labels.
This should make Tempo metrics-generator more useful with a single-tenant metrics backend.
Which issue(s) this PR fixes:
Fixes #3630
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]