Alerting & intégrations¶
Observa reprend les formats de l'écosystème Prometheus :
- Règles au format Prometheus rule groups (
alert,expr,for,keep_firing_for,labels,annotations) — import/export YAML. Une extensionx-observapermet d'utiliser toute source de données avec une condition de seuil. - Notifications configurées au format alertmanager.yml :
global,route(matchers,group_by,group_wait,group_interval,repeat_interval,continue),receivers,inhibit_rules. - Silences et API Alertmanager v2 (
/api/alertmanager/api/v2/alerts,/silences,/alerts/groups,/status). - Charge utile des webhooks = format webhook Alertmanager v4.
Intégrations (receivers)¶
| Clé | Outil |
|---|---|
servicenow_configs |
ServiceNow — incident (Table API, création/mise à jour/résolution, corrélation) ou Event Management |
jira_configs |
Jira (création de ticket, commentaire, déduplication) |
pagerduty_configs |
PagerDuty Events v2 (trigger/resolve) |
opsgenie_configs |
Opsgenie / Jira Service Management |
victorops_configs |
Splunk On-Call |
msteams_configs, slack_configs, googlechat_configs, discord_configs, webex_configs, telegram_configs |
messageries |
email_configs, webhook_configs |
e-mail SMTP, webhook générique |
alertmanager_configs |
transfert vers un Alertmanager externe |
route:
receiver: ops
group_by: [alertname, service_name, deployment_environment_name]
routes:
- matchers: ['severity="critical"', 'sla_tier=~"gold|platinum"']
receiver: itsm
receivers:
- name: ops
msteams_configs: [{ webhook_url: https://…, send_resolved: true }]
- name: itsm
servicenow_configs:
- instance_url: https://acme.service-now.com
mode: incident
username: observa
password: <secret>
assignment_group: Run-Ops
pagerduty_configs: [{ routing_key: <secret> }]
Interconnexion avec Prometheus Alertmanager¶
- Prometheus → Observa : déclarez Observa comme alertmanager (
path_prefix: /api/alertmanager, jetonALERT_INGEST_TOKEN). - Observa → Alertmanager : onglet Interconnexions ; les alertes sont réémises chaque minute vers l'API v2.
- Consultation : source de données « Alertmanager ».