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

Allow overriding location, cluster, and namespace using metric labels #399

Merged
merged 2 commits into from May 23, 2022

Conversation

dashpole
Copy link
Contributor

With GMP, if you set "location", "cluster" or "namespace" labels on your metrics, they are moved to the monitored resource from the set of labels.

To achieve the same behavior in the otel collector, use a processor to move those labels from metric to resource, and then map those from otel resource to monitored resource. They take precedence over other ways of setting those labels (i.e. a "namespace" label on a KSM metric will be used over the namespace of the KSM exporter.

cc @xichen2020

@dashpole dashpole marked this pull request as ready for review May 20, 2022 18:32
Copy link

@xichen2020 xichen2020 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dashpole dashpole merged commit e2cce7b into GoogleCloudPlatform:main May 23, 2022
@dashpole dashpole deleted the gmp_namespace branch May 23, 2022 13:20
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.

None yet

2 participants