【发布时间】:2020-08-20 14:13:21
【问题描述】:
我试图使用 Prometheus 监控我们的一个 Spring Boot 应用程序,但不幸的是,该服务的状态在 ubuntu 服务器中没有启动,它显示了一些错误,例如 –
/prometheus: x509: 由未知机构签署的证书,在我本地的 Prometheus 中,此服务已启动,并且还能够监控一些 http 请求。 enter image description here
【问题讨论】:
-
我的服务器似乎没有使用自签名证书运行,所以当 prometheus 尝试调用它时,它在证书问题上失败了。 Yiou 可以: 在 prometheus 服务器上安装你的证书。或者告诉 prometheus 忽略 ssl 验证。 (顺便说一句,你可能会丢失 url https 默认为 443 的端口号)
标签: prometheus grafana spring-boot-actuator