Is there any custom metric for CPU and Memory usage?

Is there any custom metric for CPUand Memory usage ? I want to export CPU and Memory usage in my report. Searching for any metric . Is there any could me show me any sample ?

Hi @Yusuf,
unfortunately, at the moment, k6 doesn’t support these kinds of profiling metrics. We have an open issue for tracking it New CPU and memory usage metrics · Issue #888 · grafana/k6 · GitHub.
The alternative in the meanwhile is profiling the k6 process with a custom solution.

Hi @codebien Can I display CPU and MEMORY usage as custom metrics in k6 CLI now? Is It possible to display the result in the CLI itself without using the k6 cloud dashboard?

Hi @saivignesh0303,
as you can see if you click on the link the issue is still open. In any case, we have added the profiling endpoints. Add profiling endpoint · Issue #1692 · grafana/k6 · GitHub

They are good for debugging and development.