Can I define tags based on environment variables?

Dynatrace allows users to define automated rule-based tags. In many cases, however, it’s more convenient to assign tags when your applications are initially deployed. Therefore, Dynatrace enables you also to define tags based on environment variables.

Define tags as environment variables

You can define an environment variable called DT_TAGS on the process or host level. The format of the variable is simple. The variable can contain simple strings or key/value pairs (for example, DT_TAGS=MikesStuff easyTravel=Mike). As you can see in the Windows process example below, you can define multiple tags. Spaces are used to separate tag values.

In the Dynatrace UI, the example environment variable shown above results in new filters being displayed on the related process overview page (see below). Process group overview pages display the sum of all the tags of all processes in the group.

This feature is currently only available for processes that are deep monitored via Dynatrace OneAgent (Java, Apache Webserver, Nginx, .NET, Node.js, PHP, Go, and IIS).