grafana-inspector

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

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "grafana-inspector" with this command: npx skills add diluke1600/grafana-inspection

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_urlGrafana 地址
api_keyAPI 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 服务正常
  • 检查飞书授权状态

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Leads

Leads - command-line tool for everyday use

Registry SourceRecently Updated
General

Bmi Calculator

BMI计算器。BMI计算、理想体重、健康计划、体重追踪、儿童BMI、结果解读。BMI calculator with ideal weight, health plan. BMI、体重、健康。

Registry SourceRecently Updated
General

Blood

Blood — a fast health & wellness tool. Log anything, find it later, export when needed.

Registry SourceRecently Updated
General

Better Genshin Impact

📦BetterGI · 更好的原神 - 自动拾取 | 自动剧情 | 全自动钓鱼(AI) | 全自动七圣召唤 | 自动伐木 | 自动刷本 | 自动采集/挖矿/锄地 | 一条龙 | 全连音游 - UI A better genshin impact, c#, auto-play-game, automatic, g...

Registry SourceRecently Updated