Open Q&A
If there's no good subforum for your question - ask it here!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to relate OTEL metrics to entity

ronmacdonald
Organizer

We have an application instrumented with Dynatrace OneAgent looking to extend data capture.  They have added OTEL and are forwarding several custom metrics.  How is the OTEL configured that would enable the metrics to be related to the proper entity?  They would like to associate with the discovered service entity.

1 REPLY 1

Julius_Loman
DynaMight Legend
DynaMight Legend

This is accomplished by adding the entity attributes in the OTEL resource metadata. For example, setting the dt.entity.process_group_instance attribute with the PGI value or dt.entity.host with the Host ID. 

Look at the https://docs.dynatrace.com/docs/shortlink/otel-walkthroughs examples how to do that in different languages. Typically, the value is obtained from virtual files

However, there are cases when either the code cannot be changed or OneAgent cannot be injected for several reasons. Then, if you know the value (entity ids are static), you can add the values using OTEL_RESOURCE_ATTRIBUTES (if your app supports it) or in the pipeline using OpenTelemetry collector.

Dynatrace Ambassador | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts