Skip to content
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

receive/handler: update tenant label #83

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

GiedriusS
Copy link
Collaborator

After relabeling_configs section Prometheus drops all labels that start with __. Technically we could move adding of __meta_tenant_id to metric_relabel_configs but then meta-metric like up and others do not have that __meta_tenant_id because, apparently, Prometheus takes labels from after the relabel_configs section. Hence, let's just add something human-readable. It doesn't matter much either way to the user because this label gets removed.

After relabeling_configs section Prometheus drops all labels that start
with `__`. Technically we could move adding of `__meta_tenant_id` to
`metric_relabel_configs` but then meta-metric like `up` and others do
not have that `__meta_tenant_id` because, apparently, Prometheus takes
labels from after the `relabel_configs` section. Hence, let's just add
something human-readable. It doesn't matter much either way to the user
because this label gets removed.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
@GiedriusS GiedriusS merged commit 03dc1a8 into 0.34.0+vinted Jan 31, 2024
12 checks passed
@GiedriusS GiedriusS deleted the receive_update_label branch January 31, 2024 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants