メインコンテンツへスキップ

PagerDuty の Data Infrastructure Insights からの Webhook 通知が HTTP 400 Bad Request で失敗する

Views:
1
Visibility:
Public
Votes:
0
Category:
data-infrastructure-insights
Specialty:
om
Last Updated:

環境

  • Data Infrastructure Insights(DII)

問題

  • Data Infrastructure Insights からの PagerDuty ウェブフック通知が HTTP 400 Bad Request で失敗します。
  • DII ウェブフックエディタには Error calling Webhook (status: 400) と表示されます。
  • カスタムルーティングキーシークレットが設定されている場合でも、アラートは PagerDuty に配信されません。

原因

  • PagerDuty Events API v2 では、routing_key JSON フィールドに有効な統合キーが必要です。
  • DII ウェブフックメッセージ本文は空の routing_key 値(例:"routing_key": "")を送信するか、設定されたカスタムシークレットを参照していません。
  • PagerDuty はペイロードを拒否し、HTTP 400 を返します。

解決策

  1. PagerDuty で対象のサービスを開き、Events API v2 Integration Keyをコピーします。
  2. DII で、Admin > Notifications > Webhooks に移動し、PagerDuty Webhook を編集します。
  3. Custom Parameters and Secrets で、routingKey という名前のシークレットを作成または更新し、Integration Key の値を設定します。
  4. メッセージ本文の JSON で、routing_key フィールドのシークレットを参照します:
    "routing_key": "%%routingKey%%",
  5. Webhook を保存します。
  6. 実際のモニターアラートをトリガーして配信を検証し、Webhooks リストページのStatus列とLast Reported列を確認します。

パートナーノート

 

追加情報

  • フィールドマッピングと設定のガイダンスについては、PagerDuty の Webhook の例を参照してください。
  • 注:DII のTest Webhookボタンはパラメータを置き換えません。400というテスト結果だけでは、本番環境への配信が失敗していると断定できません。

内部情報

  • ケース2010762847に起因します。
  • お客様は有効なカスタムシークレットを設定していましたが、メッセージ本文で%%routingKey%%の代わりに空のrouting_key値が使用されていました。

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.