第 13 章 使用 Prometheus 监控
Prometheus 是一个开源监控和警报平台。您可以使用它来监控 Red Hat Advanced Cluster Security for Kubernetes (RHACS)的 Central 和 Sensor 组件的健康状态和可用性。当您启用监控时,RHACS 在端口号 9090
和允许到该端口的入站连接上创建一个新的监控服务。
13.1. 使用 RHACS Operator 监控 Central 服务 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
您可以通过更改 Central 自定义资源的配置来监控 Central 服务、Central
和 Scanner。
流程
-
在 OpenShift Container Platform Web 控制台中,进入 Operators
Installed Operators 页面。 - 从安装的 Operator 列表中选择 Red Hat Advanced Cluster Security for Kubernetes Operator。
- 点 Central 选项卡。
- 从 Central 实例列表中,点您要为其启用监控的 Central 实例。
点 YAML 选项卡并更新 YAML 配置:
对于监控 Central,请为
Central
自定义资源启用central.monitoring.exposeEndpoint
配置选项。Copy to Clipboard Copied! Toggle word wrap Toggle overflow 对于监控扫描器,请为
Central
自定义资源启用scanner.monitoring.exposeEndpoint
配置选项。Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- 点 Save。