Rah*_*hul 9 grafana spring-boot-actuator prometheus
我试图使用 Prometheus 监视我们的 Spring boot 应用程序之一,但不幸的是该服务的状态在 ubuntu 服务器中没有启动,它 \xe2\x80\x99s 显示一些错误,例如 \xe2\x80\x93
\n/prometheus: x509: 由未知机构签名的证书,从我本地的 Prometheus 中该服务已启动,并且还能够监视一些 http 请求。\n错误快照
\nVen*_*ndi 14
我也遇到过同样的问题。解决了它:
按照 @Shmuel 的建议配置 Prometheus 以忽略 ssl 验证
global:
scrape_interval: 15s
external_labels:
monitor: 'prometheus'
scrape_configs:
- job_name: 'job-name'
static_configs:
- targets:
- host_name_or_ip_address1
- host_name_or_ip_address2
- host_name_or_ip_address2
scheme: https # to use https instead of http for scraping
tls_config:
insecure_skip_verify: true # This is the key
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
13604 次 |
最近记录: |