Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grafana连接腾讯云代理配置 #4

Closed
feixiaohuijava opened this issue Aug 26, 2019 · 2 comments
Closed

grafana连接腾讯云代理配置 #4

feixiaohuijava opened this issue Aug 26, 2019 · 2 comments

Comments

@feixiaohuijava
Copy link

请问grafana中配置外网代理连接腾讯云是怎么设置啊? 是要在/etc/init.d/grafana-server中设置代理吗? 我设置了没反应,想请问下作者是怎么配置外网代理的?

@susiezhao
Copy link
Contributor

首先腾讯云API的访问是本身就是支持外网的,如果是外网环境是不需要配置代理的。
拿 API 文档中的 云服务器的接口来说:https://cloud.tencent.com/document/api/213/15708
你只要确保你的环境能通 cvm.tencentcloudapi.com 这个域名就可以的。
我这边需要配置外网访问是因为公司的开发环境是不支持外网的,我这边用的 Proxifier 通过配置公司提供的访问外网的域名和端口;
image
然后在在 Rules 采用上述的规则让 grafana-server 的应用走我的外网代理规则
image

@feixiaohuijava
Copy link
Author

首先腾讯云API的访问是本身就是支持外网的,如果是外网环境是不需要配置代理的。
拿 API 文档中的 云服务器的接口来说:https://cloud.tencent.com/document/api/213/15708
你只要确保你的环境能通 cvm.tencentcloudapi.com 这个域名就可以的。
我这边需要配置外网访问是因为公司的开发环境是不支持外网的,我这边用的 Proxifier 通过配置公司提供的访问外网的域名和端口;
image
然后在在 Rules 采用上述的规则让 grafana-server 的应用走我的外网代理规则
image

额。。我的grafana是装在linux服务器上的,我的Linux机器本身在/etc/profile设置了外网代理,但是还需要在/etc/sysconfig/grafana-server中设置代理。好坑啊,没想到grafana还要单独设置一个外网代理。我已经解决了这个问题了。哈哈。。你也可以参考grafana/grafana#11962 这里给出了理由和答案。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants