Skip to main content

Teams

Notifications

Mission Control integrates with Microsoft Teams to send notifications to channels.


Notifications

Use cases:

  • Send alerts to Teams channels when health checks fail or configs change
  • Format notifications with rich MessageCard layouts
  • Route notifications to different channels based on severity or team
  • Customize message titles and theme colors
  • Keep teams informed of incidents and infrastructure changes

Send notifications to Microsoft Teams channels using incoming webhooks.

Basic Channel Notification

teams-notification.yaml
apiVersion: mission-control.flanksource.com/v1
kind: Notification
metadata:
name: teams-alerts
spec:
events:
- check.failed
- check.passed
to:
teams:
webhook: https://outlook.office.com/webhook/...
Custom Title and Color
teams-custom-notification.yaml
apiVersion: mission-control.flanksource.com/v1
kind: Notification
metadata:
name: teams-incidents
spec:
events:
- incident.created
- incident.resolved
to:
teams:
webhook: https://outlook.office.com/webhook/...
title: "Infrastructure Alert"
color: "{{if eq .event \"incident.created\"}}FF0000{{else}}00FF00{{end}}"
Using Connection Reference
teams-connection-notification.yaml
apiVersion: mission-control.flanksource.com/v1
kind: Notification
metadata:
name: teams-via-connection
spec:
events:
- config.changed
to:
connection: connection://teams/engineering
title: "Config Change Detected"
body: |
**Resource:** {{.config.name}}
**Type:** {{.config.type}}
**Change:** {{.change.change_type}}
Routing by Severity
teams-routing-notification.yaml
apiVersion: mission-control.flanksource.com/v1
kind: Notification
metadata:
name: teams-critical
spec:
events:
- check.failed
filter: check.severity == "critical"
to:
teams:
webhook:
valueFrom:
secretKeyRef:
name: teams-webhooks
key: critical-channel
title: "CRITICAL: {{.check.name}}"
---
apiVersion: mission-control.flanksource.com/v1
kind: Notification
metadata:
name: teams-warnings
spec:
events:
- check.failed
filter: check.severity == "warning"
to:
teams:
webhook:
valueFrom:
secretKeyRef:
name: teams-webhooks
key: warnings-channel

Setting Up a Webhook

  1. In Microsoft Teams, go to the channel where you want notifications
  2. Click the three dots (...) next to the channel name
  3. Select Connectors (or Workflows for newer Teams)
  4. Find Incoming Webhook and click Configure
  5. Name the webhook and optionally upload an icon
  6. Copy the webhook URL

Configuration Options

FieldDescription
webhookTeams incoming webhook URL
titleMessage card title (supports templates)
colorTheme color as hex code (e.g., FF0000 for red)

Next Steps