# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://note.onurbolatoglu.com/prometheus/slack-integration-with-prometheus.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
