0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Slackを連携してアラートを即通知する設定手順

Posted at

Slack通知を行うためのWebhookを作成するには、Slack側でIncoming Webhookを設定する必要があります。以下の手順でWebhookを作成できます。


✅ SlackでWebhookを作成する手順

1. Slack Appを作成する

  1. Slack API にアクセス
  2. 「Create New App」をクリック
  3. 「From scratch」を選択
  4. アプリ名とワークスペースを選択して「Create App」

2. Incoming Webhooks機能を有効にする

  1. 作成したAppの管理画面で「Incoming Webhooks」を選択
  2. Activate Incoming Webhooks」をONにする

3. Webhook URLを作成する

  1. ページ下部の「Add New Webhook to Workspace」をクリック
  2. 通知を送信したいチャンネルを選択(例: #alerts
  3. 「許可する」をクリック
  4. Webhook URL(https://hooks.slack.com/services/...)が生成されるのでコピーしておく
curl -X POST -H 'Content-type: application/json' \n
--data '{"text":"Hello, World!"}' \n
https://hooks.slack.com/services/xxxxxx/xxxxx/xxxxxxxxxx
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?