了解如何为 Red Hat Advanced Cluster Security for Kubernetes 告警配置保留期。(Learn how to configure a retention period for Red Hat Advanced Cluster Security for Kubernetes alerts.)
使用 Red Hat Advanced Cluster Security for Kubernetes,您可以配置保留存储历史告警的时间。Red Hat Advanced Cluster Security for Kubernetes 随后会在指定时间后删除较旧的告警。(With Red Hat Advanced Cluster Security for Kubernetes, you can configure the time to keep historical alerts stored. Red Hat Advanced Cluster Security for Kubernetes then deletes the older alerts after the specified time.)
通过自动删除不再需要的告警,您可以节省存储成本。(By automatically deleting alerts that are no longer needed, you can save storage costs.)
您可以为以下告警配置保留期:
运行时告警,包括未解决(活动)和已解决的告警。(Runtime alerts, both unresolved (active) and resolved.)
不适用于当前部署的陈旧部署时告警。(Stale deploy-time alerts that do not apply to the current deployment.)
|
您可以使用 RHACS 门户配置告警保留设置。
您必须拥有具有 `读取` 和 `写入` 权限的 `Config` 角色才能配置数据保留。
在 RHACS 门户中,转到**平台配置** → **系统配置**。
在**系统配置**视图标题上,单击**编辑**。
在**数据保留配置**部分,更新每种数据类型的保留天数。
所有运行时违规
已解决的部署阶段违规
已删除部署的运行时违规
不再部署的镜像
要永久保存某种类型的数据,请将保留期设置为 `0` 天。 |
单击**保存**。
要使用 Red Hat Advanced Cluster Security for Kubernetes API 配置告警数据保留,请查看 API 参考文档中 `ConfigService` 组中的 `PutConfig` API 和相关 API。 |