08 Dec 2025
10:31 PM
- last edited on
17 Dec 2025
11:28 AM
by
Michal_Gebacki
Can I have static list of environment as a variable for segment?
Solved! Go to Solution.
10 Dec 2025 01:49 AM
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