whizard-events
它能做什么
这个技能帮助 AI 智能体在 KubeSphere 中设置事件扩展,并搜索其收集的事件。适合需要保存集群事件历史(例如警告和重启)的运维人员。
适用场景
- ✓当你想安装事件扩展,以保存 Kubernetes 事件的历史记录时。
- ✓当你需要查找某个时间段或某个工作负载的集群事件时。
- ✓当你想在安装前了解事件扩展依赖哪些组件时。
技能链接
https://github.com/kubesphere/kubesphere/blob/master/skills/whizard-events/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我找出过去六小时内 payments 部署的所有警告事件。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会使用事件查询 API 搜索扩展收集的事件。该扩展需要先安装平台服务、数据管道和 OpenSearch。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
WizTelemetry Events
Overview
WizTelemetry Events is an extension component in the KubeSphere Observability Platform for Kubernetes event collection, processing, and storage.
When to Use
- Installing or configuring the WizTelemetry Events extension
- Understanding event collection architecture
- Using the event query API to query events
Components
| Component | Description | Default Enabled |
|---|---|---|
| kube-events-exporter | Kubernetes event collection and export | true |
Dependencies
- WizTelemetry Platform Service (whizard-telemetry): Required
- WizTelemetry Data Pipeline (vector): Required
- OpenSearch (opensearch): Required
Installation
Prerequisites
REQUIRED: Complete all steps in order before generating InstallPlan.
Step 1: Get Available Clusters and Confirm Target
⚠️ CRITICAL: DO NOT proceed until target clusters are determined.
Step 1.1: Get available clusters
kubectl get clusters -o jsonpath='{.items[*].metadata.name}'
Step 1.2: Determine target clusters
- If user explicitly specified target clusters in the request → Use those clusters directly, proceed to Step 2
- If user did NOT specify target clusters → Ask user to confirm which clusters to deploy to, then proceed to Step 2
Ask user (if not specified):
Available clusters: host, dev
Which clusters do you want to deploy WizTelemetry Events to?
Step 2: Get Latest Version (if not provided by user)
MUST do this to get the latest version:
kubectl get extensionversions -l kubesphere.io/extension-ref=whizard-events -o jsonpath='{range .items[*]}{.spec.version}{"\n"}{end}' | sort -V | tail -1
This outputs the latest version (e.g., 1.4.0). Note this down - you'll use it in the InstallPlan.
Install WizTelemetry Events
⚠️ IMPORTANT: Complete prerequisite steps BEFORE this step.
Based on your selections:
- Target clusters: User-confirmed cluster names
⚠️ CRITICAL: InstallPlan metadata.name MUST be whizard-events. DO NOT use any other name.
⚠️ CRITICAL: config field is YAML format. You MUST:
- Use the config structure exactly as shown in the template
- DO NOT add configuration fields that are not shown in the template
- DO NOT modify the structure or hierarchy
⚠️ CRITICAL: All placeholders MUST be replaced with actual values. DO NOT leave them as placeholders.
Template
apiVersion: kubesphere.io/v1alpha1
kind: InstallPlan
metadata:
name: whizard-events
spec:
extension:
name: whizard-events
version: <VERSION> # From Step 2
enabled: true
upgradeStrategy: Manual
clusterScheduling:
placement:
clusters:
- <TARGET_CLUSTERS>
Replace placeholders:
<VERSION>: From Step 2 (e.g.,1.4.0)<TARGET_CLUSTERS>: User-confirmed cluster names
Note: OpenSearch sink configuration (endpoints, auth) is provided by the vector extension. Make sure vector is installed and configured with OpenSearch before installing events.
Enable ISM Policy
apiVersion: kubesphere.io/v1alpha1
kind: InstallPlan
metadata:
name: whizard-events
namespace: kubesphere-system
spec:
extension:
name: whizard-events
version: <VERSION> # From Step 2
enabled: true
upgradeStrategy: Manual
config: |
kube-events-exporter:
sinks:
opensearch:
enabled: true
index:
prefix: "{{ .cluster }}-events"
timestring: "%Y.%m.%d"
ism_policy:
enable: true
min_index_age: "7d"
clusterScheduling:
placement:
clusters:
- <TARGET_CLUSTERS>
Configuration Parameters
OpenSearch Sink Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
kube-events-exporter.sinks.opensearch.enabled |
bool | true | Enable OpenSearch sink |
kube-events-exporter.sinks.opensearch.index.prefix |
string | "{{ .cluster }}-events" | Index prefix |
kube-events-exporter.sinks.opensearch.index.timestring |
string | "%Y.%m.%d" | Index time format |
ISM Policy Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
kube-events-exporter.ism_policy.enable |
bool | false | Enable Index State Management policy |
kube-events-exporter.ism_policy.min_index_age |
string | "7d" | Minimum index retention period |
Event Query API
Q
常见问题
事件扩展依赖什么?
它依赖 WizTelemetry Platform Service、Data Pipeline 和 OpenSearch。
哪个组件收集事件?
该技能提到 kube-events-exporter 组件,它默认启用。
我可以按时间搜索事件吗?
该技能涵盖用于搜索已收集事件的事件查询 API。
详情
作者的原始描述
Use when working with WizTelemetry Events extension for KubeSphere, including installation, configuration, and event query API
repo: kubesphere/kubesphere
热度
- GitHub 星标
- 17k
- 排名
- #10787
- 许可证
- —
- 更新时间
- 2026/7/14
评论
- …
同一仓库的更多技能
frontend-forge-fe-operations
17k帮你的智能体在 KubeSphere 中管理 FrontendExtension 资源,包括构建、发布和调试。
frontend-forge-fi-operations
17k帮你的智能体在 KubeSphere 中创建、更新、启用、禁用和检查 FrontendIntegration 资源及 frontend-forge 扩展。
frontend-integration-yaml
17k帮你的智能体为一个菜单及其一个或多个页面,创建可直接提交的 FrontendIntegration YAML。
kubeeye
17k帮你的智能体安装 KubeEye,设置集群巡检规则和计划,并阅读巡检报告。