【发布时间】:2020-08-21 14:08:27
【问题描述】:
我正在尝试使用 PushGateway 推送指标,但在推送指标时出现以下错误:
java.io.IOException: Response code from http://169.41.73.106:30000/metrics/job/pushgateway was 404, response body: 404 page not found
at io.prometheus.client.exporter.PushGateway.doRequest(PushGateway.java:325)
at io.prometheus.client.exporter.PushGateway.pushAdd(PushGateway.java:160)
at com.test.promtheus.App.main(App.java:37)
直到 http://169.41.73.106:30000/metrics 的 URL 工作正常,但是当我尝试 /metrics/job 使用提到的任何抓取作业名称时,我得到 404。有人可以帮忙吗?
【问题讨论】:
-
我预计错误消息来自propetheus API。您是否尝试过从程序运行的服务器上卷曲?这可能是接口绑定的问题。
标签: prometheus prometheus-java