4.5. 使用 Insights Operator
Insights Operator 会定期收集配置和组件故障状态信息,默每两小时向红帽报告这些数据。这些信息可让红帽评估配置,它提供了比 Telemetry 报告更深入的数据。OpenShift Container Platform 用户可以在 Red Hat Hybrid Cloud Console 上显示 Advisor 服务的结果。
4.5.1. Insights Operator 配置 复制链接链接已复制到粘贴板!
Insights Operator 配置将默认设置与 openshift-insights 命名空间中的 insights-config ConfigMap 中存储的 配置或 命名空间中的 support secret 合并。
openshift- config
当 ConfigMap 对象或支持 secret 存在时,包含的属性值会覆盖默认的 Operator 配置值。如果 ConfigMap 对象和 support secret 都存在,Operator 会读取 ConfigMap 对象。
ConfigMap 对象默认不存在,因此 OpenShift Container Platform 集群管理员必须创建它。
4.5.1.1. ConfigMap 对象配置结构 复制链接链接已复制到粘贴板!
查看 insights-config ConfigMap 对象(config.yaml 配置)的示例,以更好地了解 ConfigMap 对象的配置选项。
insights-config ConfigMap 对象示例
apiVersion: v1
kind: ConfigMap
metadata:
name: insights-config
namespace: openshift-insights
data:
config.yaml: |
dataReporting:
uploadEndpoint: https://console.redhat.com/api/ingress/v1/upload
storagePath: /var/lib/insights-operator
downloadEndpoint: https://console.redhat.com/api/insights-results-aggregator/v2/cluster/%s/reports
conditionalGathererEndpoint: https://console.redhat.com/api/gathering/gathering_rules
disableRuntimeExtractor: true
sca:
disabled: false
endpoint: https://api.openshift.com/api/accounts_mgmt/v1/entitlement_certificates
interval: 8h0m0s
alerting:
disabled: false
proxy:
httpProxy: http://example.com
httpsProxy: https://example.com
noProxy: test.org
下表描述了可用的配置属性:
insights-config ConfigMap 对象遵循标准 YAML 格式,其中子值低于 parent 属性,并缩进两个空格。对于 Obfuscation 属性,输入值作为 parent 属性的 bulleted children。
| 属性名称 | 描述 | 值类型 | 默认值 |
|---|---|---|---|
| 禁用集群 Prometheus 实例的 Insights Operator 警报。 | 布尔值 |
|
| 用于检查和下载集群传输数据的端点。 | URL | https://api.openshift.com/api/accounts_mgmt/v1/cluster_transfers/ |
| 设置检查可用集群传输的频率。 | 时间间隔 |
|
| 设置数据收集和上传频率。 | 时间间隔 |
|
| 设置上传端点。 | URL | |
| 配置存储存档数据的路径。 | 文件路径 | /var/lib/insights-operator |
| 指定下载最新 Red Hat Lightspeed 分析的端点。 | URL | |
| 设置提供条件收集规则定义的端点。 | URL | |
| 当设置为 true 时,它会禁用所有 insights-runtime-extractor 资源的部署和管理。 | 布尔值 |
|
| 启用 IP 地址和集群域名的全局模糊处理。 | 字符串 | Not applicable |
| 启用 Data Validation Operator 数据的模糊处理。集群资源 ID 仅在归档文件中可见,而不是资源名称。 | 字符串 | Not applicable |
| 为 Insights Operator 设置自定义代理。 | URL | 没有默认值 |
| 指定简单内容访问(SCA)授权下载的频率。 | 时间间隔 |
|
| 指定下载简单内容访问(SCA)授权的端点。 | URL | https://api.openshift.com/api/accounts_mgmt/v1/entitlement_certificates |
| 禁用简单内容访问权利下载。 | 布尔值 |
|