wiztelemetry-tracing
Skill này làm gì
Skill này giúp agent AI thiết lập tracing phân tán trong KubeSphere. Skill dành cho lập trình viên và người vận hành muốn theo dõi một yêu cầu qua nhiều dịch vụ để tìm các bước chậm hoặc lỗi.
Khi nào nên dùng
- ✓Khi bạn muốn cài đặt tracing để các yêu cầu qua nhiều dịch vụ có thể được theo dõi.
- ✓Khi bạn muốn thêm tự động instrument OpenTelemetry vào một ứng dụng.
- ✓Khi bạn cần truy vấn trace, span hoặc đồ thị dịch vụ cho một yêu cầu chậm.
Liên kết skill
https://github.com/kubesphere/kubesphere/blob/master/skills/wiztelemetry-tracing/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
“Bạn có thể cài đặt mở rộng tracing và cho tôi xem các trace chậm nhất của dịch vụ checkout trong hôm nay không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra platform service và OpenSearch, rồi cài đặt các phần tracing cần thiết như collector và generator. Sau đó nó truy vấn trace và span qua API truy vấn tracing.
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 Tracing
Overview
WizTelemetry Tracing is an extension component in the KubeSphere Observability Platform that provides distributed tracing functionality based on the OpenTelemetry standard.
When to Use
- Installing or configuring the WizTelemetry Tracing extension
- Understanding tracing architecture (Generator + Operator + Collector + Agent)
- Using the tracing query API to query traces, spans, service graphs
- Configuring OpenTelemetry auto-instrumentation for applications
Components
| Component | Description | Default Enabled |
|---|---|---|
| generator | WizTelemetry Tracing Generator: generates service graphs from tracing data (StatefulSet) | true |
| operator | OpenTelemetry Operator: manages OpenTelemetry Collector and auto-instrumentation | true |
| collector | OpenTelemetry Collector for WizTelemetry: receives traces, exports to Vector and OpenSearch | true |
| agent | WizTelemetry Tracing Agent: collects tracing data from local log files (DaemonSet) | false |
| demo | OpenTelemetry Demo: generates sample tracing data for demonstration | false |
Dependencies
- WizTelemetry Platform Service (whizard-telemetry): 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 Tracing 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=wiztelemetry-tracing -o jsonpath='{range .items[*]}{.spec.version}{"\n"}{end}' | sort -V | tail -1
This outputs the latest version (e.g., 1.0.6). Note this down - you'll use it in the InstallPlan.
Step 3: Get Generator Endpoint
Get a node IP from the target cluster:
kubectl get nodes -o jsonpath='{.items[0].status.addresses[?(@.type=="ExternalIP")].address}' 2>/dev/null || \
kubectl get nodes -o jsonpath='{.items[0].status.addresses[?(@.type=="InternalIP")].address}'
This outputs a node IP (e.g., 192.168.1.100). Use this as the generator endpoint.
If multiple shards (e.g., generator.shardCount: 3), generate all endpoints:
NODE_IP="<NODE_IP>"
for i in 0 1 2; do
PORT=$((32318 + i))
echo " - http://${NODE_IP}:${PORT}"
done
Replace <NODE_IP> with the actual node IP from the previous command.
Step 4: Confirm Configuration with User
Before creating the InstallPlan, confirm the following with the user:
I'll install WizTelemetry Tracing with the following configuration:
- Version: <VERSION>
- Target clusters: <TARGET_CLUSTERS>
- Generator endpoint: http://<NODE_IP>:32318
- OpenSearch endpoint: <OPENSEARCH_ENDPOINT>
Do you want to proceed? (yes/no)
If user confirms, proceed to create the InstallPlan. If not, adjust the configuration based on user feedback.
Step 5: Create InstallPlan
CRITICAL: InstallPlan metadata.name MUST be wiztelemetry-tracing. 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.
Based on your selections:
- Target clusters: User-confirmed cluster names
- OpenSearch endpoint: User-provided (default:
https://opensearch-cluster-data.kubesphere-logging-system.svc:9200) - OpenSearch credentials: User-provided (default user:
admin)
Template
apiVersion: kubesphere.io/v1alpha1
kind: InstallPlan
metadata:
name: wiztelemetry-tracing
namespace: kubesphere-sys
Câu hỏi thường gặp
Tracing phụ thuộc vào gì?
Nó phụ thuộc vào WizTelemetry Platform Service và OpenSearch.
Nó cài đặt những phần nào?
Nó có thể cài một generator, một operator, một collector, một agent và một bản demo tùy chọn.
Có cần thay đổi ứng dụng không?
Skill bao gồm tự động instrument OpenTelemetry, là một cách để thêm tracing vào ứng dụng.
Chi tiết
Mô tả gốc của tác giả
Use when working with WizTelemetry Tracing extension for KubeSphere, including installation, configuration, and tracing query API
repo: kubesphere/kubesphere
Độ phổ biến
- Sao GitHub
- 17k
- Vị trí xếp hạng
- #10792
- 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.