返回顶部
g

grafana-inspector Grafana巡检

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

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.0.3
安全检测
已通过
272
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

grafana-inspector

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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部