8.3. テレメトリーデータをサードパーティーシステムに転送する


OpenTelemetry Collector は、gRPC または HTTP トランスポート経由で実装された OpenTelemetry Protocol (OTLP) を介し、OTLP エクスポーターを使用してテレメトリーデータをエクスポートします。テレメトリーデータをサードパーティーシステムに転送する必要があり、そのシステムが Red Hat build of OpenTelemetry で OTLP またはその他のサポートされているプロトコルをサポートしていない場合は、OTLP 経由でテレメトリーデータを受信し、カスタムエクスポーターを使用してサードパーティーシステムにエクスポートできる、サポート対象外のカスタム OpenTelemetry Collector をデプロイできます。

警告

Red Hat はカスタムデプロイメントをサポートしていません。

前提条件

  • OTLP 経由でテレメトリーデータをサードパーティーシステムにエクスポートできる、サポート対象外の独自のカスタムエクスポーターを開発している。

手順

  • OperatorHub 経由または手動でカスタム Collector をデプロイします。

    • サードパーティーのシステムでサポートされている場合は、OperatorHub を使用してカスタム Collector をデプロイします。
    • config map、デプロイメント、およびサービスを使用して、カスタム Collector を手動でデプロイします。

      カスタム Collector のデプロイメントの例

      apiVersion: v1
      kind: ConfigMap
      metadata:
        name: custom-otel-collector-config
      data:
        otel-collector-config.yaml: |
          receivers:
            otlp:
              protocols:
                grpc:
          exporters:
            debug: {}
            prometheus:
          service:
            pipelines:
              traces:
                receivers: [otlp]
                exporters: [debug] 
      1
      
      ---
      apiVersion: apps/v1
      kind: Deployment
      metadata:
        name: custom-otel-collector-deployment
      spec:
        replicas: 1
        selector:
          matchLabels:
            component: otel-collector
        template:
          metadata:
            labels:
              component: otel-collector
          spec:
            containers:
            - name: opentelemetry-collector
              image: ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib:latest 
      2
      
              command:
              - "/otelcol-contrib"
              - "--config=/conf/otel-collector-config.yaml"
              ports:
              - name: otlp
                containerPort: 4317
                protocol: TCP
              volumeMounts:
              - name: otel-collector-config-vol
                mountPath: /conf
                readOnly: true
            volumes:
            - name: otel-collector-config-vol
              configMap:
                name: custom-otel-collector-config
      ---
      apiVersion: v1
      kind: Service
      metadata:
        name: custom-otel-collector-service 
      3
      
        labels:
          component: otel-collector
      spec:
        type: ClusterIP
        ports:
        - name: otlp-grpc
          port: 4317
          targetPort: 4317
        selector:
          component: otel-collector
      Copy to Clipboard Toggle word wrap

      1
      debug は、サードパーティーシステムに必要なエクスポーターに置き換えます。
      2
      イメージは、サードパーティーシステムに必要なエクスポーターを備えた OpenTelemetry Collector の必要なバージョンに置き換えます。
      3
      サービス名は、OTLP エクスポーターを設定するために Red Hat build of OpenTelemetry Collector CR で使用されます。
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

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

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

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

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

会社概要

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

Theme

© 2025 Red Hat