使用Prometheus进行Spring Boot应用程序监视

问题描述 投票:1回答:1

我们正在为物理服务器上托管的Spring Boot应用程序开发监视和警报机制。经过一番研究,决定与

执行器-监视各个方面的应用

Prometheus-公制商店

Grafana-用于仪表板的可视化和警报

一切顺利,直到普罗米修斯出现为止。将指标提供给指标存储时遇到问题。

prometheus.yml

scrape_configs: - job_name: 'spring-actuator' metrics_path: '/actuator/prometheus' scrape_interval: 5s static_configs: - targets: ['localhost:8080']

Prometheus服务器日志

level = info ts = 2020-02-05T15:05:20.873Z呼叫者= main.go:762 msg =“完成加载配置文件” filename = prometheus.ymllevel = info ts = 2020-02-05T15:05:20.873Z caller = main.go:617 msg =“服务器已准备好接收Web请求。”

Prometheus仪表板显示无数据可显示

注意,Spring Boot Services已启动,当命中localhost:8080 / actuator / prometheus时,它将返回数据。禁用了执行器端点的灵敏度。

java spring-boot prometheus health-monitoring prometheus-alertmanager
1个回答
0
投票

信息太少,无法回答这个问题,但是每当我看到无数据可显示

© www.soinside.com 2019 - 2024. All rights reserved.