DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Prometheus Plugin — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
P

@local/dsh-prometheus-plugin

Prometheus Plugin

用于 dsh 的 PromQL 插件:将 Prometheus HTTP API 作为智能体工具提供

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

npx -y @deepseek-ai/dsh plugin --profile web add github:HuckOps/dsh-prometheus-plugin#fe6c819b825c9aebb4ed294921412e399e05b1ed
README兼容性版本

兼容性与来源证明

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

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/10/18

版本

0.1.0stable
2026/10/18

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/10/18
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Acp App@deepseek-ai/dsh-acp-appdsh ACP 配置文件包:基于 dsh-base 的仅限自动化的 JSON-RPC stdio 和进程生命周期管理Experimental Plugin Market Bundle@deepseek-ai/dsh-experimental-plugin-market-bundle实验性自定义插件市场:用于浏览和安装来自插件市场索引的捆绑包的“发现”选项卡Ab Wechat Scrapedsh-ab-wechat-scrape--- description: "树外 wechat_scrape 工具:获取微信公众号文章,过滤推广区块,并将每篇文章保存为 Markdown 文件,供此机器的 dsh 配置文件维护者使用。" kind: "package-reference" ---Im@xmanrui/dsh-im将微信、飞书、企微、钉钉、QQ、Telegram、WhatsApp、Slack、Discord 和 Matrix 接入 DSH。

README

dsh-prometheus-plugin

A DeepSeek Harness (dsh) plugin that exposes the Prometheus HTTP API as a set of tools an LLM agent can call. Built on the Cordis framework and @deepseek-ai/dsh-tools.

Features

  • 30 tools covering the full Prometheus HTTP API: instant / range queries, metadata & series discovery, targets, rules / alerts / alertmanagers, server status, the experimental Search API, and the admin TSDB endpoints.
  • A single shared HTTP client (src/client.ts) with consistent error formatting and a configurable request timeout (AbortController, default 30s).
  • Declarative tool definitions via @deepseek-ai/dsh-tools, friendly for agent use.

Prerequisites

  • A running Prometheus instance reachable over HTTP.
  • Some endpoints require extra Prometheus launch flags:
    • Admin tools (admin-snapshot, admin-delete-series, admin-clean-tombstones) require --web.enable-admin-api.
    • Search tools (search-metric-names, search-label-names, search-label-values) require --enable-feature=search-api.
    • Some endpoints are only available in newer Prometheus versions (format-query, parse-query, query-exemplars, status-tsdb (3.6.0+), status-self-metrics, features, …). Pointing a tool at an older server returns an HTTP error from Prometheus itself.

Usage

Install the bundle into your dsh profile:

git clone https://github.com/HuckOps/dsh-prometheus-plugin
# In dsh (agent or Plugin Manager), install the bundle:
# plugin_manager install_bundle /path/to/dsh-prometheus-plugin

The bundle declares cordis.patch.yml, which registers the promql-plugin entry with the package @local/dsh-prometheus-plugin (resolved via the dsh.bundle.patch field in package.json). No manual cordis.yml editing is needed.

The patch ships a default config:

- insert:
    - id: promql-plugin
      name: '@local/dsh-prometheus-plugin'
      config:
        prometheusEndpoint: http://127.0.0.1:9090

Edit the patch (or override the entry's config) to point at your Prometheus instance. prometheusEndpoint defaults to http://127.0.0.1:9090 when omitted.

To build from source:

npm install        # postinstall runs tsc, output to lib/

Note: runtime dependencies (@deepseek-ai/dsh-tools, @deepseek-ai/cordis, @deepseek-ai/schemastery) are declared as peer dependencies matching the DSH host runtime; they are not bundled into the plugin.

Tools

All tools are registered with the promql- prefix.

Query

ToolPrometheus endpoint
promql-queryGET /api/v1/query
promql-query-rangeGET /api/v1/query_range
promql-format-queryGET /api/v1/format_query
promql-parse-queryGET /api/v1/parse_query
promql-query-exemplarsGET /api/v1/query_exemplars

Metadata & series

ToolPrometheus endpoint
promql-seriesGET /api/v1/series
promql-labelsGET /api/v1/labels
promql-label-valuesGET /api/v1/label/{name}/values
promql-metadataGET /api/v1/metadata

Targets

ToolPrometheus endpoint
promql-targetsGET /api/v1/targets
promql-targets-metadataGET /api/v1/targets/metadata
promql-scrape-poolsGET /api/v1/scrape_pools

Rules / alerts / alertmanagers

ToolPrometheus endpoint
promql-rulesGET /api/v1/rules
promql-alertsGET /api/v1/alerts
promql-alertmanagersGET /api/v1/alertmanagers

Status

ToolPrometheus endpoint
promql-status-configGET /api/v1/status/config
promql-status-flagsGET /api/v1/status/flags
promql-status-runtimeinfoGET /api/v1/status/runtimeinfo
promql-status-buildinfoGET /api/v1/status/buildinfo
promql-status-tsdbGET /api/v1/status/tsdb (3.6.0+)
promql-status-tsdb-blocksGET /api/v1/status/tsdb/blocks
promql-status-walreplayGET /api/v1/status/walreplay
promql-status-self-metricsGET /api/v1/status/self_metrics
promql-featuresGET /api/v1/features

Search (experimental, requires --enable-feature=search-api)

ToolPrometheus endpoint
promql-search-metric-namesGET /api/v1/search/metric_names
promql-search-label-namesGET /api/v1/search/label_names
promql-search-label-valuesGET /api/v1/search/label_values

Admin (requires --web.enable-admin-api)

ToolPrometheus endpoint
promql-admin-snapshotPOST /api/v1/admin/tsdb/snapshot
promql-admin-delete-seriesPOST /api/v1/admin/tsdb/delete_series
promql-admin-clean-tombstonesPOST /api/v1/admin/tsdb/clean_tombstones

Project layout

.
├── cordis.patch.yml    # dsh bundle patch: registers the promql-plugin entry
├── package.json        # bundle manifest (dsh.bundle.patch) + peer deps
├── icon.svg            # bundle display icon
├── locale/
│   ├── en.json
│   └── zh.json
├── tsconfig.json
├── README.md
├── LICENSE
└── src/
    ├── index.ts        # package entry: re-exports apply/inject/Config
    ├── client.ts       # shared HTTP client + error handling + timeout
    ├── query.ts        # query / query_range / format_query / parse_query / query_exemplars
    ├── metadata.ts     # series / labels / label_values / metadata
    ├── targets.ts      # targets / targets_metadata / scrape_pools
    ├── rules.ts        # rules / alerts / alertmanagers
    ├── status.ts       # config / flags / runtimeinfo / buildinfo / tsdb / tsdb_blocks / walreplay / self_metrics / features
    ├── search.ts       # search/metric_names / search/label_names / search/label_values
    ├── admin.ts        # admin/tsdb/snapshot / delete_series / clean_tombstones
    └── plugin.ts       # entry: imports and registers all tools

License

MIT © 2026 HuckOps