23 Sep 2025
10:12 AM
- last edited on
24 Sep 2025
07:26 AM
by
MaciejNeumann
Hello,
we would like to do URL(HTTP) monitoring with Dynatrace, where we have 2 URLs(URL X & URL Y) but one(URL X) will be UP most of time and other (URL Y) will be UP only when (URL X) will be down and having some issues.
How can we achieve the monitoring for the 2 URLs, Could you please share if there is a way/Idea to do active & passive monitoring.
Regards,
Bramha
23 Sep 2025 10:25 AM
Hi,
Looks like a use case to automate using workflows. When event from URL X is down, workflow should enable URL Y.
Best regards
23 Sep 2025 11:56 AM
Hi,
In Dynatrace Managed there is no native option for active/passive URL monitoring (i.e., monitor URL X, and only if it fails then start monitoring URL Y). Synthetic monitors treat each endpoint independently.
Typical workarounds:
1. Two separate HTTP monitors
One monitor for URL X (active).
One monitor for URL Y (passive).
You can group them under the same alerting profile or management zone.
Unfortunetly both will run on schedule in parallel, not conditionally.
2. External “router” / healthcheck endpoint
Create a simple service (e.g., Nginx, HAProxy, or script) that decides which URL is currently active (X or Y).
Dynatrace monitors only that single endpoint.
The failover logic sits outside Dynatrace.
3. API or Monaco automation
Build an automation (using the Dynatrace Synthetic Monitors API or Monaco) that:
checks the status of URL X (via API or problem feed),
enables/disables the Synthetic monitor for URL Y accordingly.
This can be done with a cron job or external script.
4. Workflows (Dynatrace SaaS only)
In SaaS you could use Workflows to define: “If problem detected on URL X → trigger a check on URL Y.”