guhanfei-ai/dsh-grafana0

dsh-grafana

适用于 DeepSeek Harness 的 Grafana 仪表板编辑器:通过粘贴仪表板 URL、对话编辑 JSON 并通过 HTTP API 推回。

AI 分析

用于通过对话编辑 Grafana 仪表板。适合需要通过 AI 交互修改监控面板配置的用户。使用前需在 Grafana 中创建 Service Account 并配置本地凭证。

套件
dsh-grafana
版本
0.1.0
授權
MIT
最近更新
2026年8月17日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:guhanfei-ai/dsh-grafana

配置

配置项默认值说明
baseUrlhttp://grafana.example.comGrafana 根地址
tokenRefGRAFANA_TOKEN凭证引用名,对应 ~/.dsh/.credentials.yaml 中的键

可在 DSH Web 设置界面(插件页)或 profile 的 cordis.patch.yml 中覆盖。

凭证配置

  1. 在 Grafana 中创建 Service Account(Editor 权限)并生成 token(glsa_...
  2. 把 token 写入本机凭证文件(权限 600,仅本机用户可读):
echo 'GRAFANA_TOKEN: glsa_xxxxxxxx' >> ~/.dsh/.credentials.yaml
chmod 600 ~/.dsh/.credentials.yaml
  1. 聊天记录、插件配置、日志中永远只出现引用名 GRAFANA_TOKEN,不出现 token 明文