cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extending wait time for synthetic monitor clickpath events

vuthayak
Newcomer

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

vuthayak_0-1730141592377.png

 

5 REPLIES 5

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.

Certified Dynatrace Professional | Certified Dynatrace Services - Observability | Dynatrace Partner yourcompass.ca

vuthayak
Newcomer

@MostafaHussein Sorry, I am relatively new to using Dynatrace. How would I use the API in the clickpath event?

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.

  1. You will create a token with syntheticLocations.write scope.
  2. Use the created token through the Environment API V2  > Synthetic Synthetic - Locations, nodes, and configuration 
  3. Use PUT/synthetic/config the below is the description

"Updates set of synthetic related parameters defined for whole tenant (affects all monitors and all private locations)."

  • Unlock using the generated token.
  • Then try it out.
  • Update the attached section with the suggested values.
{  "bmMonitorTimeout": 900000,  "bmStepTimeout": 180000
}

 Then execute.

After successful execution the attached response code should appear.

CodeDescription
204

Success. The set of synthetic related parameters has been updated

Tip:

  • The configurations values will be updated automatically and the attached error won't be exposed again in the future.

Hopefully it helps.

KR, 

Peter.

thanks @Peter_Youssef, wonderful explanation.

Certified Dynatrace Professional | Certified Dynatrace Services - Observability | Dynatrace Partner yourcompass.ca

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

MostafaHussein_2-1730217218488.png

MostafaHussein_3-1730217268184.png

 

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

MostafaHussein_0-1730216701672.png

4. move to headers tab and add the Authorization in this format 'Api-Token {place-your-token}'

MostafaHussein_1-1730216990091.png

5. just click `Send` once did, you'll get response code 204 with no content that indicates it's sent successfully.

MostafaHussein_4-1730217666434.png

BR,
Mostafa Hussein.

 

 

Certified Dynatrace Professional | Certified Dynatrace Services - Observability | Dynatrace Partner yourcompass.ca

Featured Posts