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

Response time - Behavior Partition function

gbaudart
DynaMight Champion
DynaMight Champion

Hi Community,
I'm trying to plot a distribution of response times for a user action to display in a dashboard (Classic for now).
I'm using the partition function to create a dimension with a distribution of response times:

Partition_dimension.PNG

However, when I add up all the partition results, I don't get the "Count" result for the action:

Partition_count.PNG

I've read a lot of documentation, tried several ways and even used Dynatrace's Professional Services (ACE)... But I still don't have any reliable answers 😞

The community remains my last chance to refine the query or at least understand the result 🙏

-Do you know why I can't get the total "count" of the action?
-Do you know what the values shown in my breakdown actually correspond to?

Thank you for your help 😀

Observability Consultant - Dynatrace Professional Certified
8 REPLIES 8

rastislav_danis
DynaMight Pro
DynaMight Pro

your partition distribution does not count each xhr action. instead it counts response time buckets.

here is what is counted - number of bucket hits per timeframe, i have 2 buckets in my example:

rastislav_danis_1-1707828637302.png

 

when you remove fold(count), you will see exact points when each bucket was hit during selected timeframe (cyan is <200ms bucket, yellow is rest bucket):

rastislav_danis_0-1707828533045.png

 

Alanata a.s.

@rastislav_danis ,
Each of my recorded actions (3.84k actions) has a response time that should fit into a bucket.
So theoretically, if I add up all the hits from all the buckets, shouldn't I get the total number of actions?

Observability Consultant - Dynatrace Professional Certified

but in fold(count) you just count buckets, not actions. f.e in my example, lower latency bucket (<200ms) was hit 9 times so count of bucket <200 (mistakenly named "0,100";) was 9, but in reality number of xhr actions with response <200ms was much higher (several tens of actions in that timeframe)

Alanata a.s.

if you create partitions based on value you will lost number of items in partition buckets

Alanata a.s.

OK.
So how should I phrase my query so that I can count the number of shares in each bucket?
I'm sorry, but I'm having a lot of trouble really understanding how the partition works.

Observability Consultant - Dynatrace Professional Certified

i'm afraid that partition is not right friend for your task 😉 and i'm also afraid this is not possible with pure metrics operations, because you have decoupled response times from counts and you cannot filter count metric based on reponse or otherwise (filter response metric based on counts).

I think only USQL will help you with this

Alanata a.s.

for example:

rastislav_danis_1-1707837694818.png

 

Alanata a.s.

Thanks !
The result looks much better 😀
The problem is that it's not very readable because I can't graph it properly as a histogram or "Top list" 😭

Observability Consultant - Dynatrace Professional Certified

Featured Posts