← 返回
开发者工具 Key

grafana-insepction

Grafana 自动化巡检技能。支持浏览器截图 + API 数据巡检,多仪表盘批量巡检,自动发现仪表盘。
Grafana 自动化巡检技能。支持浏览器截图 + API 数据巡检,多仪表盘批量巡检,自动发现仪表盘。
diluke1600
开发者工具 clawhub v0.0.3 1 版本 100000 Key: 需要
★ 0
Stars
📥 606
下载
💾 17
安装
1
版本
#latest

概述

Grafana 自动化巡检技能

快速开始

# 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 | 最多巡检数量 | ❌ |

使用方式

方式 1:命令行

cd skills/grafana-inspector/scripts
python inspect.py config.json

方式 2:OpenClaw

执行 Grafana 巡检

输出

  • inspection_*.json - JSON 结果
  • inspection_*.md - Markdown 报告

获取 Dashboard UID

  1. 打开 Grafana 仪表盘
  2. 查看 URL: https://grafana/d/{UID}/{name}
  3. 复制 UID 部分

获取 API Key

  1. Grafana → Configuration → API keys
  2. 创建 Viewer 权限的 Key
  3. 复制到配置

文件结构

grafana-inspector/
├── scripts/
│   ├── api_inspect.py    # API 巡检
│   ├── main.py        # 主脚本
│   └── config.json       # 配置
├── screenshots/          # 截图
├── SKILL.md             # 技能定义
└── README.md            # 说明文档

故障排查

API 连接失败

  • 检查 API Key 是否正确
  • 验证网络连接
  • 确认 Grafana 服务正常
  • 检查飞书授权状态

版本历史

共 1 个版本

  • v0.0.3 当前
    2026-03-19 12:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,794
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,150
communication-collaboration

feishu-create-openclaw-app

diluke1600
自动创建并配置飞书企业应用(OpenClaw),包括登录、应用设置、权限导入及浏览器凭证提取。
★ 0 📥 751