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

Otel resource attribute cloud.availability_zone mapped to "zone" tag not "availability-zone" tag #214

Open
ringerc opened this issue Dec 8, 2023 · 3 comments

Comments

@ringerc
Copy link

ringerc commented Dec 8, 2023

conventions.AttributeCloudAvailabilityZone: "zone",

This mapping sends cloud.availability_zone as the datadog tag zone. But the docs it links to, https://www.datadoghq.com/blog/tagging-best-practices/, say that the tag name should be availability-zone.

One of them is presumably wrong.

The host inventory uses availability-zone so unless the metrics backend on DD uses zone instead for some reason, this code might be mistaken/outdated.

@ringerc
Copy link
Author

ringerc commented Dec 13, 2023

Discussed with DD support. The support team says that "availability-zone" is just the default tag used in the host infra view, and is only used for AWS anyway. So they don't consider sending zone on metrics vs the UI expecting availability-zone in the host inventory to be an issue.

But the code is still inconsistent with the docs it links to and the UI's expectations.

I took a quick look at the DD agent code but couldn't immediately see which it sends. I did notice that in my production account the agent isn't sending any cloud AZ info at all for my Azure hosted nodes; there's no cloud metadata attached to the metrics at all, only kube metadata.

@atmask
Copy link

atmask commented Mar 25, 2024

Has there been any resolution as to how to set the availability-zone in the infrastructure map view? I am currently passing the zone under the resource attribute cloud.availability_zone, cloud.availability-zone, and cloud.zone. If I just have cloud.availability_zone it gets mapped to the tag zone but not availability

@ringerc
Copy link
Author

ringerc commented Jul 28, 2024

From my last conversations with DD folks before I dropped my use of the product there was no fix for this.

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

No branches or pull requests

2 participants