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

Fix k8s.cluster.name resource attribute for logs in GCP #771

Merged
merged 1 commit into from
May 4, 2023

Conversation

dmitryax
Copy link
Contributor

@dmitryax dmitryax commented May 4, 2023

#660 changed the order of resourcedetection and resource processors in the logs pipeline, while the other pipelines were unchanged. This order is crucial because the resourcedetection processor's gcp detector sets the k8s.cluster.name attribute, which we then override with the user-provided value in the resource processor. By keeping the resource processor after the resourcedetection processor, we ensure that k8s.cluster.name attribute is always set with the user-provided value.

This change ensures that the order of processors is consistent across all pipelines, guaranteeing that the k8s.cluster.name attribute is always set to the value provided in the clusterName field of the values.yaml file.

@dmitryax dmitryax requested review from a team as code owners May 4, 2023 06:12
Following the merge of signalfx#660, the `resource` processor in the logs pipeline was placed before the `resourcedetection` processor. In contrast, the other pipelines have the `resource` processor after the `resourcedetection` processor. This order is crucial in GCP because the `resourcedetection` processor's `gcp` detector sets the `k8s.cluster.name` attribute, which we then override with the user-provided value in the `resource` processor. By keeping the `resource` processor after the `resourcedetection` processor, we ensure that any `k8s.cluster.name` attribute is always set with the user-provided value.

This change was implemented to ensure that the order of processors is consistent across all pipelines, guaranteeing that the `k8s.cluster.name` attribute is always set to the value provided in the `clusterName` field of the values.yaml file.
@dmitryax dmitryax merged commit ea3c4f9 into signalfx:main May 4, 2023
@dmitryax dmitryax deleted the fix-k8s-cluster-name-gcp branch May 4, 2023 17:12
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