bash
# 1. 配置
cd skills/grafana-inspector/scripts
cp config.example.json config.json
# 编辑 config.json
# 2. 执行
python main.py config.json
# 或在 OpenClaw 中输入
执行 Grafana 巡检
json
{
"grafana_url": "http://localhost:3000",
"api_key": "",
"dashboard_uids": [],
"auto_discover": true,
"discover_limit": 10,
"inspection_mode": "hybrid",
"screenshot_dir": "./screenshots"
}
参数说明必填grafana_urlGrafana 地址✅api_keyAPI Key(API 巡检用)✅dashboard_uids仪表盘 UID 列表❌auto_discover自动发现仪表盘❌discover_limit最多巡检数量❌
bash
cd skills/grafana-inspector/scripts
python inspect_report.py config.json
text
执行 Grafana 巡检
inspection_*.json - JSON 结果inspection_*.md - Markdown 报告https://grafana/d/{UID}/{name}text
grafana-inspector/
├── scripts/
│ ├── api_inspect.py # API 巡检
│ ├── main.py # 主脚本
│ └── config.json # 配置
├── screenshots/ # 截图
├── SKILL.md # 技能定义
└── README.md # 说明文档