4.5. Using the Insights Operator
The Insights Operator periodically gathers configuration and component failure status and, by default, reports that data every two hours to Red Hat. This information enables Red Hat to assess configuration and deeper failure data than is reported through Telemetry. Users of OpenShift Container Platform can display the report in the Advisor service on Red Hat Hybrid Cloud Console.
4.5.1. Configuring Insights Operator 复制链接链接已复制到粘贴板!
Insights Operator configuration is a combination of the default Operator configuration and the configuration that is stored in either the insights-config ConfigMap object in the openshift-insights namespace, OR in the support secret in the openshift-config namespace.
When a ConfigMap object or support secret exists, the contained attribute values override the default Operator configuration values. If both a ConfigMap object and a support secret exist, the Operator reads the ConfigMap object.
The ConfigMap object does not exist by default, so an OpenShift Container Platform cluster administrator must create it.
4.5.1.1. ConfigMap object configuration structure 复制链接链接已复制到粘贴板!
This example of an insights-config ConfigMap object (config.yaml configuration) shows configuration options by using standard YAML formatting.
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
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
Configurable attributes and default values
The following table describes the available configuration attributes:
The insights-config ConfigMap object follows standard YAML formatting, wherein child values are below the parent attribute and indented two spaces. For the Obfuscation attribute, enter values as bulleted children of the parent attribute.
| Attribute name | Description | Value type | Default value |
|---|---|---|---|
| Disables Insights Operator alerts to the cluster Prometheus instance. | Boolean |
|
| The endpoint for checking and downloading cluster transfer data. | URL | https://api.openshift.com/api/accounts_mgmt/v1/cluster_transfers/ |
| Sets the frequency for checking available cluster transfers. | Time interval |
|
| Sets the data gathering and upload frequency. | Time interval |
|
| Sets the upload endpoint. | URL | |
| Configures the path where archived data gets stored. | File path | /var/lib/insights-operator |
| Specifies the endpoint for downloading the latest Red Hat Lightspeed analysis. | URL | |
| Sets the endpoint for providing conditional gathering rule definitions. | URL | |
| Enables the global obfuscation of IP addresses and the cluster domain name. | String | Not applicable |
| Enables the obfuscation of Data Validation Operator data. The cluster resource ID is only visible in the archive file and not the resource name. | String | Not applicable |
| Set custom proxy for Insights Operator. | URL | No default |
| Specifies the frequency of the simple content access (SCA) entitlements download. | Time interval |
|
| Specifies the endpoint for downloading the simple content access (SCA) entitlements. | URL | https://api.openshift.com/api/accounts_mgmt/v1/entitlement_certificates |
| Disables the simple content access entitlements download. | Boolean |
|