Create and run an evaluation

This document explains how to create an evaluation for your workload in Workload Manager.

Limitations

Workload Manager currently supports only 25 evaluations per project to run simultaneously every 1 hour. If you have more than 25 evaluations, it is recommended that you limit the total number of evaluations running every 1 hour to 25, or reduce the frequency of evaluation to every 6 hours or less.

Create a workload evaluation

To create a workload evaluation, follow these steps:

  1. In the Google Cloud console, go to the Workload Manager page.

    Go to Workload Manager
    The remaining steps appear in the Google Cloud console.

  2. Select a Google Cloud project.
  3. If prompted, to enable the required API for Workload Manager, click Enable.
  4. Click New workload evaluation.
  5. On the Evaluation details page, do the following:
    1. For Evaluation name, enter a name for the workload evaluation.
    2. For Description, enter a description for the workload evaluation.
    3. For Workload type, select the type of workload evaluation.
  6. Click Continue.
  7. On the Target resources page, do the following:
    1. In From, click Browse projects to add the projects that contain the resources to evaluate.
    2. In Filters, click Add filter, and then use the following types of filters to select specific resources from the selected projects:
      • Service account
      • Label
      • Name

      Multiple filters in a filter type use OR logic. Across filter types, AND logic is used.

  8. Click Continue.
  9. On the Best practices page, select the best practices to include in the workload evaluation.
  10. Click Continue.
  11. On the Scheduling page, choose how frequently you want the evaluation to run.
  12. Click Continue.
  13. On the Preview page, review the workload evaluation. To make any final changes on any page, click the page name on the left pane.
  14. Click Create.

Run a workload evaluation

To run a workload evaluation, follow these steps:

  1. In the Google Cloud console, go to the Workload Manager page.

    Go to Workload Manager
    The remaining steps appear in the Google Cloud console.

  2. Click the Evaluation name.
  3. On the Evaluation information page, click Run.

    A workload evaluation takes a few minutes to complete. There might be evaluations that aren't completely real-time due to the time it takes for an evaluation to complete.

Set alerts for evaluations

To set alerts for existing evaluations, do the following:

  1. In the Google Cloud console, go to the Workload Manager page and then click Evaluations.

    Go to Workload Manager
    The remaining steps appear in the Google Cloud console.

  2. click the name of the evaluation for which you want to enable notifications.
  3. Click Edit.
  4. Select the Notification section.
  5. Select the events for which you want to receive alerts, and then select notification channels.
  6. Click Save.

What's next