

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 设置 CPU 和内存监控
<a name="runtime-monitoring-setting-cpu-mem-monitoring"></a>

启用运行时监控并评估集群的覆盖率状态是否**正常**后，您可以设置和查看 Insights 指标。

以下主题可以帮助您根据代理的 CPU 和内存限制评估部署的 GuardDuty 代理的性能。

## 在 Amazon ECS 集群上设置监控
<a name="ecs-runtime-cpu-memory-monitoring-agent"></a>

*Amazon CloudWatch 用户指南*中的以下步骤可以帮助您根据代理的 CPU 和内存限制评估部署的 GuardDuty 代理的性能：

1. [在 Amazon ECS 上为集群级别和服务级别指标设置 Container Insights](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/deploy-container-insights-ECS-cluster.html)

1. [Amazon ECS Container Insights 指标](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-metrics-ECS.html)

## 在 Amazon EKS 集群上设置监控
<a name="eks-runtime-cpu-memory-monitoring-agent"></a>

部署 GuardDuty 安全代理并评估集群的覆盖状态是否为 “正**常**” 后，您可以设置和查看容器洞察指标。

**评估安全代理的性能**  

1. *在亚马逊用户指南中@@ [在亚马逊 EKS 和 Kubernetes 上设置容器见解](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/deploy-container-insights-EKS.html) CloudWatch *

1. [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-metrics-EKS.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-metrics-EKS.html)

**使用安全代理 v1.5.0 及更高版本管理性能**  
在安全代理 [v1.5.0 及更高版本中](https://docs.aws.amazon.com/guardduty/latest/ug/runtime-monitoring-agent-release-history.html#eks-runtime-monitoring-agent-release-history)，当见解表明关联的 GuardDuty 代理已达到分配的限制时，您可以配置特定参数。有关更多信息，请参阅 [配置 EKS 附加组件参数](guardduty-configure-security-agent-eks-addon.md)。