Tool v1.0.0

rpe-grafana

无需了解底层查询即可读取Grafana仪表板中的当前值。适用于:询问Grafana仪表板中可见的数值(如传感器读数、指标、统计信息)。通过仪表板和面板名称进行导航,无需使用PromQL或SQL。不适用于:向Grafana写入数据、管理员操作...

ClawHub 更新于 2026-03-24 18 浏览
下载 SKILL

技能说明

无需了解底层查询即可读取Grafana仪表板中的当前值。适用于:询问Grafana仪表板中可见的数值(如传感器读数、指标、统计信息)。通过仪表板和面板名称进行导航,无需使用PromQL或SQL。不适用于:向Grafana写入数据、管理员操作或直接执行原始查询。

使用场景

Read live Grafana dashboard metrics by dashboard and panel name without writing queries

查看英文原始说明

Read current values from Grafana dashboards without knowing the underlying queries. Use when: asked about values visible in a Grafana dashboard (sensor readings, metrics, stats). Navigate by dashboard and panel name — no PromQL/SQL needed. NOT for: writing to Grafana, admin operations, or raw query execution.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/rpe-grafana
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

6 个文件 · 18 kB · zip 8.5 kB
手动下载 zip · 8.5 kB
SKILL.md text/markdown
---
name: rpe-grafana
description: "Read current values from Grafana dashboards without knowing the underlying queries. Use when: asked about values visible in a Grafana dashboard (sensor readings, metrics, stats). Navigate by dashboard and panel name — no PromQL/SQL needed. NOT for: writing to Grafana, admin operations, or raw query execution."
metadata:
  {
    "openclaw":
      {
        "emoji": "📊",
        "requires": { "env": ["GRAFANA_URL", "GRAFANA_USER", "GRAFANA_PASSWORD"] },
        "install":
          [
            {
              "id": "config",
              "kind": "config",
              "label": "Configure Grafana credentials in openclaw.json",
            },
          ],
      },
  }
---

# Grafana Skill

Read current values from any Grafana dashboard without writing queries. The plugin navigates by dashboard and panel name, extracts the panel's existing query configuration, and returns a compact summary — no PromQL, SQL, or datasource knowledge required.

Works with any Grafana datasource (Prometheus, InfluxDB, MySQL, …).

## When to Use

✅ **USE this skill when:**

- Asked about a value that's visible in a Grafana dashboard
- Listing what dashboards or panels are available
- Retrieving the current or recent value of a metric by panel name

## When NOT to Use

❌ **DON'T use this skill when:**

- Writing, modifying, or creating dashboards → use Grafana UI
- Admin operations (users, datasource config, alerts) → use Grafana API directly
- You need to run an arbitrary query not backed by an existing panel

## Setup

Add to your `openclaw.json`:

```json
{
  "plugins": {
    "entries": {
      "rpe-grafana": {
        "enabled": true,
        "config": {
          "url": "http://your-grafana:3000",
          "user": "your-username",
          "password": "your-password"
        }
      }
    }
  }
}
```

Or set environment variables:

- `GRAFANA_URL` - Grafana base URL
- `GRAFANA_USER` - Username
- `GRAFANA_PASSWORD` - Password or API key

## Tools

### grafana_list_dashboards

List all available dashboards.

**Parameters:** none

**Returns:** `[{ uid, title }]`

### grafana_list_panels

List all panels in a dashboard.

**Parameters:**
- `dashboard_uid` (required) - Dashboard UID from `grafana_list_dashboards`

**Returns:** `[{ id, title }]`

### grafana_query_panel

Read the current data for a specific panel. Fetches the panel's query configuration from the dashboard and executes it via Grafana's datasource API — no query language knowledge needed.

**Parameters:**
- `dashboard_uid` (required) - Dashboard UID
- `panel_id` (required) - Panel ID from `grafana_list_panels`
- `from` (optional) - Start of time range (default: `now-1h`)
- `to` (optional) - End of time range (default: `now`)

**Returns:** `[{ refId, name, lastValue, unit }]`

## Typical Workflow

1. `grafana_list_dashboards` → find the dashboard UID
2. `grafana_list_panels` → find the panel ID by title
3. `grafana_query_panel` → get the current value

## Notes

- Requires a Grafana user with read access (Viewer role is sufficient)
- Dashboard UIDs are stable identifiers; panel IDs are unique within a dashboard
- Row panels are flattened automatically

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。