Prometheus + Instatus

  1. Vai su Instatus, nella sezione Integrazioni scegli Prometheus
  2. Scegli i modelli da usare per creare e risolvere gli incidenti automatici
  3. Copia l'URL webhook della tua pagina
  4. Configura Alertmanager con un receiver webhook nel file alertmanager.yml.
global:
resolve_timeout: 5m
route:
receiver: webhook_receiver
receivers:
- name: webhook_receiver
webhook_configs:
- url: "<INSERT-YOUR-WEBHOOK>"
send_resolved: true
  1. Sostituisci <INSERT-YOUR-WEBHOOK> nel file alertmanager.yml con il webhook che hai generato prima ed esegui Alertmanager con il comando seguente.

  2. Esegui Alertmanager con questo comando: alertmanager --config.file=alertmanager.yml

Fatto! 👏