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

[internal/azure] Move cluster name discovery mechanism to an internal package #30834

Closed
dmitryax opened this issue Jan 29, 2024 · 7 comments
Closed

Comments

@dmitryax
Copy link
Member

dmitryax commented Jan 29, 2024

Extract the logic to fetch k8s.cluster.name from exporter/datadogexporter to internal/azure and use it in processor/resourcedetectionprocessor/internal/azure/aks.

See #29328 (comment) for more details

@dmitryax dmitryax added enhancement New feature or request exporter/datadog Datadog components needs triage New item requiring triage processor/resourcedetection/internal/azure labels Jan 29, 2024
Copy link
Contributor

Pinging code owners for exporter/datadog: @mx-psi @dineshg13 @liustanley @songy23 @mackjmr. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@dmitryax dmitryax changed the title [internal/azure] Move cluster name discover mechanism to an internal package [internal/azure] Move cluster name discovery mechanism to an internal package Jan 29, 2024
@jsirianni
Copy link
Member

Sounds good, will take care of it.

@crobert-1 crobert-1 added processor/resourcedetection Resource detection processor and removed needs triage New item requiring triage labels Jan 31, 2024
Copy link
Contributor

Pinging code owners for processor/resourcedetection: @Aneurysm9 @dashpole. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@jsirianni
Copy link
Member

@dmitryax I was taking a look at this and I am wondering where the new package should live? I cannot call resource detection's parse cluster name function (after exporting it) as it is part of an internal package.

package github.com/open-telemetry/opentelemetry-collector-contrib/exporter/datadogexporter/internal/hostmetadata/internal/azure
	provider.go:14:2: use of internal package github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/internal/azure/aks not allowed

Also, there are small differences between the two implementations. Resource detection is stricter and requires exactly four values after splitting the string. Datadog's implementation returns an error. Error handling won't be an issue but I am concerned about modifying datadog's cluster name handling.

@dmitryax
Copy link
Member Author

dmitryax commented Feb 6, 2024

It should be a new module called azure inside https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/internal. It'll be available for all the packages in this repo.

Try to consolidate the logic in a way that makes sense and let DataDog folks to review

Copy link
Contributor

github-actions bot commented Apr 8, 2024

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions github-actions bot added the Stale label Apr 8, 2024
Copy link
Contributor

github-actions bot commented Jun 7, 2024

This issue has been closed as inactive because it has been stale for 120 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants