To start using Granulate gProfiler, create a free account, install the gProfiler on a host, and see how Granulate immediately shows method-level production profiling information

The gProfiler is an Open-Source project, viewable on the Github repository‚Äč

Step 1: Create Your gProfiler Account

To create an account visit the gProfiler website and create a new account by entering the email address associated with the account and the desired password.

Step 2: Add a New Service

Profiling data from a group of machines is organized into a service. To get started, simply choose Get Started or Add New Service in the welcome screen.

Step 3: Install the gProfiler Agent

After choosing to add a new service, you will be greeted by the installation wizard screen, it includes a command line that you can copy and paste to deploy the agent on individual machines, and links to this documentation so you can deploy in additional environments.

The Docker deployment command line looks as follows - Simply run it on a single host to start profiling-

docker pull granulate/gprofiler:latest
docker run --name gprofiler --restart=always -d --network=host \
--pid=host --userns=host -v /var/run/docker.sock:/var/run/docker.sock \--privileged \
granulate/gprofiler:latest -cu \
--token "GAmp3WA/VgxNh3/9Beg3i6prkcpOe1lnss9ygohA9/Z/9I22csCHMYaMGlNrlAEaCVKsNqYytwsoBZk/KPL6Dg==" \
--service-name "Service name"

Step 3: Inspect Your Profiling Data

Immediately after deploying the gProfiler, you should have data to inspect - When you return to the gProfiler website, you will arrive in the "Overview" view. You can select the service name you want to start inspecting and browse the flame graph.