Python ProfilingΒΆ

In this tutorial, you will use Robusta to troubleshoot a Python application running on Kubernetes. Specifically, you will analyze which functions use the most CPU.

Doing itΒΆ

Let's run the python_profiler action builtin to Robusta.

You need a Python application to profile. Try using Robusta itself. Replace the pod name below with Robusta's actual pod name.

robusta playbooks trigger python_profiler name=robusta-runner-8f4558f9b-pcbj9 namespace=default seconds=5

Seeing the resultΒΆ

You should receive a message (by default in Slack) with the profile results.

You can learn how to read the output in Brendan Gregg's excellent blogpost on flamegraphs.

Learn moreΒΆ