bedkillerspacex-boop/codex-skill-library/alertmanager-msteams

Claude Code and agent skill by bedkillerspacex-boop/codex-skill-library

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Route Prometheus Alertmanager notifications to Microsoft Teams for owned platforms: webhook connectors or Workflows, receiver config, templating, grouping/inhibition, secret hygiene, and quiet-hours patterns. Use when wiring Alertmanager → Teams channels or debugging missing/noisy adaptive cards — not for spamming external tenants.

Install

npx vskill@latest install bedkillerspacex-boop/codex-skill-library/alertmanager-msteams

SKILL.md

The same SKILL.md was published earlier as bedkillerspacex-boop/codex-skill-library/alertmanager-msteams.

Alertmanager → Microsoft Teams

Scope And Authorization

  • In scope: Alertmanager and Teams workspaces your organization owns.
  • Out of scope: Posting to Teams webhooks you do not control; using alerts for harassment.
  • Store webhook URLs as secrets (they are bearer capabilities).
  • Prefer non-prod channel for template experiments.
  • Pair config-as-code with code-quality-standards.

When To Use

  • Sending Alertmanager alerts to a Teams channel.
  • Migrating from Office 365 Incoming Webhook to Power Automate / Workflows URLs.
  • Reducing noise via routes, group_by, inhibit_rules, and severity splits.
  • Fixing broken JSON templates or HTTP 4xx from Teams.

Do Not Use As Primary

NeedSkill instead
Prometheus rule quality / promtoolprometheus skills / observability-metrics-tracing
On-call / SLO design broadlySRE skills in catalog
PagerDuty/Opsgenie primarythose integrations’ runbooks
Implementation quality baselinecode-quality-standards

Domain Focus

PieceRole
Alertmanager receiverNamed notification target
WebhookTeams Incoming Webhook or Workflow HTTP URL
route treeMatch labels → receiver
group_by / intervalsCollapse flapping
inhibit_rulesSuppress info when critical fires
TemplateCustom title/text/adaptive card JSON

Note: Microsoft has been evolving connectors; confirm current webhook/workflow mechanism for your tenant.

Workflow

1. Confirm scope and success criteria
  1. Record Alertmanager version, Teams channel, severities, on-call expectations.
  2. Success: firing/resolved messages visible; secrets not in git; critical path not dropped; noise acceptable.
  3. Separate channels: #alerts-critical vs #alerts-warn optional.
2. Create Teams webhook securely
  1. Create webhook/workflow in the target channel; copy URL once.
  2. Store in secret manager / sealed secret: TEAMS_WEBHOOK_URL.
  3. Restrict channel membership; treat URL as password.
3. Configure Alertmanager receiver

Native webhook (simple text):

yaml
# alertmanager.yml (illustrative)
global:
resolve_timeout: 5m
route:
receiver: teams-default
group_by: ["alertname", "namespace", "severity"]
group_wait: 30s
group_interval: 5m
repeat_interval: 4h
routes:
- matchers: ['severity=critical']
receiver: teams-critical
continue: false
- matchers: ['severity=~warning|info']
receiver: teams-default
receivers:
- name: teams-default
webhook_configs:
- url_file: /etc/alertmanager/secrets/teams_default_url
send_resolved: true
http_config:
follow_redirects: true
- name: teams-critical
webhook_configs:
- url_file: /etc/alertmanager/secrets/teams_critical_url
send_resolved: true
inhibit_rules:
- source_matchers: ['severity=critical']
target_matchers: ['severity=warning']
equal: ['alertname', 'namespace']

Sidecar / bridge (common): many teams use prometheus-msteams or similar to convert Alertmanager webhook payloads into Office connector JSON. If used:

yaml
# Still point Alertmanager at the bridge, not directly at Teams if format requires
receivers:
- name: teams
webhook_configs:
- url: http://prometheus-msteams:2000/alertmanager
send_resolved: true
4. Template content (keep actionable)
FieldGuidance
Titlealertname + severity
Textsummary/description annotations
LinkgeneratorURL or runbook annotation
Colorcritical red / warning orange if card supports

Ensure every critical alert has annotations.runbook_url or playbook.

5. Validate config and test
bash
amtool check-config alertmanager.yml
# Or
alertmanager --config.file=alertmanager.yml --check-config 2>/dev/null || true
# Reload
curl -X POST http://localhost:9093/-/reload
# Send test alert (authorized staging AM)
amtool alert add test_alert severity=warning instance=test --annotation=summary='teams wiring test'
  1. Confirm message in Teams; then resolve and confirm resolve post if enabled.
  2. Check Alertmanager UI → Status for notification failures.
6. Noise and reliability
  1. Tune group_wait / group_interval / repeat_interval.
  2. Inhibit warning when critical open.
  3. Silence API access controlled (RBAC/auth in front of AM).
  4. Monitor alertmanager_notifications_failed_total.
7. Hand off
  1. Document channels, secret locations, route diagram.
  2. Rotate webhook URLs on personnel change or leak.
  3. Keep alert rules ownership separate from Teams wiring.

Good / Bad

TopicGoodBad
Secretsurl_file / sealed secretWebhook URL committed
RoutingSeverity split + inhibitEverything to one firehose
ContentRunbook linkEmpty “Alert firing”
Testamtool in stagingTest on customer channel only
FailuresMetric + dead-letter awarenessSilent drop

Output Checklist

  • [ ] Teams webhook created and stored as secret
  • [ ] Receivers/routes/inhibit configured
  • [ ] Config validated (amtool / check)
  • [ ] Test fire + resolve observed in channel
  • [ ] Grouping/noise settings reviewed
  • [ ] Failed notification metrics watched
  • [ ] Runbook annotations present on critical rules
  • [ ] Rotation/ownership documented
  • [ ] code-quality-standards on config-as-code

Rules

  • Owned Alertmanager/Teams only.
  • Webhook URLs are secrets — rotate if leaked.
  • Prefer actionable, grouped alerts over raw dumps.
  • Do not bypass inhibitions “temporarily” without expiry.
  • Keep PII out of alert labels/annotations.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bedkillerspacex-boop/codex-skill-library/alertmanager-msteams/badge)](https://verified-skill.com/skills/bedkillerspacex-boop/codex-skill-library/alertmanager-msteams)

Something wrong with this skill or its page? Tell us.