Mycat2
Mycat2 copied to clipboard
监控器prometheus的指标不能跨域请求
我为prometheus 设置数据源时访问:http://h20:7066/metrics,浏览器报告不能进行跨域访问,不知道mycat是否有相应的设置可以允许跨域访问,具体错误如图所示:


Mycat2的prometheus监控启动后是这样的,然后prometheus服务器会定时轮训这个http接口记录数据
你这个跨域问题在mycat里没有相关属性设置的,或者你用nginx,haproxy等工具,它对应的请求转发到mycat的端口
mycat2权威指南 里关于prometheus+grafana 监控的内容太少了,我重新写了个博文:https://blog.csdn.net/qq_23133409/article/details/124480164
谢谢你,已经加入到权威指南了