vector
Skill này làm gì
Skill này giúp agent AI thiết lập WizTelemetry Data Pipeline, được xây dựng trên Vector. Skill dành cho người vận hành cần dữ liệu quan sát được thu thập và định tuyến đến nơi lưu trữ như OpenSearch.
Khi nào nên dùng
- ✓Khi bạn muốn cài đặt pipeline dữ liệu để thu thập log, bản ghi kiểm toán và sự kiện cho KubeSphere.
- ✓Khi bạn cần thiết lập đầu ra của pipeline đến OpenSearch.
- ✓Khi dữ liệu từ một mở rộng quan sát khác bị thiếu và bạn cần kiểm tra pipeline.
Liên kết skill
https://github.com/kubesphere/kubesphere/blob/master/skills/vector/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 cài đặt pipeline dữ liệu Vector trên cụm host của chúng tôi và gửi đầu ra đến endpoint OpenSearch của chúng tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra trước các cụm có sẵn và xác nhận cụm nào sẽ dùng. Sau đó nó tra cứu endpoint và thông tin xác thực OpenSearch, rồi tạo kế hoạch cài đặt cho pipeline.
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 Data Pipeline (Vector)
Overview
WizTelemetry Data Pipeline is an extension based on vector (https://vector.dev/) that provides the ability to collect, transform, and route observability data. It is a core dependency for other WizTelemetry extensions like Logging, Auditing, Events, and Notification.
When to Use
- Installing or configuring the WizTelemetry Data Pipeline extension
- Setting up data collection for logs, auditing, events, and notifications
- Configuring Vector sinks (OpenSearch)
- Managing Vector agent components
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 Vector to?
Step 2: Get OpenSearch Endpoint and Credentials (MUST DO)
- If user already provided OpenSearch endpoint and credentials in the request → Use those directly, proceed to Step 3
- If user did NOT provide → You MUST ask user for OpenSearch endpoint and credentials
Ask user for (if not provided):
OpenSearch endpoint URL (required)
- Example:
http://<node-ip>:30920orhttps://opensearch.example.com:9200
- Example:
OpenSearch credentials (required)
- Username (default:
admin) - Password
- Username (default:
DO NOT proceed to Step 3 until user provides both endpoint and credentials.
Step 3: Get Latest Vector Version (if not provided by user)
MUST do this to get the latest version:
kubectl get extensionversions -l kubesphere.io/extension-ref=vector -o jsonpath='{range .items[*]}{.spec.version}{"\n"}{end}' | sort -V | tail -1
This outputs the latest version (e.g., 1.1.4). Note this down - you'll use it in the InstallPlan.
Install Vector Extension
⚠️ IMPORTANT: Complete prerequisite steps (1-3) BEFORE this step.
⚠️ CRITICAL: InstallPlan metadata.name MUST be vector. DO NOT use any other name.
Based on your selections:
- Target clusters: Use the user-confirmed cluster names
- OpenSearch endpoint: User-provided endpoint
- OpenSearch credentials: User-provided username and password
⚠️ 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: vector
spec:
extension:
name: vector
version: <VECTOR_VERSION> # From Step 3
enabled: true
upgradeStrategy: Manual
config: |
agent:
sinks:
opensearch:
auth:
strategy: basic
user: <OPENSEARCH_USER>
password: <OPENSEARCH_PASSWORD>
endpoints:
- <OPENSEARCH_ENDPOINT>
clusterScheduling:
placement:
clusters:
- <TARGET_CLUSTERS>
Replace placeholders:
<VECTOR_VERSION>: From Step 2 (e.g.,1.1.4)<OPENSEARCH_ENDPOINT>: User-provided endpoint (e.g.,http://<node-ip>:30920)<OPENSEARCH_USER>: User-provided username (default:admin)<OPENSEARCH_PASSWORD>: User-provided password<TARGET_CLUSTERS>: User-confirmed cluster names
⚠️ DO NOT generate InstallPlan until all placeholders have real values.
Wait for Deployment
After applying InstallPlan, you MUST wait for deployment to complete:
# Wait for Vector pods to be ready (on each cluster)
kubectl wait --for=condition=Ready pods -n kubesphere-logging-system -l app.kubernetes.io/instance=vector --timeout=300s
# Verify deployment status
kubectl get pods -n kubesphere-logging-system -l app.kubernetes.io/instance=vector
Show deployment summary to user:
- Which clusters Vector was deployed to
- OpenSearch endpoint used
- Pod status (Ready/To
Câu hỏi thường gặp
Agent có cài trên mọi cụm không?
Không. Nếu bạn không nêu tên cụm, agent sẽ hỏi bạn muốn dùng cụm nào.
Đầu ra được gửi đi đâu?
Skill bao gồm việc gửi dữ liệu đến OpenSearch, đây là đích chính của nó.
Các mở rộng khác có cần pipeline này không?
Có. Skill nói nó là phụ thuộc cốt lõi cho ghi log, kiểm toán, sự kiện và thông báo.
Chi tiết
Mô tả gốc của tác giả
Use when installing or configuring the WizTelemetry Data Pipeline (vector) extension for KubeSphere, which provides data collection, transformation, and routing for observability data including logs, auditing, events, and notifications
repo: kubesphere/kubesphere
Độ phổ biến
- Sao GitHub
- 17k
- Vị trí xếp hạng
- #10785
- 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.