Notice: We've updated our Privacy Policy, effective November 14, 2024.

Step 3: Set Up Service Account

Go to "IAM & Admin", click on "Service accounts" and then "Create Service Account".

  • Pick a name of your choice, e.g. "pganalyze-collector"
  • Grant "Pub/Sub Subscriber" permission to the service account

We now have two options here:

To keep things simple and secure, we recommend assigning the service account to the VM. To do so, navigate to your virtual machine.

If your virtual machine is running, you will need to stop it to change the associated service account. Then, edit the VM instance details, and set the "Service account" setting to the just-created service account. Now, start the VM again.

Local processes on the VM, such as the pganalyze collector, can now access APIs through the service account.

Continue to Step 4: Configure collector

Couldn't find what you were looking for or want to talk about something specific?
Start a conversation with us →