本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)17k · #10785

vector

できること

このスキルは、VectorをベースにしたWizTelemetry Data Pipelineを設定するよう、AIエージェントを支援します。オブザーバビリティのデータを収集して、OpenSearchなどのストレージに送りたい運用者向けです。

使う場面

  • ✓ログ、監査記録、イベントを収集するデータパイプラインを、KubeSphereにインストールしたいとき。
  • ✓パイプラインの出力をOpenSearchに送る設定が必要なとき。
  • ✓別のオブザーバビリティ拡張機能のデータが欠けていて、パイプラインを確認する必要があるとき。

スキルのリンク

https://github.com/kubesphere/kubesphere/blob/master/skills/vector/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/kubesphere/kubesphere/blob/master/skills/vector/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“ホストクラスターにVectorのデータパイプラインをインストールし、その出力を当社のOpenSearchのエンドポイントに送ってください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、まず利用可能なクラスターを確認し、どれを使うかを確定させます。次にOpenSearchのエンドポイントと認証情報を調べ、パイプラインのインストール計画を作ります。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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):

  1. OpenSearch endpoint URL (required)

    • Example: http://<node-ip>:30920 or https://opensearch.example.com:9200
  2. OpenSearch credentials (required)

    • Username (default: admin)
    • Password

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
よくある質問

エージェントはすべてのクラスターにインストールしますか?

いいえ。クラスターを指定しない場合、エージェントはどれを使うかを尋ねます。

出力はどこに送られますか?

主な出力先であるOpenSearchへのデータ送信を扱います。

このパイプラインは他の拡張機能にも必要ですか?

はい。ロギング、監査、イベント、通知の中核的な依存関係だとしています。

詳細

作者による元の説明

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

人気

GitHubのスター
17k
ランキング
#10785
ライセンス
—
更新日
2026/7/14

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル