Managing Workspaces

This guide explains how to create and manage Workspaces. Your Google Cloud Platform (GCP) projects and Amazon Web Service (AWS) accounts must be members of a Workspace before they can be monitored.

For an introduction to Workspaces and some best practices for using them, see Workspaces.

Selecting Workspaces

The current Workspace is displayed to the right of the Stackdriver logo at the top of the Stackdriver Monitoring console. If you don't have a current Workspace, Select workspace is displayed.

To change the current Workspace or to find out details about a Workspace, go to the Manage Workspaces page of the Stackdriver Monitoring console:

Go to the Manage Workspace page

  • To select a Workspace for use in Stackdriver Monitoring, click the Workspace name in the list.

  • To go to the Workspace Settings page for a Workspace, click Edit next to the Workspace name in the list.

Creating a single-project Workspace

This section describes how to create a Workspace for an existing GCP project. If you don't have a GCP project, you must create one prior to creating a Workspace. For instructions on creating a GCP project, go to Before you begin.

Create a Workspace from the GCP Console

To create a Workspace for an existing GCP project, do the following:

  1. Go to the GCP Console:

    Go to GCP Console

  2. In the menu bar, click the drop-down list next to the Google Cloud Platform and select your GCP project.

  3. Click Monitoring.

  4. If the Add your project to a Workspace dialog is displayed, create a new Workspace by selecting your GCP project under New Workspace and then clicking Add. In the following image, the GCP project name is Quickstart:

    Select workspace

    The Add your project to a Workspace dialog is displayed only when you have at least one existing Workspace available to you. The Workspaces listed under Existing Workspace are Workspaces you've created or Workspaces for GCP projects where you have editorial permission. Using this dialog, you can choose between creating a new Workspace and adding your project to an existing Workspace.

Next, Monitoring creates a new Workspace and adds your GCP project to the Workspace. During Workspace creation, Monitoring proceeds through the following phases:

  1. Building your Workspace
  2. Enabling Stackdriver APIs
  3. We're still collecting data for your new Workspace

These phases might take several minutes to complete. When this process is complete, the Stackdriver Monitoring console displays the Monitoring Overview pane and a welcome message:

Select workspace

Create a Workspace from the Manage Workspaces page

To create a Workspace for an existing GCP project:

  1. Go to the Manage Workspaces page:

    Go to the Manage Workspaces page

  2. From this page, start the create Workspace process by doing one of the following:

    • Click Add Workspace.
    • If Select workspace if it is displayed next to the Stackdriver logo, scroll to the bottom of the list, and then click Create Workspace.
    • Click the drop-down list next to the the Stackdriver logo, scroll to the bottom of the list, and then click Create Workspace.
  3. In the Google Cloud Platform project box, do one of the following:

    • If your project is displayed, click Create workspace.
    • If Select project is displayed or if the wrong project is displayed, click the box, scroll to your project name, select it, and then click Create workspace.

      If your project isn't listed, it might already have a Workspace. Click Cancel and then follow the instructions in Selecting Workspaces.

  4. In the Add Google Cloud Platform projects to monitor dialog, click Continue.

  5. In the Monitor AWS accounts dialog, click Skip AWS Setup.

  6. Click Continue to skip the instructions for installing the Monitoring agent and the Logging agent on a Linux system. These instructions are available from the Agent option in the Workspace Settings page.

  7. Select an email-reporting option:

    • Daily Reports, including weekly summaries
    • Weekly reports
    • No Report

    Click Continue.

    You can change this setting in Workspace Settings page in the Stackdriver Monitoring console after the Workspace is created. Your email reporting options are:

  8. It takes several minutes for Monitoring to create your Workspace.

    When creation is complete, Monitoring displays Finished initial collection!

    Click Launch Monitoring.

You see the Monitoring home page for your new Workspace.

Converting from single-project to multi-project

You can convert a single-project Workspace into a multi-project Workspace by merging the single project Workspace into a second, empty Workspace.

Creating a multi-project Workspace

A single Workspace can monitor any number of GCP projects or AWS accounts. The best-practice recommendation to create a multi-project Workspace is as follows:

  1. Create a new GCP project. For instructions on creating a a new GCP project, go to Before you begin.
  2. Create a new Workspace for that project. For detailed steps, go to Creating a single-project Workspace.
  3. Add GCP projects or AWS accounts to the Workspace. For details, go to Adding monitored projects.

Adding users to a Workspace

You can share your Workspace with other users by adding them as members to your Workspace project. You must have Project > Owner permission for the project to add more users.

