跳到正文
Skillpedia
部署与云(DevOps)17k · #10789

whizard-notification

它能做什么

这个技能帮助 AI 智能体管理 KubeSphere 中的通知。适合希望告警发送给正确的人员或渠道,并需要临时屏蔽嘈杂告警的运维人员。

适用场景

  • ✓当你想把监控告警发送到新渠道,例如聊天工具或邮件时。
  • ✓当某个团队的告警只应发送到该团队的渠道时。
  • ✓当维护期间告警过于嘈杂,你需要设置静默时。

技能链接

https://github.com/kubesphere/kubesphere/blob/master/skills/whizard-notification/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/kubesphere/kubesphere/blob/master/skills/whizard-notification/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请把 shop 命名空间的告警路由到我们的团队聊天频道,并为今晚的维护时段添加静默。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会检查通知设置,按租户标签添加渠道和路由规则,并在需要时创建静默。它会检查告警从来源到接收方的路径。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

WizTelemetry Notification

Overview

WizTelemetry Notification is the notification component of the KubeSphere observability platform. It receives alerts, cloud events, and audit logs in a multi-tenant Kubernetes environment and distributes notifications to different channels based on tenant labels (e.g., namespace).

Architecture

┌──────────────────────────────────────────────────────────────────────────────┐
│                             Alertmanager                                     │
│      Prometheus  ──▶ metrics alert  ──▶ notification-manager-svc:19093       │
│      K8s Events  ──▶ events alert   ──▶ notification-manager-svc:19093       │
│      Auditing    ──▶ auditing alert ──▶ notification-manager-svc:19093       │
│      Logging     ──▶ logging alert  ──▶ notification-manager-svc:19093       │
└──────────────────────────────────────────────────────────────────────────────┘
                                    │
                    notification-manager (:19093)
                                    │
         ┌──────────────────────────┼──────────────────────────┐
         │                          │                          │
    [Silence Stage]          [Route Stage]             [Filter Stage]
         │                          │                          │
         ▼                          ▼                          ▼
 [Match Silence CRs]         [Match Router CRs]      [alertSelector filtering]
                                 │
                          [Aggregation Stage]
                                 │
                          [Notify Stage]
                                 │
         ┌────────────────────────┼────────────────────────────┐
         │                        │                            │
    Email/Slack              DingTalk/Feishu            WeChat/Webhook
         │
         ▼
  [History Webhook]
         │
         ▼
┌─────────────────────┐
│  Vector Aggregator  │
└────────┬────────────┘
         │
         │
         ▼
     OpenSearch

Components

Component Description Default
notification-manager Core notification management, receives alerts, dispatches to channels true
alertmanager (v0.27.0) Alert routing, deduplication, aggregation, silencing true
alertmanager-proxy Alertmanager API proxy, NodePort 31093 true
notification-history Stores sent notifications via Vector to OpenSearch true

Dependencies

Dependency Type Required
whizard-telemetry extension Required
vector (WizTelemetry Data Pipeline) extension Required only notification history is enabled
opensearch extension Required only notification history is enabled

CRDs

All CRDs belong to notification.kubesphere.io/v2beta2, scope is Cluster.

CRD Kind Description
notificationmanagers.notification.kubesphere.io NotificationManager Notification manager deployment spec (image, replicas, resources, sidecar, receiver config)
receivers.notification.kubesphere.io Receiver Tenant-level notification receiver, references Config
configs.notification.kubesphere.io Config Credential references (via Secret selectors), independent per channel
routers.notification.kubesphere.io Router Route alerts to receivers based on label matchers
silences.notification.kubesphere.io Silence Time-bounded silencing, supports matchers

Supported Notification Channels (11 channels)

Channel Receiver Field Config Field Description
Email spec.email spec.email SMTP with TLS/STARTTLS support
Slack spec.slack spec.slack Slack webhook + token
DingTalk spec.dingtalk spec.dingtalk ChatBot + group conversation
WeChat spec.wechat spec.wechat ChatBot + group conversation
Feishu spec.feishu spec.feishu ChatBot + group conversation
Webhook spec.webhook spec.webhook Generic HTTP / HTTPS POST

Config → Receiver Association Mechanism

Config (credentials) --labels--> Receiver (via label selector) --labels--> Router (route matching)
                        │
                        └── namespace for multi-tenant isolation

Config's labels are used by Receiver's *ConfigSelector. Receiver's labels are used by Router's

常见问题

告警来自哪里?

该技能说明告警来自 Alertmanager,包括监控、Kubernetes 事件、审计和日志告警。

告警如何路由?

路由会使用租户标签(例如命名空间)来选择正确的渠道。

可以静默告警吗?

可以。该技能涵盖创建在设定时间内匹配告警的静默规则。

详情

作者的原始描述

Use when working with WizTelemetry Notification extension for KubeSphere, including installation, configuration, troubleshooting, notification channel setup, alert routing, and silence management.

repo: kubesphere/kubesphere

热度

GitHub 星标
17k
排名
#10789
许可证
—
更新时间
2026/7/14

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能