
sailingcoder/grafana-mcp-analyzer
Analytics & monitoring이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
shipingcoder/grafana-mcp-analyzer는 MCP 서버 후보자는 https://github.com/sailingcoder/grafana-mcp-analyzer.에서 수입했습니다
개요
shipingcoder/grafana-mcp-analyzer는 MCP 서버 후보자는 https://github.com/sailingcoder/grafana-mcp-analyzer.에서 수입했습니다
개요(AI 번역)
** AI AI 的,成为你的!!**
English | 한국어
# # # # # # # # # # # # # # # # # # # # # # # # # # # #
一一:
- AIAI:“我的AI?”
- AI高的GrafanaGr,高:“CPU高高,高…”
繁的AI,AI 一一一。AI,AI ** ** 的分分析!
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Grafana MCP 분석기 MCP (모델 컨텍스트 프로토콜) ,CClaude、ChatGPTąAIAI下::
-** 松松AI,AI 一一分析 上 上 上 上 上 -curl► - 用 的 curl 合成 바레인 -** Pro** - Prometheus、MySQL、ES 通通支持 D D D D D D
高 高 高 高 高 高 高 高 高 AI AI AI 高 高。
제1장:安安996(30대)
N:Node.js 18+ | 安南南
AI:AI AI成(30대)
“MCP” → (以):
::CONFIG_PATHT路跡、T路鶏,用路体験。
第三王:三文件(1分)
T T T 下 下
体,行,行行。
展
::用!
Cur:
파일 형식
⚠️ ** 過去[T2]] 文件,都都 큐서。
, AI AI 分分析:
1、1::的1?
** :**:
2、2:鶏CPU 简体験行行?
** :**:
一AI:AI AI“天天”,天的天。
MCP
인포메이션 |------|----------|
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Grafana MCP Analyzer 🤖
让 AI 直接读懂你的监控数据,成为你的专属智能运维助手!
✨ 项目简介
想象一下这样的场景:
- 您问AI:“我的服务器现在怎么样?”
- AI直接查看您的Grafana监控,回答:“CPU使用率偏高,建议检查这几个进程…”
繁杂的监控图表,AI 辅助你一键解读。你无需再逐图筛查,真正实现从 图表到洞察 的闭环分析体验!
🚀 核心特性
Grafana MCP Analyzer 基于 MCP (Model Context Protocol) 协议,赋能Claude、ChatGPT等AI助手具备以下超能力:
- 自然语言查询 - 轻松访问监控数据,AI 一键输出专业分析
- 多轮对话支持 - 支持复杂的多轮对话分析,能够基于上下文进行深入分析
- curl支持 - 直接使用浏览器 copy 的 curl 合成查询
- 全数据源支持 - Prometheus、MySQL、ES 等通通支持
- 专业 DevOps 建议 - 不只是展示数据,更提供可执行的优化方案,提升DevOps效率
💡 架构新模式:会话缓存 → 逐步获取数据 → 渐进式深入分析 → 缓存复用,让AI分析更准确、更高效。
🛠️ 快速开始
第一步:极速安装(30秒)
npm install -g grafana-mcp-analyzer
环境要求:Node.js 18+ | 安装指南
第二步:AI 助手集成(30秒)
Cursor设置 → “MCP” → 服务配置(以Cursor为例):
{
"mcpServers": {
"grafana": {
"command": "grafana-mcp-analyzer",
"env": {
"CONFIG_PATH": "https://raw.githubusercontent.com/SailingCoder/grafana-mcp-analyzer/main/config/grafana-config-play.js",
"MAX_CHUNK_SIZE": "100"
}
}
}
}
注:CONFIG_PATH支持绝对路径、远程路径,推荐使用远程路径快速体验。
第三步:编写配置文件(1分钟)
如需连接自有数据,可在 CONFIG_PATH 路径下创建配置文件:(grafana-config-play.js 示例 👉 点此查看 )
如果你只想快速体验示例,可跳过此步骤,直接执行第四步。
/**
* 基于Grafana Play演示实例的配置文件
* 以下配置文件内容来源:https://raw.githubusercontent.com/SailingCoder/grafana-mcp-analyzer/main/config/grafana-config-play.js
* Request 配置方式:支持 http api 和 curl
*/
const config = {
// Grafana服务器地址
baseUrl: 'https://play.grafana.org',
// 默认请求头
defaultHeaders: {
'Content-Type': 'application/json',
'Accept': 'application/json, text/plain, */*'
},
// 健康检查配置
healthCheck: {
url: 'api/health'
},
// 查询定义
queries: {
// Price Only, Hollow Candles
// 使用HTTP API格式
// 数据源:https://play.grafana.org/d/candlestick/candlestick?orgId=1&from=2021-07-13T22:13:30.740Z&to=2021-07-13T22:46:18.921Z&timezone=utc&viewPanel=panel-7
candlestick_priceOnly_hollowCandles: {
url: 'api/ds/query',
method: 'POST',
params: {
ds_type: 'grafana-testdata-datasource',
requestId: 'SQR279'
},
headers: {
'accept': 'application/json, text/plain, */*',
'accept-language': 'zh-CN,zh;q=0.9',
'cache-control': 'no-cache',
'content-type': 'application/json',
'origin': 'https://play.grafana.org',
'pragma': 'no-cache',
'priority': 'u=1, i',
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"grafana": {
"command": "grafana-mcp-analyzer",
"env": {
"CONFIG_PATH": "https://raw.githubusercontent.com/SailingCoder/grafana-mcp-analyzer/main/config/grafana-config-play.js",
"MAX_CHUNK_SIZE": "100"
}
}
}
}