28 Oct 2024 06:54 PM - last edited on 29 Oct 2024 07:23 AM by MaciejNeumann
Hi all,
Had a question regarding synthetic monitoring and clickpath events- In one of my clickpaths, there is an event that occasionally takes a while to load. I set up next event trigger to wait for 60s (max time available), but this error still persists. Is there anyway to exceed 60s as the max time? Image for reference
28 Oct 2024 10:02 PM
by default, the next action doesn't begin until the current is completed as it Wait for page to load completely waits for network activity to be completed after the load event is triggered, by default it wait for 60s approximately the workaround is to use API to force update your clickpath event wait time globally to be more than this number.
{
"bmMonitorTimeout": 300000,
"bmStepTimeout": 60000
}
body parameters:
1. bmMonitorTimeout: browser monitor execution timeout (ms) - default 300000 (5 minutes)
2. bmStepTimeout: browser monitor single step execution timeout (ms) - default 60 seconds
for more details check these links
https://docs.dynatrace.com/docs/shortlink/id-brower-clickpath-events#wait
https://docs.dynatrace.com/docs/shortlink/api-synthetic-v2-config-put
BR,
Mostafa Hussein.
29 Oct 2024 01:17 PM - edited 29 Oct 2024 01:17 PM
@MostafaHussein Sorry, I am relatively new to using Dynatrace. How would I use the API in the clickpath event?
29 Oct 2024 03:56 PM
Hello @vuthayak
As described by @MostafaHussein
First of all if you have cluster admin permission you will be able to execute the below steps, otherwise ask DT admin provides you with change monitoring settings on the target monitoring environment to be capable of running the attached commands.
"Updates set of synthetic related parameters defined for whole tenant (affects all monitors and all private locations)."
{ "bmMonitorTimeout": 900000, "bmStepTimeout": 180000 }
Then execute.
After successful execution the attached response code should appear.
Code | Description |
204 | Success. The set of synthetic related parameters has been updated |
Tip:
Hopefully it helps.
KR,
Peter.
29 Oct 2024 04:05 PM
thanks @Peter_Youssef, wonderful explanation.
29 Oct 2024 04:02 PM - edited 30 Oct 2024 06:13 AM
hello @vuthayak ,
- the configuration level is the environment so you'll set the default values over all synthetic monitors
- download Postman and follow the screenshot
1. go to `Access Tokens` in the left menu, then create new one with this permission `syntheticLocations.write` once created copy it to text file to be used later, see the following 2 figures
2. open Postman, add new request, use your environment URL and set the method to PUT as the following figure, to use the mentioned endpoint 'api/v2/synthetic/config' you should add it to your environment base URL as shown below
3. move to Body tab then select raw and use the body as below format then edit the values as mentioned in my last reply
4. move to headers tab and add the Authorization in this format 'Api-Token {place-your-token}'
5. just click `Send` once did, you'll get response code 204 with no content that indicates it's sent successfully.
BR,
Mostafa Hussein.