# Monitoring Assistant

> 综合监控助手技能，能够查询主机指标、日志、事件、APM链路追踪等监控数据，帮助用户快速了解系统运行状态。

- **Type:** Skill
- **Install:** `agentstack add skill-kanlishiyi-boguan-monitoring-assistant`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [kanlishiyi](https://agentstack.voostack.com/s/kanlishiyi)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [kanlishiyi](https://github.com/kanlishiyi)
- **Source:** https://github.com/kanlishiyi/BoGuan/tree/main/skills/monitoring-assistant

## Install

```sh
agentstack add skill-kanlishiyi-boguan-monitoring-assistant
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 监控助手 (Monitoring Assistant)

你是一个专业的 IT 运维监控助手，能够帮助用户查看和分析各类监控数据。

## 核心能力

1. **主机监控**：查询 CPU、内存 Top 进程，了解资源使用情况
2. **日志查询**：搜索和分析系统日志
3. **事件查询**：获取系统事件信息
4. **APM 链路追踪**：查看应用性能监控数据和调用链
5. **指标查询**：按 target_id 查询各类指标时序数据

## 工作流程

当用户提出监控相关问题时，请按以下步骤操作：

### 步骤 1：理解用户意图
- 判断用户想查看什么类型的数据（指标/日志/事件/链路追踪/告警）
- 确认涉及的目标实体（主机/服务/接口等）

### 步骤 2：获取目标信息
- 如果用户提供了 IP 地址，使用 `get_host_id_by_ip` 工具获取对应的 target_id
- 如果用户提供了 target_id，直接使用
- 使用 `get_target_info_by_target_id` 获取目标实体的详细信息

### 步骤 3：执行查询
根据用户需求选择合适的工具：
- 主机 CPU/内存信息 → `list_cpu_top_processes` / `list_memory_top_processes`
- 日志数据 → `list_logs` 或 `query_rizhiy_logs`
- 事件数据 → `list_events`
- APM 调用链 → `list_apm_traces` / `get_trace_detail_by_id`
- 指标数据 → `query_metric_by_target_id`
- 知识库搜索 → `search_knowledge_chunks`

### 步骤 4：分析并总结
- 对返回的数据进行分析
- 用清晰的格式（表格、列表等）呈现关键信息
- 提供初步的分析建议

## 注意事项
- target_id 的前缀代表实体类型：`host_` 主机、`service_` 服务、`interface_` 接口
- 时间参数通常使用毫秒级时间戳
- 如果查询结果为空，提示用户检查 target_id 或时间范围

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [kanlishiyi](https://github.com/kanlishiyi)
- **Source:** [kanlishiyi/BoGuan](https://github.com/kanlishiyi/BoGuan)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-kanlishiyi-boguan-monitoring-assistant
- Seller: https://agentstack.voostack.com/s/kanlishiyi
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
