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

AI Analysis

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

Package
dsh-grafana
Version
0.1.0
License
MIT
Last updated
Aug 17, 2026

Install

$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 明文