Application Performance with Grafana Pyroscope and k6
This chapter will explore two tools, Pyroscope and k6. Pyroscope is a continuous profiling tool that allows users to collect very detailed information about the usage of system resources such as CPU and memory. k6 is a load testing tool that can be used to interact with an application via endpoints, or via a browser session in a scripted way.
With Pyroscope, we will see how to search data, which will give you a good understanding of how to make use of the data available. We will then show how to add instrumentation to collect this data using both an installed client and by adding a native language SDK to the application code. Finally, we will see how the new version of the Pyroscope architecture leverages Grafana’s knowledge of highly scalable storage platforms, using inexpensive block storage to set Pyroscope on a path toward offering truly continuous profiling for developers. This functionality will allow those of you...