概要
Observability Pipelines では、パイプラインは 3 種類のコンポーネントから構成される順次の経路です。
- ソース: データソース (例: Datadog Agent) からデータを受信します。
- プロセッサー: データを強化し、変換します。
- 送信先: 処理されたデータの送信先。
次のいずれかの方法でパイプラインを作成できます。
UI で作成したパイプラインをプログラムでデプロイしたい場合は、パイプライン構成を JSON または Terraform にエクスポートするを参照してください。
UI でパイプラインをセットアップする
パイプラインコンポーネントをセットアップする
- Observability Pipelines に移動します。
- ユースケースに基づいてテンプレートを選択するか、New Pipeline をクリックして Logs Pipeline を選択します。
- ログソースを選択してセットアップします。
- 処理されたログの送信先を選択してセットアップします。
- プロセッサーグループで Edit をクリックし、Pipeline Simulation を使用して、プロセッサーを追加、更新、検証します。
- 注:
- パイプラインキャンバスには、プロセッサーグループが 25、プロセッサーが合計 150 という制限があります。
- プロセッサーをコピーしたい場合は、そのプロセッサーのコピーアイコンをクリックし、次に
command-v を使用して貼り付けます。
別のプロセッサーグループを追加する
To add another group of processors for a destination:
- Click the plus sign (+) at the bottom of the existing processor group.
- Click the name of the processor group to update it.
- Optionally, enter a group filter. Only data that match the filter query are sent through the processors in the group. See Search Syntax for more information.
- Click Add to add processors to the group.
- If you want to copy all processors in a group and paste them into the same processor group or a different group:
- Click the three dots on the processor group.
- Select Copy all processors.
- Select the desired processor group, and then paste the processors into it.
- You can toggle the switch to enable and disable the processor group and also each individual processor.
Notes:
- There is a limit of 25 processor groups for a pipeline canvas.
別のプロセッサーと送信先のセットを追加する
To add another set of processors and destinations, click the plus sign (+) to the left of the processor group to add another set of processors and destinations to the source.
To delete a processor group, you need to delete all destinations linked to that processor group. When the last destination is deleted, the processor group is removed with it.
プロセッサーグループに別の送信先を追加する
To add an additional destination to a processor group, click the plus sign (+) to the right of the processor group.
To delete a destination, click on the trash icon to the top right of the destination.
- If you delete a destination from a processor group that has multiple destinations, only the deleted destination is removed.
- If you delete a destination from a processor group that only has one destination, both the destination and the processor group are removed.
You must delete the destination to stop the Worker from sending events to it. Disabling all processors associated with the destination does not disable it. The Worker continues to send events to it.
Notes:
- A pipeline must have at least one destination. If a processor group only has one destination, that destination cannot be deleted.
- You can add a total of 20 destinations for a pipeline.
- If you add multiple destinations of the same type to a pipeline, you must use Secrets Management. For example, if you add two HTTP Client destinations for two different HTTP clients, you must use secret identifiers for the HTTP client URIs. You cannot use the default
DESTINATION_HTTP_CLIENT_URI to store the two different HTTP client URIs.
- Observability Pipelines に移動します。
- メトリクスタグガバナンステンプレートを選択するか、New Pipeline をクリックして Metrics Pipeline を選択します。
- メトリクスソースを選択してセットアップします。
- 処理されたメトリクスの送信先を選択してセットアップします。
- プロセッサーグループで Edit をクリックし、Pipeline Simulation を使用して、プロセッサーを追加、更新、検証します。
- 注:
- パイプラインキャンバスには、プロセッサーグループが 25、プロセッサーが合計 150 という制限があります。
- プロセッサーをコピーしたい場合は、そのプロセッサーのコピーアイコンをクリックし、次に貼り付けます (
Cmd+V は Mac、Ctrl+V は Windows/Linux)。
別のプロセッサーグループを追加する
To add another group of processors for a destination:
- Click the plus sign (+) at the bottom of the existing processor group.
- Click the name of the processor group to update it.
- Optionally, enter a group filter. Only data that match the filter query are sent through the processors in the group. See Search Syntax for more information.
- Click Add to add processors to the group.
- If you want to copy all processors in a group and paste them into the same processor group or a different group:
- Click the three dots on the processor group.
- Select Copy all processors.
- Select the desired processor group, and then paste the processors into it.
- You can toggle the switch to enable and disable the processor group and also each individual processor.
Notes:
- There is a limit of 25 processor groups for a pipeline canvas.
別のプロセッサーと送信先のセットを追加する
To add another set of processors and destinations, click the plus sign (+) to the left of the processor group to add another set of processors and destinations to the source.
To delete a processor group, you need to delete all destinations linked to that processor group. When the last destination is deleted, the processor group is removed with it.
プロセッサーグループに別の送信先を追加する
To add an additional destination to a processor group, click the plus sign (+) to the right of the processor group.
To delete a destination, click on the trash icon to the top right of the destination.
- If you delete a destination from a processor group that has multiple destinations, only the deleted destination is removed.
- If you delete a destination from a processor group that only has one destination, both the destination and the processor group are removed.
You must delete the destination to stop the Worker from sending events to it. Disabling all processors associated with the destination does not disable it. The Worker continues to send events to it.
Notes:
- A pipeline must have at least one destination. If a processor group only has one destination, that destination cannot be deleted.
- You can add a total of 20 destinations for a pipeline.
- If you add multiple destinations of the same type to a pipeline, you must use Secrets Management. For example, if you add two HTTP Client destinations for two different HTTP clients, you must use secret identifiers for the HTTP client URIs. You cannot use the default
DESTINATION_HTTP_CLIENT_URI to store the two different HTTP client URIs.
ワーカーをインストールしてパイプラインをデプロイする
ソース、プロセッサー、およびリンク先を設定した後、Next: Install をクリックします。プラットフォームにワーカーをインストールする方法については、ワーカーをインストールするを参照してください。ブートストラップオプションについては、高度なワーカー構成を参照してください。
デプロイ後にパイプラインに変更を加えたい場合は、既存のパイプラインを更新するを参照してください。
パイプラインのすぐに使えるモニターを有効化する
- Pipelines ページに移動し、パイプラインを見つけます。
- パイプラインの Monitors 列にある Enable monitors をクリックします。
- Start をクリックして、提示されたユースケースの 1 つについてモニターをセットアップします。
- メトリクスモニターは、選択されたユースケースに基づいて構成されます。構成を更新して、さらにカスタマイズできます。詳細については、メトリクスモニタードキュメントを参照してください。
API を使用してパイプラインをセットアップする
Observability Pipelines API を使用してパイプラインを作成します。リクエストペイロードの例については、API リファレンスを参照してください。
パイプラインを作成した後、ワーカーをインストールして、パイプライン経由でデータを送信します。
- ワーカーをインストールする際に必要なソース、プロセッサー、および送信先ごとの環境変数のリストについては、環境変数を参照してください。
既存のパイプラインに変更を加えるには、パイプラインを更新するエンドポイントを使用します。
ブートストラップオプションについては、高度なワーカー構成を参照してください。
Terraform を使用してパイプラインを作成するには、datadog_observability_pipeline モジュールを使用することができます。
パイプラインを作成した後、ワーカーをインストールして、パイプライン経由でデータを送信します。
- ワーカーをインストールする際に必要なソース、プロセッサー、および送信先ごとの環境変数のリストについては、環境変数を参照してください。
既存のパイプラインに変更を加えるには、datadog_observability_pipeline モジュールを使用します。
ブートストラップオプションについては、高度なワーカー構成を参照してください。
パイプラインを複製する
UI でパイプラインを複製するには、以下を実行します。
- Observability Pipelines に移動します。
- 複製するパイプラインを選択します。
- ページの右上にある歯車アイコンをクリックし、Clone を選択します。
パイプラインを削除する
UI でパイプラインを削除するには、以下を実行します。
- Observability Pipelines に移動します。
- 削除するパイプラインを選択します。
- ページの右上にある歯車アイコンをクリックし、Delete を選択します。
注: アクティブなパイプラインは削除できません。削除する前に、そのパイプラインのすべてのワーカーを停止する必要があります。
パイプラインの要件と制限
- パイプラインには少なくとも 1 つの送信先が必要です。プロセッサーグループに送信先が 1 つしかない場合、その送信先は削除できません。
- ログパイプラインの場合:
- ログパイプラインには合計 20 個の送信先を追加できます。
参考資料