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 中存储的 配置或 openshift- config 命名空间中的 support secret 合并。

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。

Expand
表 4.1. Insights Operator 可配置的属性
属性名称描述值类型默认值
alerting:
    disabled: false

禁用集群 Prometheus 实例的 Insights Operator 警报。

布尔值

false

clusterTransfer:
    endpoint: <url>

用于检查和下载集群传输数据的端点。

URL

https://api.openshift.com/api/accounts_mgmt/v1/cluster_transfers/

clusterTransfer:
    interval: 1h0m0s

设置检查可用集群传输的频率。

时间间隔

24h

dataReporting:
    interval: 30m0s

设置数据收集和上传频率。

时间间隔

2h

dataReporting:
    uploadEndpoint: <url>

设置上传端点。

URL

https://console.redhat.com/api/ingress/v1/upload

dataReporting:
    storagePath: <path>

配置存储存档数据的路径。

文件路径

/var/lib/insights-operator

dataReporting:
    downloadEndpoint: <url>

指定下载最新 Red Hat Lightspeed 分析的端点。

URL

https://console.redhat.com/api/ingress/v1/download

dataReporting:
    conditionalGathererEndpoint: <url>

设置提供条件收集规则定义的端点。

URL

https://console.redhat.com/api/gathering/gathering_rules

dataReporting:
    disableRuntimeExtractor: true

当设置为 true 时,它会禁用所有 insights-runtime-extractor 资源的部署和管理。

布尔值

false

dataReporting:
    obfuscation:
    - networking

启用 IP 地址和集群域名的全局模糊处理。

字符串

Not applicable

dataReporting:
    obfuscation:
    - workload_names

启用 Data Validation Operator 数据的模糊处理。集群资源 ID 仅在归档文件中可见,而不是资源名称。

字符串

Not applicable

proxy:
    httpProxy: http://example.com
    httpsProxy: http://example.com
    noProxy: test.org

为 Insights Operator 设置自定义代理。

URL

没有默认值

sca:
    interval: 8h0m0s

指定简单内容访问(SCA)授权下载的频率。

时间间隔

2h

sca:
    endpoint: <url>

指定下载简单内容访问(SCA)授权的端点。

URL

https://api.openshift.com/api/accounts_mgmt/v1/entitlement_certificates

sca:
    disabled: false

禁用简单内容访问权利下载。

布尔值

false

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部