워크로드 관리자는 조직에서 권장하는 권장사항에 따라 워크로드를 검증하는 데 도움이 되는 맞춤 규칙을 사용할 수 있도록 지원합니다.
예를 들어 배포의 가상 머신 (VM)이 Compute Engine 기본 서비스 계정을 사용하지 않도록 하려면 맞춤 규칙을 만들 수 있습니다. 규칙을 만든 후 워크로드 관리자에서 평가를 만들고 실행하여 규칙에 따라 워크로드를 검사합니다. 그런 다음 평가 결과를 검토하고 이러한 규칙을 위반한 경우 시정 조치를 취할 수 있습니다. 이를 통해 배포의 품질, 안정성, 성능을 개선할 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[],[],null,["# About custom rules in Workload Manager\n\nWorkload Manager supports using customized rules that help you\nvalidate your workloads against best practices recommended by your organization.\n\nFor example, to ensure that the virtual machines (VMs) in your deployment\ndon't use the Compute Engine default service account, you can create a custom\nrule. After you create the rule, create and run an evaluation in Workload Manager\nto validate your workloads against the rule. You can then review the evaluation results and take\nremediation steps for any violation of these rules. This helps improve the\nquality, reliability, and performance of your deployments.\n\n\u003cbr /\u003e\n\nHow it works\n------------\n\nTo evaluate workloads using custom rules, do the following:\n\n1. Identify the best practices relevant to your deployments from [Google Cloud Well-Architected Framework](/architecture/framework).\n2. [Create custom rules using Rego](/workload-manager/docs/evaluate/custom-rules/rego-custom-rules).\n3. [Create and schedule evaluations for your workloads](/workload-manager/docs/create-evaluation).\n4. Optional: Export evaluation results to BigQuery and set up notifications.\n\nThe following figure summarizes the process of using custom rules in Workload Manager:\n\nLimitations\n-----------\n\nThe following limitations apply to custom rules in Workload Manager:\n\n- You can include a maximum of 300 rules per evaluation in Workload Manager. More number of rules can slow down the evaluation process. We recommend that you split your rules across multiple evaluations.\n- Workload Manager does not support exporting evaluation results to multi-regional BigQuery datasets. You can export evaluation results to regional BigQuery datasets.\n\nSupported data sources\n----------------------\n\nWorkload Manager uses data from the following services to scan\nthe resources that you specified for evaluation:\n\n- Cloud Asset Inventory: For a complete list of supported resource types in Cloud Asset Inventory, see [Supported asset types](/asset-inventory/docs/supported-asset-types)\n- Cloud Monitoring metrics. See [Supported metrics for Compute Engine](#compute-metrics).\n\n### Supported metrics for Compute Engine\n\nThe following table lists the metrics supported for Compute Engine. For more\ninformation about these metrics, see [Cloud Monitoring metrics](/monitoring/api/metrics_gcp_c#gcp-compute).\n\nThe \"Metric type\" strings in this table must be prefixed with `compute.googleapis.com`.\nThat prefix has been omitted from the entries in the table. \n\nPricing\n-------\n\nFor pricing information, see [Workload Manager Pricing](/workload-manager/pricing).\n\nWhat's next\n-----------\n\n- [Write custom rules using Rego](/workload-manager/docs/evaluate/custom-rules/rego-custom-rules)\n- [Create and run an evaluation](/workload-manager/docs/create-evaluation)"]]