Is K6 able to get the target device's CPU and Memory utilization rate

Hi, Madam/Sir,

I am wondering that is k6 able to get the target device’s CPU and Memory utilization rate because we need to monitor the target device’s system resource status during the load test.
I can’t find any information from the test summary when the test is finished, can I configure somewhere to get this?
Could you please help to reply?

Thanks,
Ken

Hi @Ken !

Nope, out-of-the-box k6 isn’t able to get the target (system under test) metrics. The purpose of the k6 is to produce the load.

However, your target device and k6 can output metrics to the same place (Prometheus, InfluxDB, etc.), and later, you can find some correlations.

For example:

Let me know if that helps,
Cheers!

Hi, olegbespalov,

Thank you so much for your reply, I will try the suggestion you provided above later if necessary.

Thanks,
Ken