#601

Global Rank · of 601 Skills

byted-bytehouse-diagnostics AI Agent Skill

View Source: bytedance/agentkit-samples

Medium

Installation

npx skills add bytedance/agentkit-samples --skill byted-bytehouse-diagnostics

11

Installs

ByteHouse 诊断集群 Skill

🔵 ByteHouse 品牌标识

「ByteHouse」—— 火山引擎云原生数据仓库,极速、稳定、安全、易用

本Skill基于ByteHouse MCP Server,提供完整的集群诊断和健康检查能力


描述

ByteHouse集群诊断和健康检查工具。

当以下情况时使用此 Skill:
(1) 需要检查ByteHouse集群健康状态
(2) 需要诊断集群问题和异常
(3) 需要查看集群节点状态
(4) 需要分析集群性能指标
(5) 用户提到"集群诊断"、"健康检查"、"节点状态"、"集群问题"

前置条件

  • Python 3.8+
  • uv (已安装在 /root/.local/bin/uv)
  • ByteHouse MCP Server Skill - 本skill依赖 bytehouse-mcp skill提供的ByteHouse访问能力

依赖关系

本skill依赖 bytehouse-mcp skill,使用其提供的MCP Server访问ByteHouse。

确保 bytehouse-mcp skill已正确配置并可以正常使用。

📁 文件说明

  • SKILL.md - 本文件,技能主文档
  • cluster_diagnostics.py - 集群诊断主程序
  • README.md - 快速入门指南

配置信息

ByteHouse连接配置

本skill复用 bytehouse-mcp skill的配置。请确保已在 bytehouse-mcp skill中配置好:

export BYTEHOUSE_HOST="<ByteHouse-host>"
export BYTEHOUSE_PORT="<ByteHouse-port>"
export BYTEHOUSE_USER="<ByteHouse-user>"
export BYTEHOUSE_PASSWORD="<ByteHouse-password>"
export BYTEHOUSE_SECURE="true"
export BYTEHOUSE_VERIFY="true"

🎯 功能特性

1. 集群健康检查

  • 检查集群节点状态
  • 检查副本同步状态
  • 检查数据分区状态
  • 检查系统表完整性

2. 节点状态诊断

  • 获取集群节点列表
  • 检查节点存活状态
  • 查看节点资源使用情况
  • 分析节点性能指标

3. 查询历史分析

  • 查询执行历史统计
  • 慢查询识别
  • 查询错误分析
  • 查询性能趋势

4. 系统表检查

  • 检查system.parts表
  • 检查system.replicas表
  • 检查system.clusters表
  • 检查system.mutations表

🚀 快速开始

方法1: 运行集群健康检查

cd /root/.openclaw/workspace/skills/bytehouse-diagnostics

# 先设置环境变量(复用bytehouse-mcp的配置)
export BYTEHOUSE_HOST="<ByteHouse-host>"
export BYTEHOUSE_PORT="<ByteHouse-port>"
export BYTEHOUSE_USER="<ByteHouse-user>"
export BYTEHOUSE_PASSWORD="<ByteHouse-password>"
export BYTEHOUSE_SECURE="true"
export BYTEHOUSE_VERIFY="true"

# 运行集群诊断
uv run cluster_diagnostics.py

诊断内容包括:

  • 集群健康状态
  • 节点状态检查
  • 副本同步状态
  • 数据分区检查
  • 查询历史分析
  • 系统表完整性检查

输出文件(保存在 output/ 目录):

  1. health_check_{timestamp}.json - 健康检查报告
  2. node_status_{timestamp}.json - 节点状态报告
  3. query_stats_{timestamp}.json - 查询统计报告

💻 诊断检查项

健康检查项

检查项 说明 状态
集群连接 测试ByteHouse连接性 ✅/❌
系统表访问 检查system.*表是否可访问 ✅/❌
副本状态 检查数据副本同步状态 ✅/⚠️/❌
分区状态 检查数据分区完整性 ✅/⚠️/❌
节点存活 检查集群节点存活状态 ✅/❌
Mutation状态 检查mutation执行状态 ✅/⚠️/❌

诊断指标

  • 集群级别: 总节点数、活跃节点数、副本数、分区数
  • 节点级别: CPU使用率、内存使用率、磁盘使用率、查询数
  • 查询级别: 总查询数、慢查询数、错误查询数、平均查询时间

📊 诊断报告示例

健康检查报告

{
  "cluster_name": "bh_log_boe",
  "check_time": "2026-03-12T21:00:00",
  "overall_status": "healthy",
  "checks": [
    {
      "name": "cluster_connection",
      "status": "pass",
      "message": "成功连接到ByteHouse"
    }
  ]
}

📚 更多信息

详细使用说明请参考 bytehouse-mcp skill


最后更新: 2026-03-12

Installs

Installs 11
Global Rank #601 of 601

Security Audit

ath Safe
socket Safe
Alerts: 0 Score: 90
snyk Medium
EU EU-Hosted Inference API

Power your AI Agents with the best open-source models.

Drop-in OpenAI-compatible API. No data leaves Europe.

Explore Inference API

GLM

GLM 5

$1.00 / $3.20

per M tokens

Kimi

Kimi K2.5

$0.60 / $2.80

per M tokens

MiniMax

MiniMax M2.5

$0.30 / $1.20

per M tokens

Qwen

Qwen3.5 122B

$0.40 / $3.00

per M tokens

How to use this skill

1

Install byted-bytehouse-diagnostics by running npx skills add bytedance/agentkit-samples --skill byted-bytehouse-diagnostics in your project directory. Run the install command above in your project directory. The skill file will be downloaded from GitHub and placed in your project.

2

No configuration needed. Your AI agent (Claude Code, Cursor, Windsurf, etc.) automatically detects installed skills and uses them as context when generating code.

3

The skill enhances your agent's understanding of byted-bytehouse-diagnostics, helping it follow established patterns, avoid common mistakes, and produce production-ready output.

What you get

Skills are plain-text instruction files — not executable code. They encode expert knowledge about frameworks, languages, or tools that your AI agent reads to improve its output. This means zero runtime overhead, no dependency conflicts, and full transparency: you can read and review every instruction before installing.

Compatibility

This skill works with any AI coding agent that supports the skills.sh format, including Claude Code (Anthropic), Cursor, Windsurf, Cline, Aider, and other tools that read project-level context files. Skills are framework-agnostic at the transport level — the content inside determines which language or framework it applies to.

Data sourced from the skills.sh registry and GitHub. Install counts and security audits are updated regularly.

EU Made in Europe

Chat with 100+ AI Models in one App.

Use Claude, ChatGPT, Gemini alongside with EU-Hosted Models like Deepseek, GLM-5, Kimi K2.5 and many more.

Customer Support