How could I get API level metrics on k6?

In my script I have multiple API endpoints. How can I get the API level metrics like p90,p95,min,max,avg for each API?

Hi @manoj.swain !

Welcome to the community forum! :wave:

You could assign the tags Tags and Groups to your requests and later filter metrics using them.

For example, this threshold example shows how to do something like that using the default console output

For sure, the workaround depends on the way how you’re outputting and aggregating the metrics.

Let me know if that answers,

1 Like