我可以将 carbon/graphite 数据发送到端口 80 上的 url 吗?

Can I send carbon/graphite data to a url on port 80?

我在一个端口关闭且难以打开的环境中工作。

我正在考虑将我的石墨数据发送到 localhost/graphitein 而不是端口 2003 并让 nginx 进行映射。

有什么理由不这样做吗?

根据维基百科(粗体是我的):

Nginx [...] can also act as a reverse proxy server for HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer and an HTTP cache.

我认为您不能将 Nginx 用作 Graphite 协议的反向代理。

也许你可以使用 SSH Tunnel?

这个工具可能是一个解决方案https://github.com/obfuscurity/backstop"Backstop is a simple endpoint for submitting metrics to Graphite. It accepts JSON data via HTTP POST and proxies the data to one or more Carbon/Graphite listeners."