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 evaluation.
- In the Name & rules pane, do the following:
- For Evaluation name, enter a name for the workload evaluation.
- For Description, enter a description for the workload evaluation.
- In the Workload type field, select the type of workload evaluation.
- From the Rules table, select the best practices to include in the workload evaluation.
- Click Continue.
- In the Scope & filters pane, do the following:
- In the Evaluation scope section, click Browse projects to add the projects that contain the resources that you want to evaluate.
- 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.
- Click Continue.
- In the Frequency & notification pane, do the following:
- In the Scheduling section, choose how frequently you want the evaluation to run.
- Optional: In the Notification section, select the events that you want to receive alerts for.
- Click Continue.
- In the Review pane, 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.