# Prometheus + Instatus

Source: https://instatus.com/help/pt-br/integrations/prometheus

1. Acesse a [Instatus](https://instatus.com), em Integrações, selecione Prometheus
2. Selecione os modelos a usar ao criar e resolver incidentes automatizados
3. Copie a URL do webhook da sua página
4. Configure o Alertmanager com um receptor de webhook no arquivo `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. Substitua `<INSERT-YOUR-WEBHOOK>` pelo webhook que você gerou antes no arquivo alertmanager.yml e rode o Alertmanager com o comando a seguir.

6. Rode o Alertmanager com o comando `alertmanager --config.file=alertmanager.yml`

Pronto! 👏
