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

[processor/resourcedetectionprocessor] add k8snode detector #26524

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

dloucasfx
Copy link
Contributor

Description:
Adding k8snode detector to the resourcedetection processor.
We currently have no way to attach the k8s node UID attribute to logs/metrics/traces , this detector allows such an attribute to be added.
Note: We can add more node attributes if needed, but atm only k8s.node.uis is added

Link to tracking Issue:

Testing:
Unit test, mock tests and manual validation

Documentation:
See Readme

@dloucasfx dloucasfx requested a review from a team September 7, 2023 23:42
@github-actions github-actions bot added cmd/otelcontribcol otelcontribcol command internal/metadataproviders processor/resourcedetection Resource detection processor labels Sep 7, 2023
@dloucasfx dloucasfx force-pushed the resourcedetection_k8snode branch 3 times, most recently from 488d4c1 to 0c74b08 Compare September 8, 2023 14:35
@dloucasfx dloucasfx force-pushed the resourcedetection_k8snode branch 2 times, most recently from caff211 to 5d5dc7e Compare September 8, 2023 16:14
@github-actions github-actions bot added the exporter/datadog Datadog components label Sep 8, 2023
@dloucasfx dloucasfx force-pushed the resourcedetection_k8snode branch from 5d5dc7e to 3274bdf Compare September 8, 2023 16:37
@dmitryax
Copy link
Member

dmitryax commented Sep 8, 2023

@dloucasfx please rebase

@dloucasfx dloucasfx force-pushed the resourcedetection_k8snode branch 8 times, most recently from 093e05b to f7022db Compare September 13, 2023 17:57
@dloucasfx dloucasfx force-pushed the resourcedetection_k8snode branch 3 times, most recently from b8ba4ec to a6a1d2f Compare September 17, 2023 16:36
@dmitryax dmitryax added the ready to merge Code review completed; ready to merge by maintainers label Sep 18, 2023
@dmitryax
Copy link
Member

@dloucasfx LGTM. Please rebase once more

@dloucasfx dloucasfx force-pushed the resourcedetection_k8snode branch 2 times, most recently from 1ac1d25 to d276719 Compare September 19, 2023 17:19
@dmitryax
Copy link
Member

@dloucasfx it needs another rebase :(

@dloucasfx dloucasfx force-pushed the resourcedetection_k8snode branch from 6db8ffb to 6a322e8 Compare September 25, 2023 14:18
@dloucasfx dloucasfx force-pushed the resourcedetection_k8snode branch from 6a322e8 to 1fc5dd5 Compare September 25, 2023 14:35
@dmitryax dmitryax merged commit b7ea607 into open-telemetry:main Sep 25, 2023
91 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 25, 2023
jmsnll pushed a commit to jmsnll/opentelemetry-collector-contrib that referenced this pull request Nov 12, 2023
…emetry#26524)

**Description:** <Describe what has changed.>
Adding k8snode detector to the resourcedetection processor.
We currently have no way to attach the k8s node UID attribute to
logs/metrics/traces , this detector allows such an attribute to be
added.
Note: We can add more node attributes if needed, but atm only
`k8s.node.uis` is added

Signed-off-by: Dani Louca <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd/otelcontribcol otelcontribcol command exporter/datadog Datadog components internal/metadataproviders processor/resourcedetection Resource detection processor ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants