闲社服务运行正常AI智能体自动化平台
g

Grafana巡检

技能标识:grafana-inspector

Grafana 自动化巡检技能。支持浏览器截图 + API 数据巡检,多仪表盘批量巡检,自动发现仪表盘。

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 0.0.3
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

Grafana巡检

Grafana 自动化巡检技能

快速开始

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
}

参数说明必填
grafanaurlGrafana 地址✅
apikey
API Key(API 巡检用) | ✅ | | dashboard_uids | 仪表盘 UID 列表 | ❌ | | auto_discover | 自动发现仪表盘 | ❌ | | discover_limit | 最多巡检数量 | ❌ |

使用方式

方式 1:命令行

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

方式 2:OpenClaw

执行 Grafana 巡检

输出

  • - inspection.json - JSON 结果
  • inspection.md - Markdown 报告

获取 Dashboard UID

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

获取 API Key

  1. 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 服务正常
  • 检查飞书授权状态

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 grafana-inspection-1776100251 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 grafana-inspection-1776100251 技能

通过命令行安装

skillhub install grafana-inspection-1776100251

下载

⬇ 下载 grafana-inspector v0.0.3(免费)

文件大小: 7.52 KB | 发布时间: 2026-4-15 12:57

v0.0.3 最新 2026-4-15 12:57
Changelog for grafana-inspection v0.0.3:

- Major refactor: consolidated all inspection logic into new scripts; simplified skill interface and codebase.
- Added support for hybrid inspection mode (browser screenshots + API data).
- Introduced automatic dashboard discovery with configurable inspection limit.
- Deprecated individual script modules (health check, screenshot, report); replaced with unified entry points.
- Updated configuration structure; streamlined parameters for easier setup.
- Skill documentation revised for concise usage and troubleshooting.
返回顶部