如何设置 Prometheus 地址?
通过环境变量 `PROMETHEUS_URL` 设置 Prometheus 端点,例如 `export PROMETHEUS_URL=http://your-prometheus:9090`。
@qingshanyuluo
基本情報
一个简化版的Prometheus MCP服务器,用于收集和暴露MCP服务器的指标
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"prometheus-mcp-server-qingshanyuluo": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"node",
"build/index.js"
]
}
}
}ツール一覧はまだありません
この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。
上のボタンで一時的なサンドボックスでこのサーバーを実行し、ツール一覧を取得できます。
Prometheus MCP 服务器是一个简化版的 MCP 服务器,用于查询 Prometheus 指标并提供 AI 分析。它通过 MCP 工具暴露 Prometheus 的查询能力,方便 AI 代理或客户端集成。
设置环境变量 PROMETHEUS_URL 指定 Prometheus 端点,然后运行 go run cmd/server/main.go sse 启动服务器,默认监听 :8081 端口,通过 /sse 路径暴露 SSE 连接。MCP 客户端可通过配置 mcpServers 中的 url 为 http://localhost:8081/sse 连接使用。
通过环境变量 `PROMETHEUS_URL` 设置 Prometheus 端点,例如 `export PROMETHEUS_URL=http://your-prometheus:9090`。
服务器默认在 `:8081` 端口启动,可通过代码或启动参数修改(当前默认固定)。
支持即时查询(`query`)、范围查询(`query_range`)以及带图表的范围查询(`query_chart`)。
在 MCP 客户端配置文件中添加 `mcpServers` 项,指定 `url` 为服务器的 SSE 地址,例如 `http://localhost:8081/sse`。
所有工具查询结果均以 JSON 格式返回,`query_chart` 额外返回 base64 编码的 PNG 图片。

Verified distributed compute for humans, applications, and agents. Submit Blender, Octane, and video workloads, route them across qualified GPUs, track asynchronous execution, download finished artifacts, and verify FARP

One case file per task — shared by every session, agent and person that touches it. Self-hosted MCP server and live board. MIT.

Complete, hosted login, teams, billing and feature flags for your SaaS app, set up by your AI assistant: sign-in and SSO, customer teams and roles, plans and usage limits on Stripe, and feature flags. OAuth sign-in, no A

Eased is a library of motion-first React components for shadcn, installed with the shadcn CLI.
Remote MCP server from OSIR, an ICANN-accredited registrar: 105 tools and 11 prompts to search, register, renew, transfer, and manage domains, DNS, VPS, email, and websites from Claude, ChatGPT, Cursor, or any MCP client
コメント