Enabling Pyroscope¶
Introduction¶
Pyroscope is a continuous profiling tool designed to collect, store, and analyze application performance data over time. It helps developers optimize resource usage by identifying CPU, memory, and execution bottlenecks. It captures performance data over time, making it easier to identify long-term trends. It uses a time-series database to store profiling data efficiently.
Note
By default, local storage (i.e. Kubernetes node storage) is used for data storage. To switch to cloud storage, refer to Configure S3 for Pyroscope.
Configure S3 for Pyroscope¶
Ensure that the following prerequisites are met.
- You will need a S3 bucket to save the Profiling data.
- Your node IAM role should have permission to access the S3 bucket.
Process¶
To enable Pyroscope in the Privacera monitoring stack, follow the steps below.
- SSH into the instance where Privacera Manager is installed.
- Navigate to the
config
directory using the following command:Bash -
Copy
vars.monioring.yml
file fromsample-vars
folder tocustom-vars
folder.If this file already exists in
custom-vars
folder then you can skip this step.Bash -
Open
vars.monioring.yml
.Bash -
Uncomment the below variables in the file and save it.
- Provide the S3 buckte name.
Bash - Enable Pyroscope.
Bash
- Provide the S3 buckte name.
-
Once done, redeploy the monitoring components.
a. Go to
privacera-manager
directory.b. RunBash setup
to generate the required files.c. Install the monitoring components.Bash d. Once done, runBash post-install
.Bash