Parameterize the domain of one synthetic monitor

Hi All,

We’re facing one problem - We’re going to create some synthetic monitors for some key pages both in our 2 environments (Testing environment and Production environment).

There’s only the domain is different for those 2 environments. All the others are same.

e.g. Homepage:    Testing Environment:  s1-live.abc.com

Production Environment: www.abc.com

Previously, we’ll both create synthetic monitors both in those 2 environments for homepage.
May I know if there’re any way in dynatrace to parameterize the domain, then we will no need to create synthetic monitors in 2 environments just only change the domain?

Hi,
unfortunately, I’m not aware of an option to parameterize the domain directly.
However, you can use Monaco/Terraform automation, where variables let you create a synthetic test. For example, use a base_url variable, and when you upload the configuration it will automatically take its value:
${base_url}/homepage

Alternatively, you can check here: Pre- and post-execution scripts for HTTP monitors in Classic — Dynatrace Docs