# Prometheus + Instatus

Source: https://instatus.com/help/pl/integrations/prometheus

1. Wejdź na [Instatus](https://instatus.com), w sekcji Integracje wybierz Prometheus
2. Wybierz szablony używane przy tworzeniu i rozwiązywaniu automatycznych incydentów
3. Skopiuj URL webhooka swojej strony
4. Skonfiguruj Alertmanagera z odbiornikiem webhook w pliku `alertmanager.yml`.

```yaml
global:
  resolve_timeout: 5m
route:
  receiver: webhook_receiver
receivers:
  - name: webhook_receiver
    webhook_configs:
      - url: "<INSERT-YOUR-WEBHOOK>"
        send_resolved: true
```

5. Zamień `<INSERT-YOUR-WEBHOOK>` na webhook wygenerowany wcześniej w pliku alertmanager.yml i uruchom Alertmanagera poniższym poleceniem.

6. Uruchom Alertmanagera poleceniem `alertmanager --config.file=alertmanager.yml`

Gotowe! 👏
