dsh-grafana-query

面向 Grafana 的只读工具,经数据源代理查询指标:实例健康、数据源列表、instant 与 range PromQL 查询、当前告警状态与已配置的告警规则。range 查询会按点数预算降采样;调用方显式指定的 step 若会超量则直接拒绝,而不是静默改写,避免模型拿到与预期不同分辨率的数据。

插件介绍

面向 Grafana 的只读工具,经数据源代理查询指标:实例健康、数据源列表、instant 与 range PromQL 查询、当前告警状态与已配置的告警规则。range 查询会按点数预算降采样;调用方显式指定的 step 若会超量则直接拒绝,而不是静默改写,避免模型拿到与预期不同分辨率的数据。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-grafana-query

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:maxmilian/dsh-grafana-query

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

第三方安装实测

安装测试结果
测试版本不兼容
实测 Harness 版本
0.2.0-rc.2
实测插件版本
未记录
测试日期

版本回退

回退测试结果
未找到回退版本
查看依赖版本范围
@deepseek-ai/dsh-tools
^0.1.0-rc.8 || ^0.1.1-rc.2 || ^0.1.7-rc.2