028-86922220

建站动态

根据您的个性需求进行定制 先人一步 抢占小程序红利时代

springboot中Prometheus的简介及用法-创新互联

小编给大家分享一下springboot中Prometheus的简介及用法,希望大家阅读完这篇文章后大所收获,下面让我们一起去探讨吧!

雄县网站制作公司哪家好,找创新互联建站!从网页设计、网站建设、微信开发、APP开发、响应式网站等网站项目制作,到程序开发,运营维护。创新互联建站于2013年创立到现在10年的时间,我们拥有了丰富的建站经验和运维经验,来保证我们的工作的顺利进行。专注于网站建设就选创新互联建站

Prometheus 是一套开源的系统监控报警框架。它由工作在 SoundCloud 的 员工创建,并在 2015 年正式发布的开源项目。2016 年,Prometheus 正式加入 Cloud Native Computing Foundation,非常的受欢迎。

简介

Prometheus 具有以下特点:

Prometheus 组成及架构

声明:该小节参考了文章[Prometheus 入门与实践]

Prometheus 生态圈中包含了多个组件,其中许多组件是可选的:

一些其他的工具。

springboot中Prometheus的简介及用法

其大概的工作流程是:

1.Prometheus server 定期从配置好的 jobs 或者 exporters 中拉 metrics,或者接收来自 Pushgateway 发过来的 metrics,或者从其他的 Prometheus server 中拉 metrics。
2.Prometheus server 在本地存储收集到的 metrics,并运行已定义好的 alert.rules,记录新的时间序列或者向 Alertmanager 推送警报。
3.Alertmanager 根据配置文件,对接收到的警报进行处理,发出告警。
4.在图形界面中,可视化采集数据。

springboot 集成prometheus

在spring boot工程中引入actuator的起步依赖,以及micrometer-registry-prometheus的依赖。


	 org.springframework.boot
	 spring-boot-starter-web


		org.springframework.boot
		spring-boot-starter-actuator


		io.micrometer
		micrometer-registry-prometheus

网站名称:springboot中Prometheus的简介及用法-创新互联
文章位置:http://www.tsicrk.com/article/deeedd.html

其他资讯

让你的专属顾问为你服务

0.6893s