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

[resourcedetectionprocessor] Azure resource detector #2326

Closed
mx-psi opened this issue Feb 11, 2021 · 0 comments · Fixed by #2372
Closed

[resourcedetectionprocessor] Azure resource detector #2326

mx-psi opened this issue Feb 11, 2021 · 0 comments · Fixed by #2372

Comments

@mx-psi
Copy link
Member

mx-psi commented Feb 11, 2021

Is your feature request related to a problem? Please describe.

The resource detection processor has support for gathering metadata from AWS and GCE cloud services. It would be useful to also have support for Azure metadata: there are already some Azure-specific semantic conventions on the specification and it would make sense to add a detector for this platform too.

Describe the solution you'd like

Similarly to other cloud providers, Azure has the Instance Metadata Service where one can query information about a certain VM.

A new detector, azure is created to gather Azure VM instance metadata. Using the instance metadata the following fields could be set:

  • cloud.provider set to azure (if the query is successful),
  • cloud.account.id, the Azure subscription ID,
  • cloud.region and/or cloud.zone,
  • host.id, the Azure VM ID,
  • host.name and
  • host.type.

Describe alternatives you've considered

Create a new component only for Azure or query the endpoint directly from components that need it.

tigrannajaryan pushed a commit that referenced this issue Mar 3, 2021
Create Azure resource detector for gathering metadata from the [Azure IMDS](https://aka.ms/azureimds).

Due to Azure/azure-sdk-for-go#982 we have to query the endpoint manually.

**Link to tracking Issue:** Fixes #2326

**Testing:** Added unit tests. Tested end to end with provided sample configuration on an Azure VM.
pmatyjasek-sumo referenced this issue in pmatyjasek-sumo/opentelemetry-collector-contrib Apr 28, 2021
Create Azure resource detector for gathering metadata from the [Azure IMDS](https://aka.ms/azureimds).

Due to Azure/azure-sdk-for-go#982 we have to query the endpoint manually.

**Link to tracking Issue:** Fixes #2326

**Testing:** Added unit tests. Tested end to end with provided sample configuration on an Azure VM.
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 a pull request may close this issue.

1 participant