By default, k6 collects automatically two built-in metrics related to the transmitted data during the test execution:
- data_received: the amount of received data.
- data_sent: the amount of data sent.
However, the reported values of these metrics don't tag the particular request or URL. Therefore, you cannot know the amount of data transmitted for a specific request or URL.
This example shows how to track data sent and received for an individual URL.