Prometheus
依赖说明:以 Prometheus 格式公开 Micrometer 指标,这是一个内存维度时间序列数据库,具有简单的内置UI、自定义查询语言和数学运算。
Prometheus 是一套开源的系统监控报警框架。它启发于 Google 的 borgmon 监控系统,由工作在 SoundCloud 的 google 前员工在 2012 年创建,作为社区开源项目进行开发,并于 2015 年正式发布。2016 年,Prometheus 正式加入 Cloud Native Computing Foundation,成为受欢迎度仅次于 Kubernetes 的项目。
参考:
Prometheus入门教程(一):Prometheus 快速入门
Prometheus入门教程(二):Prometheus + Grafana实现可视化、告警
docker-compose编排安装监控工具prometheus和图形化界面grafana
(延伸)Spring Actuator & Micrometer 实现应用的监控模块
(延伸)SpringCloud之Micrometer 微服务监控
POM
<!--Prometheus-->
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
<scope>runtime</scope>
</dependency>
XX
本文介绍了如何在应用中使用Prometheus和Micrometer库来实现内存监控,展示如何将Micrometer指标以Prometheus格式公开,以及如何通过它们配合使用来创建强大的系统监控和告警系统。涵盖了从基本安装到实战应用的全面教程。
3056

被折叠的 条评论
为什么被折叠?



