📊 Grafana — 数据可视化
v1.0.0Grafana 数据可视化工具。
4· 1,817·22 当前·22 累计
安全扫描
OpenClaw
安全
medium confidence这是一个仅指令的Grafana最佳实践指南,不请求凭证、安装,其内容与声明的目的一致。
评估建议
此技能是Grafana最佳实践的只读集合,技术风险低:不需要凭证、安装或访问您的系统。安装前的两个实际考虑:(1) 来源——注册表条目列出未知来源且无主页,因此验证作者或对照官方Grafana文档交叉检查建议以确保准确性和时效性;(2) 功能期望——此技能仅提供指导(而非自动配置或API操作)。如果您想要实际连接或修改Grafana的代理,请寻找明确请求适当数据源/API凭证且来源可信的技能。...详细分析 ▾
✓ 用途与能力
Name/description promise Grafana tips and the SKILL.md contains only Grafana-related guidance (queries, templating, alerting, provisioning, transforms). No unrelated binaries, env vars, or config paths are required.
✓ 指令范围
The SKILL.md is a static set of recommendations and does not instruct the agent to read local files, access environment variables, run shell commands, or transmit data to external endpoints. It stays within the stated scope of providing advice about Grafana.
✓ 安装机制
There is no install spec and no code files; nothing is written to disk or downloaded. This is the lowest-risk install model (instruction-only).
✓ 凭证需求
The skill declares no required environment variables, no credentials, and no config paths. That is proportionate for a documentation/advice skill.
✓ 持久化与权限
Flags are default (always: false, user-invocable, model invocation allowed). The skill does not request elevated persistence or modify other skills; its privileges are appropriate for an advice-only skill.
安全有层次,运行前请审查代码。
运行时依赖
🖥️ OSLinux · macOS · Windows
版本
latestv1.0.02026/2/10
初始版本
● 无害
安装命令 点击复制
官方npx clawhub@latest install grafana
镜像加速npx clawhub@latest install grafana --registry https://cn.clawhub-mirror.com
技能文档
Variables 和 Templating
- Multi-值 变量 needs
$__all在...中 regex — 或 仅 第一个 值 used ${var:csv}对于 comma-separated —${var:pipe}对于 pipe-separated 在...中 regex- 变量 在...中 查询:
$var或${var}— 不同 escaping per data source $__intervalauto-adjusts 到 时间 range — 使用 对于 aggregation window- Chained variables: child depends 在...上 parent — 设置 "刷新" 到 "在...上 时间 range 更改"
Prometheus Queries
rate()needs range vector —rate(requests_total[5m])不rate(requests_total)rate()对于 counters,deriv()对于 gauges — rate handles counter resets$__rate_interval在...上 hardcoded — adapts 到 scrape 间隔 和 dashboard range- Labels 在...中 legend:
{{label}}— multiple:{{instance}} - {{任务}} - Regex 过滤:
metric{label=~"val1|val2"}—!~对于 negative match
Panel Configuration
- "否 data" vs "空" 不同 — configure 在...中 display options
- Thresholds work 在...上 最后的 值 — 不 所有 values 在...中 range
- Min/max 必须 match data range — auto-scaling 可以 hide anomalies
- 时间 series 对于 trends, stat 对于 current 值 — choose visualization wisely
Alerting
- 提醒 evaluates 在...上 server — 不 browser, 查询 必须 work 没有 variables
- Variables 不 supported 在...中 alerts — hardcode values 或 使用 templates
- Multiple conditions: 和 默认 — configure 对于 或 如果 needed
- 提醒 state "待处理" 之前 "Firing" — 对于 持续时间, prevents flapping
- 通知 channel 必须 configured — 提醒 没有 channel = 否 通知
Dashboard Provisioning
- JSON 导出 includes data source UID — 将 失败 如果 不同 在...上 导入
- 使用 data source variables —
${DS_PROMETHEUS}substituted 在 runtime - Provisioned dashboards 读取-仅 由 默认 —
allowEditing: 真在...中 provisioning - Folder 必须 exist 之前 dashboard provisioning — 或 导入 fails silently
Data Sources
- "Server" mode proxies 通过 Grafana — hides credentials 从 browser
- "Browser" mode direct 从 browser — faster 但是 exposes URL/auth
- Test 连接 catches 最多 issues — 但是 不 查询-specific problems
- TLS skip 验证 对于 self-signed — 但是 fix proper certs 对于 production
Transformations
- Order matters — transformations apply 在...中 sequence
- Outer join 对于 combining queries — match 在...上 时间 或 label
- 归约 对于 aggregating 时间 series — 最后的, mean, max, etc.
- 添加 字段 从 calculation — combine metrics client-side
Common Mistakes
- 时间 range selector affects 变量 queries — unexpected results 带有 "所有 时间"
- Dashboard saved 但是 datasource 不 — works locally, breaks 在...上 导入
- 提醒 rule 在...中 dashboard vs Grafana alerting — 不同 systems, don't mix
- Panel queries run 在...上 every 刷新 — high-cardinality queries slow dashboard
- Annotation queries 添加 DB 加载 — 使用 sparingly 在...上 busy dashboards
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制