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 evaluation.
  5. In the Name & rules pane, 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. In the Workload type field, select the type of workload evaluation.
    4. From the Rules table, select the best practices to include in the workload evaluation.
  6. Click Continue.
  7. In the Scope & filters pane, do the following:
    1. In the Evaluation scope section, click Browse projects to add the projects that contain the resources that you want to evaluate.
    2. In the Apply filters to resources section, click Add filter, and then use the following types of filters to select specific resources from the selected projects:
      • Service agent
      • Label
      • Name

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

  8. Click Continue.
  9. In the Frequency & notification pane, do the following:
    1. In the Scheduling section, choose how frequently you want the evaluation to run.
    2. Optional: In the Notification section, select the events that you want to receive alerts for.
  10. Click Continue.
  11. In the Review pane, review the workload evaluation. To make any final changes on any page, click the page name on the left pane.
  12. 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