huawei-cloud-ces-drill-inspection
Fault drill steady-state inspection tool. Collects instance status and CES monitoring metrics across Huawei Cloud multi-region ECS/RDS/DCS(Redis) and 19 cloud…
от huaweicloudskill275 установок в других каталогах
Установить huawei-cloud-ces-drill-inspection в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Fault Drill - Steady-State Metric Inspection
Overview
After completing a fault drill on Huawei Cloud (e.g. AZ power-off, network injection, primary/standby switchover), quickly inspect steady-state metrics of affected resources, determine whether each service instance has recovered, and generate a visual HTML report.
Read-only: queries only, no cloud resource modifications, no fault injection, no alerts.
Prohibited Operations
本技能为只读稳态巡检工具,不支持任何云资源写操作:
- 创建/删除/修改云资源(ECS/RDS/DCS/ELB 等)
- 重启/启停/变更规格实例
- 注入故障、发送告警
- 配置或修改 IAM 权限
若用户提出此类请求,请明确拒绝,说明本技能只读,引导用户到对应服务控制台或 API 操作。
User Actions
The user only needs to fill in one config file: references/input.json. See Configuration Guide below.
Supported services and metric list: references/metrics-reference.md.
Prerequisites
- hcloud (KooCLI) installed and configured with AK/SK, read-only permissions for each region
- Python 3.10+
Quick Start
cd scripts/
# 1. Connectivity check
python inspect_cli.py smoke ../references/input.json
# 2. Inspect (status collection + metric collection + HTML report)
python inspect_cli.py inspect ../references/input.json
# 3. Initialize config template
python inspect_cli.py init-config --output my_config.json
Reports are output to templates/ by default, keeping only the latest 10 copies.
Core Workflow/Process
Step 1: Load and Validate Configuration
Load references/input.json and validate drill phases, inspection targets (service/region/instance_ids/metrics). Auto-infer unspecified fields (drill window, region list, expected status table, runtime params).
python scripts/inspect_cli.py init-config --output my_config.json # generate config template
Step 2: Connectivity Check
Verify hcloud CLI connectivity to all target regions before starting inspection.
python scripts/inspect_cli.py smoke references/input.json
Step 3: Instance Status Collection (Parallel)
Collect instance status across all target services and regions in parallel via hcloud CLI. Each instance is marked ✅ (normal), ⚠️ (warning), or ❌ (abnormal) based on expected steady-state status.
# status_collector.py queries instance status via hcloud for 19 cloud services in parallel
hcloud ECS ListServersDetails --region=<region-id>
hcloud RDS ListInstances --region=<region-id>
hcloud DCS ListInstances --region=<region-id>
Step 4: Steady-State Judgment (Status)
Judge whether each instance has recovered to steady state based on its status field (e.g. ECS=ACTIVE, RDS=ACTIVE+primary role=master, DCS=RUNNING). Abnormal instances (❌/⚠️) are excluded from metric collection — "异常实例不采指标" (no metrics for abnormal instances, since they have no meaningful metrics to compare).
Step 5: Metric Collection (Normal Instances Only, Parallel)
For instances marked ✅ in Step 3, collect CES monitoring metrics across all drill phases (baseline, fault, recovery) in parallel. Only normal instances are queried.
# metric_collector.py queries CES metrics via hcloud in parallel
hcloud CES ShowMetricData --region=<region-id> --namespace=<ns> --metric_name=<metric> --dim.0=<dim> --period=60 --filter=average --from=<ts> --to=<ts>
Step 6: Steady-State Judgment (Metrics)
Compare collected metrics across drill phases. Determine whether metrics in the inspection phase have recovered to baseline levels. Each metric is marked ✅ (normal) or ❌ (anomalous).
Step 7: Topology Build and Report Generation
Build AZ resource topology graph data and generate an interactive HTML report:
python scripts/inspect_cli.py inspect references/input.json
Report includes: AZ topology graph (region→AZ→instance, three-color status), instance status overview table, per-instance metric detail cards, Chart.js monitoring line charts (inline, offline-capable), and inspection conclusion with anomaly count and recommendations. Output to templates/ directory, keeping only the latest 10 copies.
Post-Execution Output (Important)
After the inspection command completes, the CLI directly outputs the report file path and a brief conclusion, e.g.:
✅ Inspection complete! Report generated: /path/to/templates/inspection_report_xxx.html
Duration: 1.0s | Found 12 anomalies across 3 services (ecs, rds, redis), immediate investigation recommended.
Present the CLI stdout as-is to the user. Do NOT do the following:
- ❌ Do not parse the generated HTML file to extract summaries or tables
- ❌ Do not use Python/grep or other tools to post-process report content
- ❌ Do not manually aggregate instance status or metric details into a text summary
- ❌ Do not screenshot or open the HTML report
Reason: The HTML report is the final deliverable, containing the complete AZ topology graph, status overview table, metric detail cards, and monitoring line charts. The CLI output path and conclusion are sufficient for the user to locate the report and understand the i
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-ces-drill-inspection?
Fault drill steady-state inspection tool. Collects instance status and CES monitoring metrics across Huawei Cloud multi-region ECS/RDS/DCS(Redis) and 19 cloud services via hcloud CLI, compares against expected steady-state baseline, and generates an interactive HTML inspection report (with AZ topology graph, status overview table, metric detail cards, Chart.js line charts). Applicable after AZ power-off, network injection, primary/standby switchover and other fault drills. Read-only queries only, no cloud resource modifications. Triggers: drill inspection, steady-state inspection, steady-state metrics, post-drill inspection, AZ power-off drill, availability zone outage, ECS/RDS/Redis status check, CES metric collection, hcloud inspection.
Как установить скилл huawei-cloud-ces-drill-inspection?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-ces-drill-inspection запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…