whizard-telemetry-ruler
Skill này làm gì
Skill này giúp agent AI tạo và quản lý quy tắc cảnh báo trong KubeSphere. Skill dành cho người vận hành muốn được cảnh báo khi xuất hiện một số sự kiện, bản ghi kiểm toán hoặc dòng log nhất định.
Khi nào nên dùng
- ✓Khi bạn muốn được cảnh báo khi một sự kiện Kubernetes cụ thể xảy ra trong một namespace.
- ✓Khi bạn cần cảnh báo cho một bản ghi kiểm toán đáng ngờ hoặc một mẫu log.
- ✓Khi một quy tắc cảnh báo cần được cập nhật hoặc gỡ bỏ.
Liên kết skill
https://github.com/kubesphere/kubesphere/blob/master/skills/whizard-telemetry-ruler/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy tạo một quy tắc cảnh báo kích hoạt khi một pod trong namespace payments ghi log lỗi hết bộ nhớ (out-of-memory).”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent viết một nhóm quy tắc, có thể theo namespace hoặc toàn cụm, khớp với các sự kiện hoặc log bạn mô tả. Sau đó nó gửi cảnh báo đến các bên nhận bạn đã thiết lập.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
WizTelemetry Ruler
Overview
WizTelemetry Ruler is an extension component in the KubeSphere Observability Platform that provides event alerting and log alerting capabilities. It can define alerting rules for K8s native events, K8s/KubeSphere auditing events, and K8s logs, evaluate incoming event data and log data, and send alerts to specified receivers such as alertmanager, etc.
When to Use
- Installing or configuring the WizTelemetry Ruler extension
- Creating, updating, or deleting alerting rules (RuleGroup/ClusterRuleGroup)
- Managing alerting configurations
- Using the ruler API to manage alerting rules
Components
| Component | Description | Default Enabled |
|---|---|---|
| whizard-telemetry-ruler | Core ruler component for alerting | true |
Dependencies
- WizTelemetry Platform Service (whizard-telemetry): Required
- WizTelemetry Events (whizard-events): Required if event alerting is enabled
- WizTelemetry Auditing (whizard-auditing): Required if auditing alerting is enabled
- WizTelemetry Logging (whizard-logging): Required if logging alerting is enabled
- WizTelemetry Notification (whizard-notification): Optional (for alert notification)
- WizTelemetry Data Pipeline (vector): Required if alerting persistence is enabled
- OpenSearch (opensearch): Required if alerting persistence is enabled
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 Ruler to?
Step 2: Get Latest Version (if not provided by user)
MUST do this to get the latest version:
kubectl get extensionversions -n kubesphere-system -l kubesphere.io/extension-ref=whizard-telemetry-ruler -o jsonpath='{range .items[*]}{.spec.version}{"\n"}{end}' | sort -V | tail -1
This outputs the latest version (e.g., 1.5.0). Note this down - you'll use it in the InstallPlan.
Step 3: Get AlertManager Host (if configuring sink)
Only perform this step if you need to configure sink for alert notifications.
The AlertManager proxy service (alertmanager-proxy) is deployed in the host cluster and exposed via NodePort (default port: 31093).
Step 3.1: Get a host node IP
kubectl get nodes -o jsonpath='{.items[0].status.addresses[?(@.type=="InternalIP")].address}'
Step 3.2: Confirm with user
Ask user to confirm the AlertManager host IP:
Detected AlertManager host: <NODE_IP>
Detected AlertManager port: 31093
Alert URL: http://<NODE_IP>:31093/api/v1/alerts
Do you want to use this URL for alert notifications?
- If user confirms → Use
http://<NODE_IP>:31093/api/v1/alertsas the sink URL - If user provides different URL → Use the user-specified URL
Note: If using WizTelemetry Notification extension, ensure it is installed before installing WizTelemetry Ruler.
Install WizTelemetry Ruler
⚠️ IMPORTANT: Complete prerequisite steps BEFORE this step.
Based on your selections:
- Target clusters: User-confirmed cluster names
- AlertManager URL: From Step 3 (if configuring sink)
⚠️ CRITICAL: InstallPlan metadata.name MUST be whizard-telemetry-ruler. 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.
Basic Installation Template (with AlertManager)
apiVersion: kubesphere.io/v1alpha1
kind: InstallPlan
metadata:
name: whizard-telemetry-ruler
namespace: kubesphere-system
spec:
extension:
name: whizard-telemetry-ruler
version: <VERSION> # From Step 2
enabled: true
upgrad
Câu hỏi thường gặp
Các quy tắc có thể khớp với những gì?
Skill bao gồm sự kiện Kubernetes, sự kiện kiểm toán của Kubernetes và KubeSphere, và log Kubernetes.
Mở rộng nào phải được cài đặt?
Cần platform service. Các mở rộng sự kiện, kiểm toán, ghi log và thông báo chỉ cần cho các loại cảnh báo bạn dùng.
Cảnh báo có cần lưu trữ không?
Chỉ khi bạn bật lưu bền vững cho cảnh báo, và điều này cần data pipeline cùng OpenSearch.
Chi tiết
Mô tả gốc của tác giả
Use when working with WizTelemetry Ruler extension for KubeSphere, including installation, configuration, alerting rules management
repo: kubesphere/kubesphere
Độ phổ biến
- Sao GitHub
- 17k
- Vị trí xếp hạng
- #10790
- Giấy phép
- —
- Cập nhật
- 14/7/2026
Bình luận
- …
Thêm skill từ kho mã này
frontend-forge-fe-operations
17kGiúp agent của bạn quản lý tài nguyên FrontendExtension trong KubeSphere, gồm xây dựng, xuất bản và gỡ lỗi chúng.
frontend-forge-fi-operations
17kGiúp agent của bạn tạo, cập nhật, bật, tắt và kiểm tra tài nguyên FrontendIntegration cùng mở rộng frontend-forge trong KubeSphere.
frontend-integration-yaml
17kGiúp agent của bạn tạo file YAML FrontendIntegration sẵn sàng để gửi đi cho một menu với một hoặc nhiều trang.
kubeeye
17kGiúp agent của bạn cài đặt KubeEye và thiết lập quy tắc cùng kế hoạch kiểm tra cụm, sau đó đọc các báo cáo kiểm tra.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.