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

Region information is AKS and EKS #26688

Closed
prudhvi-hasura opened this issue Sep 14, 2023 · 5 comments
Closed

Region information is AKS and EKS #26688

prudhvi-hasura opened this issue Sep 14, 2023 · 5 comments
Labels
enhancement New feature or request needs triage New item requiring triage processor/resourcedetection Resource detection processor question Further information is requested Stale waiting for author

Comments

@prudhvi-hasura
Copy link

Component(s)

processor/resourcedetection

Describe the issue you're reporting

Hi, I went through the documentation and observed that cloud.region is not exposed for AKS and EKS.

  • Is there any particular reason for not exposing this information ?
  • Is there any possible way to get region information with current resource detection
  • If its not possible to get region, are there any other alternatives to achieve this funcationality ?
@prudhvi-hasura prudhvi-hasura added the needs triage New item requiring triage label Sep 14, 2023
@github-actions github-actions bot added the processor/resourcedetection Resource detection processor label Sep 14, 2023
@github-actions
Copy link
Contributor

Pinging code owners:

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

@crobert-1 crobert-1 added the enhancement New feature or request label Sep 14, 2023
@jinja2
Copy link
Contributor

jinja2 commented Sep 14, 2023

@prudhvi-hasura cloud.region is added by the respective provider's instance metadata detector. So for your use case, take a look at the ec2 and azure detectors. An e.g. config will look like

resourcedetection:
  detectors:
  - eks
  - ec2
  ec2:
    resource_attributes:
      cloud.region:
        enabled: true
      cloud.account.id:
        enabled: false
      cloud.availability_zone:
        enabled: false
      host.type:
        enabled: false
      host.name:
        enabled: false

@crobert-1
Copy link
Member

@prudhvi-hasura Have you been able to try what @jinja2 has suggested yet?

Copy link
Contributor

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:

  • processor/resourcedetection: @Aneurysm9 @dashpole
  • needs: Github issue template generation code needs this to generate the corresponding labels.

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

@github-actions github-actions bot added the Stale label Nov 20, 2023
@crobert-1
Copy link
Member

I'm going to close for now based on @jinja2's suggestions. @prudhvi-hasura Please feel free to let us know if this didn't work, or does not answer your question. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage New item requiring triage processor/resourcedetection Resource detection processor question Further information is requested Stale waiting for author
Projects
None yet
Development

No branches or pull requests

3 participants