> For the complete documentation index, see [llms.txt](https://note.onurbolatoglu.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://note.onurbolatoglu.com/prometheus/slack-integration-with-prometheus.md).

# Slack integration with Prometheus

Slack ile Prometheus entegrasyonu yapmak için aşağıdaki adımları takip etmeniz gerekmektedir:\ <br>

<figure><img src="/files/k5VqCfKMtlC19GNgo5pQ" alt=""><figcaption></figcaption></figure>

1. Slack hesabınıza girip, bir oda oluşturmalısınız. Bizim örneğimizde bu odanın adı '#prometheus' olarak belirledik.

<figure><img src="/files/Jo1U0b7ELK5AVQ1dxGjS" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/jojSviRv27BYRbWRoQmB" alt=""><figcaption></figcaption></figure>

2. Add apps kısmından "incoming Webhooks" uygulamasını slack 'e yükleyip, az önce oluşturduğumuz odamıza atamamız gerekmektedir.  Ve alt kısımda bulunan webhook url kısmını kopyalamamız gerekmektedir, bunu alertmanager config de kullanacağız.

<figure><img src="/files/RalfzsD8Hbz6nHCuzBYW" alt=""><figcaption></figcaption></figure>

```yaml
- name: windows-team-manager
  slack_configs:
  - channel: '#prometheus'
    api_url: 'https://hooks.slack.com/services/T0234479W8JXT7/B01258SSSSA4563YSCAZ/BhgtsdasadDSDSasdERYHklbqvhh9'
    send_resolved: true
```

3. Slack üzerinden alarm göndereceğimiz grubun altına slack "webhook url" idmizi yapıştırıyoruz ardından alertmanager servisini restart edip, işlemleri tamamlıyoruz.

<figure><img src="/files/Gp29DRhT6jsZXESXcj1F" alt=""><figcaption></figcaption></figure>
