Admin

Pengaturan Slack

Siapkan alert Slack

Buat app Slack, aktifkan Incoming Webhooks, lalu salin URL webhook ke Alerts.

Sebelum mulai

  • Gunakan workspace Slack tempat Anda dapat membuat atau memasang app.
  • Pilih channel yang harus menerima alert sebelum membuat webhook.
  • Jaga URL webhook tetap privat. Siapa pun yang memilikinya dapat memposting ke channel tersebut.
  • Buat webhook baru jika Anda perlu memindahkan alert ke channel lain.

1. Buat app Slack

Buka halaman app Slack API dan buat app baru untuk workspace tempat alert akan diposting.

Buka Your Apps di Slack API dan klik Create an App.
Buka Your Apps di Slack API dan klik Create an App.
Pilih From scratch agar Anda dapat mengonfigurasi app secara manual.
Pilih From scratch agar Anda dapat mengonfigurasi app secara manual.
Setelah app dibuat, buka Incoming Webhooks dari menu kiri.
Setelah app dibuat, buka Incoming Webhooks dari menu kiri.

2. Aktifkan Incoming Webhooks

Incoming Webhooks memungkinkan Alerts memposting pesan ke channel Slack menggunakan URL webhook privat.

Aktifkan Activate Incoming Webhooks untuk app.
Aktifkan Activate Incoming Webhooks untuk app.
Gulir ke Webhook URLs for Your Workspace dan klik Add New Webhook.
Gulir ke Webhook URLs for Your Workspace dan klik Add New Webhook.

3. Pilih channel dan salin URL webhook

Pilih channel Slack yang harus menerima alert, izinkan app, lalu salin URL webhook yang dibuat.

Pilih channel untuk webhook, lalu klik Allow.
Pilih channel untuk webhook, lalu klik Allow.
Salin Webhook URL baru dari halaman Incoming Webhooks.
Salin Webhook URL baru dari halaman Incoming Webhooks.

4. Tempel webhook ke Alerts

Kembali ke Alerts, pilih Slack, masukkan nama channel privat, tempel URL webhook, lalu simpan channel.

Tempel Slack Incoming Webhook URL ke kolom Webhook URL di Alerts.
Tempel Slack Incoming Webhook URL ke kolom Webhook URL di Alerts.