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

Clickpath step response time SLO

PaulE
Participant

I'm trying to create an SLO based off the load times for a single step in a clickpath synthetic. Its basically % of requests that load in less than a defined time. I cannot figure out how to create calculated metrics successful request count or total request count for the SLO calculation as I would for a service based response time SLO.  Has anyone had success with a similar requirement? 

3 REPLIES 3

Eric_Yu
Dynatrace Mentor
Dynatrace Mentor

Hi Paul,

You might wanna use the partition transformation in your metric selector.

https://docs.dynatrace.com/docs/shortlink/api-metrics-v2-selector#partition

Here's a quick example:

Say you have this data but only want to count the # of requests above a certain load time (let's say 3s):

Eric_Yu_0-1713996660192.png

You'd have to use partition to split that data into a new dimension (let's call it "Category):

 

builtin:synthetic.browser.event.actionDuration.load
:splitBy("dt.entity.synthetic_test_step"):auto
:partition("Category",
          value("good",lt(3000)),
          value("bad",gt(3000)))
:filter(and(or(in("dt.entity.synthetic_test_step",entitySelector("type(synthetic_test_step),entityName.equals(~"click on ~~~"Finish~~~"~")")))))
:sort(value(auto,descending))
:limit(20)

 

Eric_Yu_1-1713996782115.png

And filter only the dimension you want:

 

:filter(eq("Category","bad"))

 

Eric_Yu_2-1713997080788.png

If you want to create an SLO based off of that just take the count() of those values and divide it between the total load actions.

Hope it helps!

Eric Yu | LATAM ACE Consultant

The results of the of the partition into good and bad results works, but executing a count on that data and returning a single value of 3 if we use your example returns a single value that is the sum of the action duration load times from the 3 events. I could certainly be missing something, but I am just not able to return back a simple count of X number above X seconds. 

Eric_Yu
Dynatrace Mentor
Dynatrace Mentor

Try adding a fold transformation on the query or the explorer:

Eric_Yu_0-1727279583889.png

Eric Yu | LATAM ACE Consultant

Featured Posts