To add users to your Workspace, do the following:

  1. In the Google Cloud Platform Console, go to the IAM & admin page:

    Go to the IAM page

  2. From the list of projects, select your Workspace's hosting project.

  3. At the top of the page, click Add.

  4. In the New members box, enter a user, group, service account, or domain.

  5. Assign a Project role to the new member: Owner, Editor, Viewer, or Browser. Click Save.

Adding monitored projects

This procedure covers adding a GCP project or an AWS account to an existing Workspace. To create a Workspace to which you can add projects and accounts, see Creating a multi-project Workspace.

To determine if you have sufficient privileges to add a GCP project or an AWS account to a Workspace, go to Workspace permissions.

To add a GCP project or an AWS account, do the following:

  1. In the Stackdriver Monitoring console, go to the Manage Workspaces page:

    Go to the Manage Workspaces page

    1. This page lists all the Workspaces to which you have access. Next to your Workspace, click Edit.

    2. On the Workspace Settings page for the Workspace, click Monitored Accounts. You see your project information in a page similar to the following:

    Monitored accounts

  2. To add a GCP project, click Add Google Cloud Platform projects. Select the checkboxes for the names of any GCP projects you want to add to this Workspace. You don't have to select any projects.

  3. To add an AWS account, click Add AWS account:

    1. Follow the instructions for connecting your AWS account.

      Authorize AWS

    2. Click Add AWS account. Monitoring connects to your AWS account.

      During the connection, Stackdriver Monitoring creates an AWS connector projector project.

      Repeat these steps to add another AWS account.

Removing a project from a Workspace

This section begins with information about the effects of removing a project from a Workspace and then describes the removal procedure.

Before you remove a project

Consider if removing a project or account is the right action for your situation. Related situations and actions include the following:

  • If you want to move projects or accounts from one Workspace to another Workspace, see Moving projects or Merging Workspaces.

  • If you have a single-project Workspace, you cannot remove the hosting project from the Workspace using the following procedure. Instead, use merge to change your hosting project to a regular monitored project, and then use the following procedure to remove the project from the merged Workspace.

  • If you remove a GCP project from a Workspace, then you can add that project to another Workspace if you wish. However, if changing a projects workspace is what you want to do, go to Moving a project to another Workspace.

  • If you remove an AWS account from a Workspace, you are removing the AWS connector project, which represents the AWS account. You cannot use the AWS connector project with another Workspace. You should delete the connector project. You can then add your AWS account to another Workspace, letting Monitoring create a new connector project. See Adding an AWS account.

When you remove a project or account from its Workspace, Monitoring no longer receives monitoring data from it. If you use Stackdriver Logging, then you can continue to access logs in the removed project. For AWS, the logs are in the removed AWS connector project.

Remove procedure

To remove a GCP project or an AWS account from a Workspace, do the following:

  1. Open the Stackdriver Monitoring console:

    Go to the Stackdriver Monitoring console

  2. In the menu bar, click the drop-down list next to Stackdriver logo, and select the Workspace that contains the GCP project or the AWS account you want to remove.

    After you complete this step, your Workspace is displayed next to the Stackdriver logo.

  3. To go to your Workspace settings, click the drop-down list next to the your Workspace name, and select Workspace Settings.

    Monitored accounts

  4. On the Workspace Settings pane, click Monitored accounts:

    Monitored accounts

  5. On the Monitored Accounts page, locate the GCP project or AWS account you want to remove, click More more_vert and then select Remove from workspace.

    In the previous image, there are two projects associated with the Workspace. The host project, MY-GCP-PROJECT-NAME, can't be removed from the Workspace. However, ANOTHER-PROJECT can be removed from the Workspace.

Moving a project to another Workspace

To move a GCP project from one Workspace to another, follow the instructions for Removing a project and choose the Move project action rather than the Remove from Workspace action.

If you are trying to move the hosting project from a Workspace, then use the instructions in Merging Workspaces rather than those in Removing a project.

Merging Workspaces

Merging Workspace A into Workspace B moves all the GCP projects except AWS connector projects from Workspace A to Workspace B. Specifically, here is the effect of merging A into B:

  • All GCP projects that were added to Workspace A are moved into Workspace B.
  • All AWS accounts in Workspace A are removed from A. You have to manually add the accounts to Workspace B. You can delete the AWS connector projects unless you need to retrieve the AWS account's logs from them.
  • The project that hosts Workspace A is added to Workspace B, even if the project is empty.

    The host project is the project you use to create the Workspace. This project typically has resources in the case of a single-project Workspace but is empty for a multi-project Workspace. Merging is the only way to separate this project from its Workspace.

  • All the monitoring and other configuration information in Workspace A is deleted. This includes dashboards, alerting policies, uptime checks, and so on. Workspace A no longer exists.

