养龙虾--安装grafana mcp server并使用codebuddy自动巡检

1.在grafana上生成 token,参考前面的文章

养龙虾-在 Grafana 中获取 API Token 的方法https://blog.csdn.net/qyq88888/article/details/159004582?spm=1001.2014.3001.5501

2.在grafana服务端使用docker安装 grafana mcp server

bash 复制代码
docker run -d -p 8000:8000 -e GRAFANA_URL=http://grafana的ip:端口 -e GRAFANA_SERVICE_ACCOUNT_TOKEN='Tokenxxxx' mcp/grafana

docker ps|grep mcp
14477871b265   mcp/grafana                                    "/app/mcp-grafana --..."   5 seconds ago   Up 5 seconds             0.0.0.0:8000->8000/tcp, [::]:8000->8000/tcp                                                                                                                                                        tender_davinci

3.在codebuddy上添加mcp配置

填写Grafana MCP Server的连接信息:

服务器地址:http://<你的mcp-server地址>:端口

传输协议:通常为SSE或HTTP(根据MCP Server实现而定,我的地址就是:http://<你的mcp-server地址>:端口/sse)。

名称自定义,我命名为grafana-mcp。

添加多个mcp server的样例如下:

bash 复制代码
{
  "mcpServers": {
    "signoz-mcp": {
      "url": "http://公网ip:8000/mcp",
      "disabled": false
    },
     "grafana-mcp": {
      "url": "http://公网ip:8000/sse",
      "disabled": false
    }   
  }
}

4.使用codebuddy 自动巡检

相关推荐
暮云星影1 天前
个人总结 搭建Docker监控
docker·容器·grafana·prometheus
Junsir大斗师5 天前
rocky9.7搭建grafana+loki+prometheus+alloy+node_exporter运维监控平台
linux·运维·grafana·prometheus
青皮桔6 天前
Prometheus + Grafana实现服务器监控
服务器·grafana·prometheus
1candobetter7 天前
文件下载接口从预热到正式性能测试实践(JMeter + Prometheus + Grafana)
jmeter·grafana·prometheus
文青小兵9 天前
Linux云计算——docker 监控(五)
linux·docker·云计算·grafana·prometheus
codeejun11 天前
每日一Go-70、Prometheus + Grafana 从采集到告警的完整实战(Go + Kind)
golang·grafana·prometheus
king_harry13 天前
Kylinv10下日志收集系统 Loki + Promtail + Grafana(二进制离线部署)
grafana·loki·promtail
zhojiew14 天前
在Ray集群中使用vLLM部署LLM模型并集成Prometheus和Grafana进行指标观测的实践
grafana·prometheus·vllm
zxd02031115 天前
Prometheus + Grafana 监控平台搭建实战指南
grafana·prometheus