Container platforms
Questions about Kubernetes, OpenShift, Docker, and more.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Static list of environment as a variable for segment

susmita_k
Organizer

Can I have static list of environment as a variable for segment?

1 REPLY 1

Anderson-Luna
Dynatrace Enthusiast
Dynatrace Enthusiast

Hi Susmita

Yes, you can have a static list of environments as a variable for a segment in Dynatrace.

Dynatrace segments support variables whose values can be configured statically or dynamically. The static approach is ideal when your environment names (e.g., Production, Staging, Dev) are stable and do not need to be discovered from your data.

You define the static list of values directly using the Dynatrace Query Language (DQL) data command within the variable configuration.
The following DQL query defines a variable (let's call it $env_name) with a static list of three environments:

data
record(env_name="Production"), 
record(env_name="Staging"), 
record(env_name="Development")


You can also check the official documentation here

Best,
Anderson


Featured Posts