Questo contenuto non è disponibile nella lingua selezionata.
Chapter 9. Removing the Red Hat build of OpenTelemetry
The steps for removing the Red Hat build of OpenTelemetry from an OpenShift Container Platform cluster are as follows:
- Shut down all Red Hat build of OpenTelemetry pods.
- Remove any OpenTelemetryCollector instances.
- Remove the Red Hat build of OpenTelemetry Operator.
9.1. Removing an OpenTelemetry Collector instance by using the web console Copia collegamentoCollegamento copiato negli appunti!
You can remove an OpenTelemetry Collector instance in the Administrator view of the web console.
Prerequisites
-
You are logged in to the web console as a cluster administrator with the role.
cluster-admin -
For Red Hat OpenShift Dedicated, you must be logged in using an account with the role.
dedicated-admin
Procedure
-
Go to Operators
Installed Operators Red Hat build of OpenTelemetry Operator OpenTelemetryInstrumentation or OpenTelemetryCollector. -
To remove the relevant instance, select
Delete … Delete. - Optional: Remove the Red Hat build of OpenTelemetry Operator.
9.2. Removing an OpenTelemetry Collector instance by using the CLI Copia collegamentoCollegamento copiato negli appunti!
You can remove an OpenTelemetry Collector instance on the command line.
Prerequisites
An active OpenShift CLI (
) session by a cluster administrator with theocrole.cluster-adminTip-
Ensure that your OpenShift CLI () version is up to date and matches your OpenShift Container Platform version.
oc Run
:oc login$ oc login --username=<your_username>
-
Ensure that your OpenShift CLI (
Procedure
Get the name of the OpenTelemetry Collector instance by running the following command:
$ oc get deployments -n <project_of_opentelemetry_instance>Remove the OpenTelemetry Collector instance by running the following command:
$ oc delete opentelemetrycollectors <opentelemetry_instance_name> -n <project_of_opentelemetry_instance>- Optional: Remove the Red Hat build of OpenTelemetry Operator.
Verification
To verify successful removal of the OpenTelemetry Collector instance, run
again:oc get deployments$ oc get deployments -n <project_of_opentelemetry_instance>