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:
-
In the Google Cloud console, go to the Workload Manager page.
Go to Workload Manager
The remaining steps appear in the Google Cloud console. - Select a Google Cloud project.
- If prompted, to enable the required API for Workload Manager, click Enable.
- Click New workload evaluation.
- On the Evaluation details page, do the following:
- For Evaluation name, enter a name for the workload evaluation.
- For Description, enter a description for the workload evaluation.
- For Workload type, select the type of workload evaluation.
- Click Continue.
- On the Target resources page, do the following:
- In From, click Browse projects to add the projects that contain the resources to evaluate.
- 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.
- Click Continue.
- On the Best practices page, select the best practices to include in the workload evaluation.
- Click Continue.
- On the Scheduling page, choose how frequently you want the evaluation to run.
- Click Continue.
- On the Preview page, review the workload evaluation. To make any final changes on any page, click the page name on the left pane.
- Click Create.
Run a workload evaluation
To run a workload evaluation, follow these steps:
-
In the Google Cloud console, go to the Workload Manager page.
Go to Workload Manager
The remaining steps appear in the Google Cloud console. - Click the Evaluation name.
- 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:
-
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. - click the name of the evaluation for which you want to enable notifications.
- Click Edit.
- Select the Notification section.
- Select the events for which you want to receive alerts, and then select notification channels.
- Click Save.