Help Google Cloud platform monitoring Create service account and organization monitor

How to create a service account for monitoring Google Cloud

ManageEngine Site24x7 allows you to monitor your Google Cloud resources at two levels:

  • Organization
  • Project

Organization-level monitoring lets you monitor all the projects, folders, and resources under the organization. Project-level monitoring monitors only the resources under that project. This help document provides instructions on the following:

Create a service account for organization monitoring

Make sure you have any one of these permissions to assign the required roles:
  • Project IAM Admin (or higher)
  • Folder Admin
  • Organization Administrator
  1. Log in to your Google Cloud console.
  2. Navigate to one of the projects you would like to monitor and click IAM & Admin > Service Accounts.
  3. Click Create service account.
  4. Provide an appropriate name for the service account and click Create and continue.
  5. Provide the following roles to the service account:
    • Browser
    • Viewer
  6. Click Continue > Done.
  7. Navigate to the IAM page of the Google Cloud console.
  8. Select a project, folder, or organization you would like to monitor.
  9. To provide a role, click Grant access and enter the email address of the service account you just created.
  10. Provide these roles:
    • Browser
    • Viewer
  11. Click Save.
Repeat steps 7-11 to provide access to all the projects, folders, and organizations you would like to monitor.
If you have provided the roles at the organization level, they are cascaded down to all the projects and folders under the organization, and you need not repeat the process for those projects and folders.

Create and export the service account key

  1. Log in to your Google Cloud console.
  2. Navigate to IAM & Admin > Service Accounts.
  3. Select the service account you created.
  4. Select Keys > Add key > Create new key > JSON.
  5. Click Create.

The service account key will be downloaded in JSON format. Upload this JSON key file on Site24x7's Add GCP Monitor page when prompted.

Create a service account for project monitoring

  1. Log in to your Google Cloud console.
  2. Navigate to the project you would like to monitor.
  3. Click IAM & Admin > Service Accounts.
  4. Click Create service account.
  5. Provide an appropriate name for the service account and click Create and continue.
  6. Navigate to the Permissions tab.
  7. Provide the following roles to the service account:
    • Browser
    • Viewer
  8. Click Continue > Done.
  9. Navigate to the Keys tab and follow the following instructions to export the service account key.
    1. Select Keys > Add key > Create new key > JSON.
    2. Click Create.

APIs to be enabled for monitoring

  • "compute.googleapis.com"
  • "cloudfunctions.googleapis.com"
  • "dataproc.googleapis.com"
  • "redis.googleapis.com"
  • "container.googleapis.com"
  • "spanner.googleapis.com"
  • "appengine.googleapis.com"
  • "pubsub.googleapis.com"
  • "composer.googleapis.com"
  • "monitoring.googleapis.com"
  • "compute.googleapis.com"
  • "sqladmin.googleapis.com"
  • "dataflow.googleapis.com"
  • "run.googleapis.com"
  • "file.googleapis.com"
  • "cloudkms.googleapis.com"
  • "dns.googleapis.com"
  • "cloudbilling.googleapis.com"
  • "cloudresourcemanager.googleapis.com"
  • "cloudasset.googleapis.com"
  • "servicenetworking.googleapis.com"
  • "appengine.googleapis.com"
  • "container.googleapis.com"
  • "cloudkms.googleapis.com"

 

Ideally, these APIs are enabled by default. If you enable them manually, allow 5-10 minutes for these changes to be applied to Site24x7.

If you prefer enabling these APIs through Terraform, use our sample Terraform script in this knowledge base document.

FAQs {Click to expand}

1. Which is better: project-level monitoring or organization-level monitoring?

If there are many projects and folders under an organization, it is preferred to opt for organization-level monitoring because all the projects will be automatically discovered and added for monitoring if you provide Site24x7 with the minimal access required. If all your resources are under only one project, and you do not expect any more projects to be added in the near future, project-level monitoring is sufficient.

2. Does Site24x7 require any other permissions?

In addition to monitoring more than 20 Google Cloud resources, through Site24x7 you can also perform management actions like starting or stopping VMs. To perform management actions, you need the additional permissions listed in this knowledge base document.

3. Why can't I see Google Cloud monitors in my Site24x7 account?

The most common reasons why your Google Cloud monitors are not listed in your Site24x7 account are explained in our knowledge base document.

What's next for you:

Was this document helpful?
Thanks for taking the time to share your feedback. We’ll use your feedback to improve our online help resources.

Help Google Cloud platform monitoring Create service account and organization monitor