Setup collection using Snaps
Prerequisites:
- Linux 5.4 or newer.
- snapd
Get a Service Account Token and Project ID
To send data to Polar Signals Cloud, you'll need:
- A service account token for authentication
- Your project ID to specify where the data should be sent
Please refer to the Generating Tokens documentation for detailed instructions.
Bootstrap with cloud-init
If you're on a cloud or hypervisor that supports cloud-init you can get started easily like so:
#cloud-config
snap:
commands:
- [install, parca-agent, --classic]
- [set, parca-agent, remote-store-bearer-token=<your-service-account-token>]
- [set, parca-agent, remote-store-grpc-headers=projectID=<your-project-id>]
- [start, --enable, parca-agent]
Install manually
To setup collection on a machine that's already provisioned, use the following steps:
sudo snap install parca-agent --classic
sudo snap set parca-agent remote-store-bearer-token=<your-service-account-token>
sudo snap set parca-agent remote-store-grpc-headers=projectID=<your-project-id>
sudo snap start --enable parca-agent
Replace <your-service-account-token> with your actual service account token and <your-project-id> with your actual project ID.
Learn more about the Parca Agent snap in the Parca docs.