This document explains how to create an evaluation for your workload in Workload Manager.
Limitations
Workload Manager 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.
- Optional: To share rule findings across target projects, select the Share findings checkbox.
- 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
ORlogic. Across filter types,ANDlogic 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.
Share evaluation findings
Sharing evaluation findings lets resource owners in target projects view configuration findings for their resources in their local project consoles and on integrated pages such as Compute Engine, without requiring direct Identity and Access Management (IAM) access to the consumer project.
Edit an evaluation to share findings
To enable or disable sharing findings for an existing evaluation, follow these steps:
-
In the Google Cloud console, go to the Workload Manager page and then click Evaluations.
- Click the name of the evaluation that you want to edit.
- Click Edit.
- In the Scope & filters section, select or clear the Share findings checkbox.
- Click Save.
Visibility of shared findings
When you enable Share findings, Workload Manager propagates rule findings to all target projects specified in the evaluation scope. Findings are visible in the Rule findings tab and on integrated pages like the Compute Engine Overview page.
When you disable Share findings, rule findings are no longer propagated to target projects and remain visible only within the consumer project.
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.