I want to extend "summaryTrendStats: [ "avg", "min", "max", "count", "p(90)", "p(95)", "p(98)" ]," by error count

Hi everyone,

I want to have the count of error next to the “count” metric in my test summary. Is there an identifier for that available? If so, what’s the name of it?

Thank you,
Niko

Hi, @nikimouse!

I’m sorry, but I cannot understand what you’re looking for.

Note that trend metrics basically track numeric values over time so later you can compute different statistics (percentiles, max, min, avg, etc), where “count” really refers to the total amount of samples you collected (how many numbers).

This type of metric is useful for instance to track things like the duration of an HTTP request, so you keep track of the duration of every single request (each is a value, like 100ms, 130ms, 320ms, etc), and after all you can compute those statistics.

But note that, in this concept, there’s no meaning of “successes” and “errors”, so you cannot get that from a trend metric.

Perhaps you’re looking for rate metrics or metric tags? Both let you categorize your metrics, which may help achieving your goal.

If not, could you please share more details what you’re trying to achieve, so I can help you with a more guided solution?

Thanks! :person_bowing:

Thank you joanlopez.
Maybe I was confused because of the “count” next to trend metrics. So I assumed, that it would be possible to show the number of errors (like count = number of requests) of each request, too.
What I understand is now, that I have to add a separate Rate or Counter to get “failed” information.
So at the end it’s not possible to get all information within one row, right?

Example:
error_counter…: 3 0.131697/s
— { errorType:DEFAULT step }…: 3 0.131697/s
→ I can separate error counters by a tag (i.e. “DEFAULT step”)
but it’s not possible to get the error count within the trend metric, like:
DEFAULT step…: count=14 errors=3 avg=14.64ms min=12ms max=20ms p(90)=17.7ms p(95)=18.7ms p(98)=19.48ms

Thank you for your help,
Niko