无法重新加载Prometheus配置

时间:2020-08-10 03:50:01

标签: devops prometheus prometheus-node-exporter

我已经从-

开始了Prometheus服务
docker service create --replicas 1 --name my-prometheus \
    --mount type=bind,source=/tmp/prometheus.yml,destination=/etc/prometheus/prometheus.yml \
    --publish published=9090,target=9090,protocol=tcp \
    prom/prometheus

,并可以根据prometheus.yml文件中进行的配置访问Prometheus仪表板。现在,我在prometheus.yml中进行了一些更改,并希望反映出来,因此请点击命令-

curl -X POST http://localhost:9090/-/reload

,但是此命令不提供任何输出,也不会失败;它仍然处于卡住状态。

请帮助了解这里出了什么问题。

1 个答案:

答案 0 :(得分:0)

检查 http://localhost:9090/status 上 Prometheus 重新加载的状态页面。它应该告诉你重新加载是否成功。