删除红帽构建的 OpenTelemetry
Red Hat build of OpenTelemetry 3.8
卸载 Collector 实例和 OpenTelemetry Operator
摘要
本文档论述了如何从 OpenShift 集群中删除 Red Hat build of OpenTelemetry。了解删除的正确序列:关闭 OpenTelemetry pod、删除 OpenTelemetryCollector 和 OpenTelemetryInstrumentation 实例,以及卸载 OpenTelemetry Operator。包含使用 Web 控制台管理员视图和命令行界面删除实例的流程,验证步骤以确认成功删除。
第 1 章 删除 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
从 OpenShift Container Platform 集群中删除红帽构建的 OpenTelemetry 步骤如下:
- 关闭红帽构建的 OpenTelemetry pod。
- 删除任何 OpenTelemetryCollector 实例。
- 删除 OpenTelemetry Operator 的红帽构建。
1.1. 使用 Web 控制台删除 OpenTelemetry Collector 实例 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
您可以在 web 控制台的 Administrator 视图中删除 OpenTelemetry Collector 实例。
先决条件
-
以集群管理员身份使用
cluster-admin角色登录到 web 控制台。 -
对于 Red Hat OpenShift Dedicated,您必须使用具有
dedicated-admin角色的帐户登录。
流程
- 进入 Ecosystem → Installed Operators → 红帽构建的 OpenTelemetry Operator → OpenTelemetry Instrumentation 或 OpenTelemetryCollector。
-
要删除相关实例,请选择
→ Delete … → Delete。
- 可选:删除红帽构建的 OpenTelemetry Operator。
1.2. 使用 CLI 删除 OpenTelemetry Collector 实例 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
您可以在命令行中删除 OpenTelemetry Collector 实例。
先决条件
集群管理员具有
cluster-admin角色的活跃 OpenShift CLI (oc) 会话。提示-
确保您的 OpenShift CLI (
oc) 版本为最新版本,并与您的 OpenShift Container Platform 版本匹配。 运行
oc login:oc login --username=<your_username>
$ oc login --username=<your_username>Copy to Clipboard Copied! Toggle word wrap Toggle overflow
-
确保您的 OpenShift CLI (
流程
运行以下命令,获取 OpenTelemetry Collector 实例的名称:
oc get deployments -n <project_of_opentelemetry_instance>
$ oc get deployments -n <project_of_opentelemetry_instance>Copy to Clipboard Copied! Toggle word wrap Toggle overflow 运行以下命令来删除 OpenTelemetry Collector 实例:
oc delete opentelemetrycollectors <opentelemetry_instance_name> -n <project_of_opentelemetry_instance>
$ oc delete opentelemetrycollectors <opentelemetry_instance_name> -n <project_of_opentelemetry_instance>Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 可选:删除红帽构建的 OpenTelemetry Operator。
验证
要验证成功删除 OpenTelemetry Collector 实例,请再次运行
oc get deployments:oc get deployments -n <project_of_opentelemetry_instance>
$ oc get deployments -n <project_of_opentelemetry_instance>Copy to Clipboard Copied! Toggle word wrap Toggle overflow
法律通告 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Copyright © 2025 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.