Docs » Splunk Observability Cloudを使用してサードパーティのサービスにアラート通知を送信する » Splunk Observability Cloudを使用してSlackにアラート通知を送信する

Splunk Observability Cloudを使用してSlackにアラート通知を送信する 🔗

ディテクターのアラート条件が満たされたとき、およびアラートが解除されたときにSlackにアラート通知を自動送信するように、Splunk Observability Cloudを設定できます。

To send Splunk Observability Cloud alert notifications to Slack, complete the following configuration tasks:

注意

インテグレーションを作成したユーザーが組織を離れ、そのSlackアカウントが無効化された場合、Slackインテグレーションは機能しなくなります。

Step 1: Create a Slack integration in Splunk Observability Cloud 🔗

You must be a Splunk Observability Cloud administrator, Slack administrator, and be authorized to add apps to Slack to complete this task.

This method of integrating with Slack replaces a prior design. Slack integrations created using the prior design display an option to upgrade in the Splunk Observability Cloud UI. While the prior design continues to work, upgrade your integrations to use the newer integration design. You must upgrade your integration if you want image previews to display when pasting a chart URL into Slack. To learn more, see チャートのURLをSlackに貼り付ける.

To create a Slack integration in Splunk Observability Cloud:

  1. Splunk Observability Cloudにログインします。

  2. Slackガイド付きセットアップ を開きます。以下の方法で、ガイド付きセットアップに自分で移動することもできます:

    1. 左のナビゲーションメニューで、Data Management を選択します。

    2. Go to the Available integrations tab, or select Add Integration in the Deployed integrations tab.

    3. インテグレーションのフィルターメニューで、All を選択します。

    4. Search フィールドで Slack を検索し、選択します。

  3. 新規インテグレーション を選択すると、設定オプションが表示されます。エラーが表示される場合は、Slackにアプリを追加する権限がないため、このインテグレーションを作成できません。Slackの管理者にサポートを依頼してください。

  4. Slackで必要とされる権限を確認し、許可 を選択します。

  5. デフォルトでは、インテグレーションの名前は Slack になっています。インテグレーションに一意の記述名を付けます。この名前がダウンストリームでどのように使用されるかについては、About naming your integrations を参照してください。

  6. 保存 します。

注釈

Splunk Observability Cloud は、次のSlack APIを使用します: oauth.accessconversations.listchat.postMessage、および chat.unfurl

Step 2: Add a Slack integration as a detector alert recipient in Splunk Observability Cloud 🔗

To add a Slack integration as a detector alert recipient in Splunk Observability Cloud:

  1. Slackインテグレーションを使用してアラート通知を送信するように設定するディテクターを作成または編集します。

    ディテクターに関する作業の詳細は、アラートをトリガーするディテクターを作成する および 「ディテクター」メニューを使用してアラートの受信登録をする を参照してください。

  2. アラート受信者 のステップで、受信者の追加 を選択します。

  3. Slack を選択し、アラート通知の送信に使用するSlackインテグレーション名を選択します。これは、Step 1: Create a Slack integration in Splunk Observability Cloud で作成したインテグレーション名です。

    • For public Slack channels, enter the name of the channel you want to send the notifications to.

    • For private Slack channels, you must invite the SignalFx app to your channel:

      1. In Slack, navigate to the private channel you want to send notifications to.

      2. In the message field, enter the /invite @SignalFx, <YOUR_ORG_REALM> command. For example, /invite @SignalFx, US1.

        注釈

        For US0 realm, the invitation command is /invite @SignalFx.

      3. In the detector subscription configuration, enter the private channel name. Splunk Observability Cloud can’t find and autocomplete private Slack channels, but you can still send notifications to them.

  4. ディテクターをアクティブ化し、保存します。

Splunk Observability Cloudは、ディテクターによってアラートがトリガーされたとき、およびアラートが解除されたときに、Slackチャンネルにアラート通知を送信します。

This page was last updated on 2024年06月05日.