-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[exporter/datadog] Add support for custom list of attribute
-> tag
conversion
#15387
Comments
Hi @carlreid, thanks for the issue, this is the right place to ask this if this is about the Datadog exporter. To help you further, I would need to know what telemetry signal is this about: is it about traces, metrics or logs? To be clear, you can probably do this already with the help of a processor, but I need a bit more info to be able to help you. |
Hey @mx-psi, great this is the right place then 😊 For us, we'd like anything that can be tagged, to have these tags. Though for now, this is more in focus on logs as my organization is currently only indexing logs that meet specific requirements, which includes certain non-standard (as in Datadog standard) tags. We do already use processors (attributes and resource) to enrich with attributes such as Do you see a way that a custom tag could be added via processors in this scenario? |
👍 Thanks for details. I am going to ping @dineshg13 about this then for the logs-specific question. As a side note and while you wait, since you have some interest about other types, I want to note that for metrics you can enable the |
@carlreid if you set a attribute |
Hey @dineshg13 🙂 I guess that could work. Though it would likely mean we'd need to duplicate the log pipelines so that the I guess I'll leave it up to you guys whether this should remain an open issue or not. I don't know enough if it should be a processor or exporter problem with this mapping when it comes to the OpenTelemtry set up 😁 |
An update @dineshg13. I just tried: Edit: transform/datadog:
logs:
statements:
- set(attributes["ddtags"], Concat("", "team:", resource.attributes["team"])) where resource.attributes["team"] != nil Since we already use the attributes processor to enrich the resource, then we can just pull the value from there, and run the However, although I can see my tag, all the other tags that get pulled automatically like the I guess setting the |
@carlreid Whats the order or |
@dineshg13 It's looking like: logs/datadog:
receivers:
- otlp
processors:
- resource/min-required-attributes
- transform/datadog
- memory_limiter
- batch
exporters:
- datadog I would need the resource processor first (not the Then |
ye. you are right. This looks like a bug in the Datadog exporter. We will patch it soon |
Is your feature request related to a problem? Please describe.
While it's great that the Datadog exporter is mapping from the OpenTelemetry conventions, it seems that it is not possible to enrich telemetry with tags from the exporter on the collector.
Describe the solution you'd like
An option key/value pairing on the exporter to define an
attribute
->tag
mapping. It could be something like:Describe alternatives you've considered
It seems like this mapping could also be achieved on Logging Pipelines. Would be preferable to keep all the configuration in the one exporter definition for us however. Likewise, it may be that there is agreement to use one specific tag, but each sender would source it from a different attribute, and a pipeline would need to be configured for all of those.
Additional context
I'm not sure if these request should be on Datadog Agent, as that's where some changes will be required for this to be implement I guess.
The text was updated successfully, but these errors were encountered: