guhanfei-ai/dsh-grafana0

dsh-grafana

Grafana dashboard editor for DeepSeek Harness: paste a dashboard URL, edit JSON via conversation, push back via HTTP API

包名
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 明文