【发布时间】:2017-06-28 03:28:16
【问题描述】:
我正在运行一个地址为 127.0.0.1:5000 的 Web 应用程序,并且正在使用 Prometheus 的 python 客户端库。我在他们的docs 中使用示例中的start_http_server(8000) 来公开该端口上的指标。应用程序运行,但我得到[Errno 48] Address already in use,当我尝试点击它时 localhost:8000 没有连接到任何东西。
如果我无法从一个 Web 应用程序启动两台服务器,那么我应该将哪个端口传递给 start_http_server() 以公开指标?
在我启动应用程序之前,两个端口上都没有运行任何东西。
【问题讨论】:
标签: python monitoring prometheus