Microsoft Teams¶
Setup¶
1. Webhook im Teams-Channel anlegen¶
Teams → Channel → … (Mehr) → Connectors → Incoming Webhook konfigurieren.
Name: „Vesana Alerts". Optional: Symbol hochladen.
Erstellen liefert eine Webhook-URL der Form https://outlook.office.com/webhook/....
2. In Vesana hinterlegen¶
/notification-channels → Neuer Channel → Typ Teams:
| Feld | Wert |
|---|---|
| Name | „Teams #monitoring" |
| Webhook-URL | aus Schritt 1 |
| Severity-Filter | wie sonst |
| Recovery-Notifications | wie sonst |
Format¶
Adaptive Card mit:
- Severity-Farbe (Theme: Attention / Warning / Good)
- Host + Service als Titel
- Plugin-Output als Body
- Action-Buttons („Host öffnen")
┌─ Adaptive Card ────────────────────────┐
│ 🔴 CRITICAL │
│ web01.acme.local — Disk /var │
│ │
│ Disk usage 96.4% (Threshold 95%) │
│ │
│ Tenant: Acme · Profil: Linux Web │
│ │
│ [Host öffnen] │
└────────────────────────────────────────┘
Interactive Actions¶
Teams-Adaptive-Cards können Buttons mit Action.Http haben — damit könnte Ack direkt aus Teams funktionieren. Aktuell nicht implementiert (Request kommt mit anderen Auth-Headers als Slack), in Roadmap.
Workaround: Host öffnen führt direkt zur Service-Detail-Seite, wo Ack mit einem Klick geht.
Throttle¶
Teams-Webhooks haben Rate-Limits (~1 req/s pro Channel). Bei Alert-Stürmen kann es zu 429-Antworten kommen — Vesana macht Retry mit Backoff. Bei Bedarf:
- Throttle pro Channel im Vesana-Channel auf 2 s setzen
- Gruppierung in Alert-Rules aktivieren
Mehrere Tenants¶
Für MSP-Setups: einen Channel pro Kunden-Tenant. Im Channel-Modal: Tenant filtern → nur Alerts dieses Tenants gehen in den Channel.
Anschluss¶
- Notification Channels
- Slack — analoges Setup