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

How to best relate response time with number of requests?

AntonioSousa
DynaMight Guru
DynaMight Guru

When we have a metric with response times, it might be an average or median for a certain period of time, like one minute, but it is calculated regarding the number of requests made.

Say, that in one minute we had 10 requests with one second, and then the next minute we had 5 requests with half a second. Considering averages, if we did an aggregation for the two minutes, we would have an average of 0.833s=(10x1+5x0.5)/15

But, if we don't consider the number of requests, and we simply average the two minutes, we get 0.75s.

Values might vary more or less, of course...

 

The latter is what we get when we feed a response time into a metric in Dynatrace, and then do some type of aggregation afterwards. Is there a way to define/insert a response time metric with consideration of the quantity of requests made?

Antonio Sousa
3 REPLIES 3

AntonioSousa
DynaMight Guru
DynaMight Guru

I have figured this one by myself 😁 You have to use statistic summaries for the metrics being ingested. A good description is given in https://www.dynatrace.com/support/help/extend-dynatrace/extend-metrics/reference/metric-ingestion-pr...

I have done statistical analysis on the data, and while my old data would not aggregate correctly, now it does 😃:dynaspin:

Antonio Sousa

I have same issue. Can you show as an example, please?

First of all, for this to work, you have to ingest it via the metric ingestion protocol, with the gauge format. In the link provided before, there are examples of the gauge format.

Antonio Sousa

Featured Posts