DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Prometheus — DeepSeek Harness 插件(DSH Plugin)
← Plugins

dsh-prometheus

Prometheus

注重隐私的 Prometheus 指标和用于 DeepSeek Harness 的 Grafana 仪表板

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-prometheus@0.1.0
README兼容性版本

兼容性与来源证明

Prometheus 以 dsh-prometheus 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
npm
Registry 更新时间
2026/9/20

版本

0.1.0stable
2026/8/15

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
107.4 kB
文件数
35
Surface
any
许可证
MIT
发布源
npm
GitHub
★ 1
周下载
56
最近提交
2026/8/22
查看源码 ↗
项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

继续浏览 ui-customization 分类下经过校验的插件。

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Experimental Agent Team Web Profile@deepseek-ai/dsh-experimental-agent-team-web-profile用于 Agent Teams Remote 和 UI 插件的实验性 Web 配置层Remote Web Ui@linxin666/dsh-remote-web-ui通过扫码配对访问 dsh Web GUI,共享一个官方界面:设置按钮旁的二维码可将手机和 PC 配对到同一个 Web GUI(手机采用竖屏触控适配层,PC 使用完整桌面界面),通过一次性令牌和 rClient Ui Task Board@linxin666/dsh-client-ui-task-board面向 DSH Web GUI 的主机权威任务面板,支持实际会话执行、主机 cron 调度以及可选的跨平台空闲睡眠保护;以挂载方式提供,无需修改 DSH 源代码。

README

dsh-prometheus

English | 中文

Prometheus metrics and a ready-to-import Grafana dashboard for DeepSeek Harness. The plugin observes public DSH lifecycle seams, keeps metric series bounded, and avoids exporting conversation or tool payloads.

Release status: 0.1.0 is the first developer-preview release, tested against DSH 0.1.0-rc.6.

What it monitors

  • Active sessions; agent turns, steps, errors, and duration histograms
  • LLM request rate, terminal status, latency, and disjoint input/output/reasoning/cache token counters
  • Tool call rate, normalized success/error status, and latency
  • Approval request and fixed outcome counters
  • Subagent starts, outcomes, and duration
  • Active/started/completed/killed/failed background jobs and duration
  • Process start time and cardinality-overflow diagnostics

The exact names, labels, and meanings are in docs/metrics.md.

Compatibility

ComponentTested version
DeepSeek Harness npm packages0.1.0-rc.6
Official source baseline47f943859bef60e4160492346772ded9b24f765a (2026-08-13)
Cordis^4.0.1
Node.js`^22.19.0
prom-client15.1.3

DeepSeek Harness is a developer preview. Treat every DSH upgrade as a compatibility event and run the full test/release checklist.

Install

Install the package into a DSH profile and verify its bundle layer:

dsh plugin --profile monitoring add dsh-prometheus
dsh --profile monitoring --dump-config

The bundle inserts one row with id prometheus. Verify the dump includes the dsh-prometheus layer before booting the profile.

Endpoint selection

The default mode: auto makes one activation-time decision:

  1. If a public DSH webServer is already active and safely bound, register the exact /metrics route on it.
  2. Otherwise, start a standalone endpoint on 127.0.0.1:9464.

For the bundled Docker example, force standalone mode so Prometheus has a stable target. Add this row to the profile's cordis.patch.yml (later layers replace the whole config value):

- id: prometheus
  config:
    enabled: true
    mode: standalone
    host: 127.0.0.1
    port: 9464
    path: /metrics
    allowRemote: false
    maxLabelValues: 64
    maxLabelValueLength: 80

Configuration

FieldDefaultDescription
enabledtrueDisable all collectors and endpoint without removing the row.
modeautoauto, webserver, or standalone.
host127.0.0.1Standalone bind address: loopback or 0.0.0.0.
port9464Standalone TCP port; 0 is intended only for tests.
path/metricsExact route, beginning with / and without a trailing slash.
allowRemotefalseRequired acknowledgement for 0.0.0.0 or a remote-facing WebServer route.
maxLabelValues64Per-key dynamic-label vocabulary cap.
maxLabelValueLength80Maximum accepted dynamic-label length.

Remote exposure has no built-in authentication or TLS. Read SECURITY.md before enabling it.

Quick scrape

curl --fail --silent http://127.0.0.1:9464/metrics

The endpoint accepts GET and HEAD, returns 405 for other methods, disables caching, and uses the Prometheus/OpenMetrics-compatible prom-client content type.

Prometheus and Grafana

The repository includes a full local stack:

docker compose -f examples/docker-compose.yml up -d

Then open Prometheus at http://127.0.0.1:9090 and Grafana at http://127.0.0.1:3000 (admin / admin; change it outside local development). The datasource and DeepSeek Harness / Overview dashboard are provisioned automatically.

The standalone assets are examples/prometheus.yml and grafana/dsh-overview.json. Security, compatibility, and verification details live in docs/security.md, docs/compatibility.md, and docs/verification-report.md.

Useful queries:

# Turn throughput
sum(rate(dsh_agent_turns_total[5m]))

# Turn failure ratio
sum(rate(dsh_agent_turns_total{status=~"error|blocked|aborted"}[5m]))
/
clamp_min(sum(rate(dsh_agent_turns_total[5m])), 0.000001)

# P95 LLM latency by provider/model
histogram_quantile(0.95,
  sum by (le, provider, model) (rate(dsh_llm_request_duration_seconds_bucket[5m])))

# Tool errors by tool
sum by (tool) (rate(dsh_tool_calls_total{status!="success"}[5m]))

See examples/prometheus/alerts.yml for starter alerts. Tune thresholds to the workload; quiet agent processes legitimately have zero throughput.

Privacy and cardinality

The collector never exports prompts, user/assistant messages, system prompts, tool arguments or results, error text, file paths, working directories, arbitrary metadata, or session/agent/call/job/subagent ids.

Only four runtime-controlled label keys exist: provider, model, tool, and job kind. Values must match [A-Za-z0-9][A-Za-z0-9_.:/-]*, remain within the configured length, and fit the per-key vocabulary cap. Rejected or excess values become __other__; the event is counted by dsh_metrics_label_overflow_total without logging the original value.

Provider/model/tool/kind names are still operational metadata. Do not put customer identifiers or secrets in those names.

Lifecycle behavior

All listeners, job observers, routes, sockets, and registries belong to the plugin's Cordis fiber. On hot reload or uninstall, the route is removed or the standalone server is closed and remaining sockets are destroyed. The registry is instance-local, so reload does not collide with process-global collectors.

Existing live sessions and jobs seed gauges only. Historical events are not replayed into counters. Counter resets across process restart/hot reload are normal Prometheus behavior.

Upgrade, downgrade, remove

# Upgrade after obtaining a newer tarball/version
dsh plugin --profile monitoring add ./dsh-prometheus-NEW.tgz
dsh --profile monitoring --dump-config

# Remove the dependency and bundle layer
dsh plugin --profile monitoring remove dsh-prometheus

Before a downgrade, compare metric and config contracts in CHANGELOG.md. Removing the plugin does not delete data already stored by Prometheus.

Development

pnpm install --frozen-lockfile
pnpm check
pnpm test:coverage
pnpm pack

The suite covers config/cardinality, privacy, LLM/tool waterfalls, endpoint methods, remote-exposure gates, WebServer route teardown, standalone socket teardown, job/subagent lifecycles, and a real rc.6 AgentLoop turn. See CONTRIBUTING.md, docs/architecture.md, and docs/release-checklist.md.

Troubleshooting and limitations

See docs/troubleshooting.md and docs/known-limitations.md.

License

MIT