To merge Workspaces, do the following:

  1. Open the Monitoring console:

    Go to the Stackdriver Monitoring console

  2. Select the Workspace that you want to keep ("B" in this scenario) from the drop-down list at the top-right of the Monitoring console.

  3. Click the drop-down list next to your Workspace and select Workspace Settings.

  4. Click Monitored accounts from the left-side menu.

  5. Click Merge another Workspace into this one.

  6. Select the Workspace that you want removed ("A" in this scenario).

  7. Review the information that is lost during the merge, and if you agree to that information loss, select the checkbox. Click Merge.

Deleting a Workspace

Before deleting a Workspace, check if the project you used to create the Workspace has resources you want to preserve, or if the Workspace is still linked to additional GCP projects or AWS accounts. If so, see Merging Workspaces for a way to move resources to another place before deleting the Workspace.

If your Workspace project has no resources you want to preserve, then delete the Workspace by deleting the Workspace's project in the GCP Console:

  1. Go to the IAM & admin console:

    Go to the IAM console

  2. Click Settings.

  3. Click Shut Down.

Restricting access to AWS accounts

To limit the AWS account permissions you give to Monitoring, see Minimal AWS permissions.

To revoke Monitoring's access to your AWS account, remove the Stackdriver IAM role from your AWS account.

Workspace billing

Workspaces don't have any costs associated with them. All chargeable activity is recorded in GCP projects containing your resources—that is, in the billing accounts associated with those projects. Some details of GCP and AWS billing are described in the following sections.

Removing a project from its Workspace doesn't necessarily stop all Stackdriver charges for logs and metrics usage. If any Stackdriver agents or other software modules continue to send metrics or logs to Stackdriver, then charges continue to accrue.

GCP project billing

When you create a resource in a GCP project, GCP begins to receive metrics and log entries from GCP services regarding that resource. Charges begin to accrue to your project's billing account right away, but much of the data isn't chargeable or has such low volume that it doesn't trigger any charges.

Stackdriver Logging has access to all your GCP project's logs even without creating a Workspace. Adding your project to a Workspace gives Stackdriver Monitoring access to the monitoring data already being received, but the Workspace doesn't itself trigger any additional charges. Similarly, removing a project from a Workspace doesn't stop charges.

If you have VM instances in your GCP project that contain software that sends monitoring data or logs to Stackdriver APIs, then you will be charged for that data as long as the software is running. This includes the Monitoring agents, Logging agents, and third party libraries like Prometheus that you might install. To stop charges, you must stop any software sending data to Stackdriver.

AWS account billing

When you add an AWS account to a Workspace, monitoring and logging data is sent by Stackdriver agents or other software to the AWS connector project, whose billing account receives any charges.

Much of the data sent from an AWS account comes from software agents running on VM instances and sending data to the AWS connector project created when you added your account to a Workspace. You are charged for that data as long as the software is sending data and the connector project still exists, regardless whether it remains connected to a Workspace.


I can't log in to my Workspace

Stackdriver Monitoring relies on cookies from various Google sites to manage Workspaces. If these cookies are blocked, you may find that you:

  • Cannot get past the Log in with Google dialog, and you see a message saying “Cookies aren't enabled in current environment”.

  • Get stuck in an endless authentication loop.

Cookies can be blocked accidentally, or by automatic updates pushed out as part of changes in security policy at your location.

You must have third-party cookies enabled for the following:


For information on enabling cookies, see your browser's documentation:

My email address isn't accepted

Monitoring doesn't accept email addresses containing an apostrophe, although Google Cloud Platform does. Users with such email addresses are unrecognized when they attempt to use Monitoring.

I can't add a project to a Workspace because it's already in another Workspace

Projects can be associated with only one Workspace at a time:

Project resources are missing from Monitoring

It can take ten minutes or so before Monitoring notices new or removed resources, such as VM instances, in your projects.

If you start a service such as Compute Engine in a project that is associated with a Workspace, it can take a hour or more for Monitoring to notice the new service. Until that time, the service's resource types don't appear in any Monitoring menus.

How do I use Workspaces with Logging?

Stackdriver Logging doesn't use Workspaces. By using advanced log filters, you can view or manage log entries from multiple GCP projects or AWS accounts.

In the case of AWS accounts, you access logs through the AWS connector project that Monitoring creates when you add the account to a Workspace. Therefore, you do have to add your account to a Workspace and install the Stackdriver Logging agent on your VM instances in order to receive your logs.

Kunde den här sidan hjälpa dig? Berätta:

Skicka feedback om ...

Stackdriver Monitoring
Behöver du hjälp? Besök vår supportsida.