Chapter 2. Disabling telemetry data collection in RHDH
To disable telemetry data collection, you must disable the analytics-provider-segment
plugin either using the Helm Chart or the Red Hat Developer Hub Operator configuration.
As an administrator, you can disable the telemetry data collection feature based on your needs. For example, in an air-gapped environment, you can disable this feature to avoid needless outbound requests affecting the responsiveness of the RHDH application. For more details, see the Disabling telemetry data collection in RHDH section.
2.1. Disabling telemetry data collection using the Operator
You can disable the telemetry data collection feature by using the Operator.
Prerequisites
- You have logged in as an administrator in the OpenShift Container Platform web console.
- You have installed Red Hat Developer Hub on OpenShift Container Platform using the Operator.
Procedure
Perform one of the following steps:
-
If you have created the
dynamic-plugins-rhdh
ConfigMap file and not configured theanalytics-provider-segment
plugin, add the plugin to the list of plugins and set itsplugins.disabled
parameter totrue
. -
If you have created the
dynamic-plugins-rhdh
ConfigMap file and configured theanalytics-provider-segment
plugin, search the plugin in the list of plugins and set itsplugins.disabled
parameter totrue
. If you have not created the ConfigMap file, create it with the following YAML code:
kind: ConfigMap apiVersion: v1 metadata: name: dynamic-plugins-rhdh data: dynamic-plugins.yaml: | includes: - dynamic-plugins.default.yaml plugins: - package: './dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment' disabled: true
kind: ConfigMap apiVersion: v1 metadata: name: dynamic-plugins-rhdh data: dynamic-plugins.yaml: | includes: - dynamic-plugins.default.yaml plugins: - package: './dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment' disabled: true
Copy to Clipboard Copied!
-
If you have created the
Set the value of the
dynamicPluginsConfigMapName
parameter to the name of yourdynamic-plugins-rhdh
config map in yourBackstage
custom resource:# ... spec: application: dynamicPluginsConfigMapName: dynamic-plugins-rhdh # ...
# ... spec: application: dynamicPluginsConfigMapName: dynamic-plugins-rhdh # ...
Copy to Clipboard Copied! - Save the configuration changes.
2.2. Disabling telemetry data collection using the Helm Chart
You can disable the telemetry data collection feature by using the Helm Chart.
Prerequisites
- You have logged in as an administrator in the OpenShift Container Platform web console.
- You have installed Red Hat Developer Hub on OpenShift Container Platform using the Helm Chart.
Procedure
- In the Developer perspective of the OpenShift Container Platform web console, go to the Helm view to see the list of Helm releases.
Click the overflow menu on the Helm release that you want to use and select Upgrade.
NoteYou can also create a new Helm release by clicking the Create button and edit the configuration to disable telemetry.
Use either the Form view or YAML view to edit the Helm configuration:
Using Form view
-
Expand Root Schema
global Dynamic plugins configuration. List of dynamic plugins that should be installed in the backstage application. - Click the Add list of dynamic plugins that should be installed in the backstage application. link.
Perform one of the following steps:
If you have not configured the plugin, add the following value in the Package specification of the dynamic plugin to install. It should be usable by the npm pack command. field:
./dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment
-
If you have configured the plugin, find the Package specification of the dynamic plugin to install. It should be usable by the npm pack command. field with the
./dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment
value.
- Select the Disable the plugin checkbox.
- Click Upgrade.
-
Expand Root Schema
Using YAML view
Perform one of the following steps:
If you have not configured the plugin, add the following YAML code in your
values.yaml
Helm configuration file:# ... global: dynamic: plugins: - package: './dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment' disabled: true # ...
# ... global: dynamic: plugins: - package: './dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment' disabled: true # ...
Copy to Clipboard Copied! -
If you have configured the plugin, search it in your Helm configuration and set the value of the
plugins.disabled
parameter totrue
.
- Click Upgrade.