Prometheus
Automatize sua página de status com Prometheus
- Criar um webhook do Prometheus
- Primeiro vamos configurar o Alertmanager com um receiver de webhook no
alertmanager.ymlarquivo. - Substitua
<INSERT-YOUR-WEBHOOK>pelo webhook que geramos antes no arquivo alertmanager.yml e inicie o Alertmanager com o comando abaixo. - Inicie o Alertmanager com o comando abaixo
alertmanager --config.file=alertmanager.yml
global:resolve_timeout: 5mroute:receiver: webhook_receiverreceivers:- name: webhook_receiverwebhook_configs:- url: '<INSERT-YOUR-WEBHOOK>'send_resolved: true

