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