Collector メトリクスの設定


Red Hat build of OpenTelemetry 3.8

OpenTelemetry Collector のパフォーマンスとリソースの使用状況の監視

Red Hat OpenShift Documentation Team

概要

このドキュメントでは、OpenTelemetry Collector の内部メトリクスを設定して監視する方法を説明します。メモリー使用量、CPU 使用率、トレースとスパン処理統計、ドロップされたテレメトリーデータなど、Collector パフォーマンスを監視するためのメトリクス収集を有効にする方法を説明します。Web コンソールを使用した ServiceMonitor および PodMonitor の自動作成、Prometheus 統合、および検証手順の設定が含まれます。

第1章 OpenTelemetry Collector メトリクスの設定

次のリストは、メトリクスの一部を示しています。

  • Collector のメモリー使用量
  • CPU の使用率
  • 処理されたアクティブなトレースとスパンの数
  • ドロップされたスパン、ログ、またはメトリクス
  • エクスポーターとレシーバーの統計情報

Red Hat build of OpenTelemetry Operator は、Collector の内部メトリクスを公開する <instance_name>-collector-monitoring という名前のサービスを自動的に作成します。このサービスは、デフォルトでポート 8888 をリッスンします。

これらのメトリクスを使用して、Collector のパフォーマンス、リソース消費、その他の内部動作を監視できます。Prometheus インスタンスや別の監視ツールを使用して、前述の <instance_name>-collector-monitoring サービスからこれらのメトリクスをスクレイピングすることもできます。

注記

OpenTelemetryCollector カスタムリソース (CR) の spec.observability.metrics.enableMetrics フィールドが true に設定されている場合、OpenTelemetryCollector CR は Prometheus ServiceMonitor または PodMonitor CR を自動的に作成し、Prometheus がメトリクスをスクレイピングできるようにします。

前提条件

  • ユーザー定義プロジェクトのモニタリングがクラスターで有効にされている。

手順

  • OpenTelemetry Collector インスタンスのメトリクスを有効にするには、spec.observability.metrics.enableMetrics フィールドを true に設定します。

    apiVersion: opentelemetry.io/v1beta1
    kind: OpenTelemetryCollector
    metadata:
      name: <name>
    spec:
      observability:
        metrics:
          enableMetrics: true
    Copy to Clipboard Toggle word wrap

検証

Web コンソールの Administrator ビューを使用して、正常に設定されたことを確認できます。

  1. ObserveTargets に移動します。
  2. Source: User でフィルタリングします。
  3. opentelemetry-collector-<instance_name> 形式の ServiceMonitors または PodMonitors のステータスが Up であることを確認します。

法律上の通知

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.
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2026 Red Hat
トップに戻る