主要内容更 监控参数说明

Maven坐标

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>

SpringBoot2.0 Actuator监控指标分析

序号 参数 参数说明 是否监控 监控手段 重要度
---JVM---   
1  jvm.memory.max  JVM最大内存      
2  jvm.memory.committed  JVM可用内存  展示并监控堆内存和Metaspace 重要
3  jvm.memory.used  JVM已用内存  展示并监控堆内存和Metaspace 重要
4  jvm.buffer.memory.used  JVM缓冲区已用内存      
5  jvm.buffer.count  当前缓冲区数      
6  jvm.threads.daemon  JVM守护线程数  显示在监控页面  
7  jvm.threads.live  JVM当前活跃线程数  显示在监控页面;监控达到阈值时报警 重要
8  jvm.threads.peak  JVM峰值线程数  显示在监控页面  
9  jvm.classes.loaded  加载classes数      
10  jvm.classes.unloaded  未加载的classes数      
11  jvm.gc.memory.allocated  GC时,年轻代分配的内存空间      
12  jvm.gc.memory.promoted  GC时,老年代分配的内存空间      
13  jvm.gc.max.data.size  GC时,老年代的最大内存空间      
14  jvm.gc.live.data.size  FullGC时,老年代的内存空间      
15  jvm.gc.pause  GC耗时  显示在监控页面  
---TOMCAT---   
16  tomcat.sessions.created  tomcat已创建session数      
17  tomcat.sessions.expired  tomcat已过期session数      
18  tomcat.sessions.active.current  tomcat活跃session数      
19  tomcat.sessions.active.max  tomcat最多活跃session数  显示在监控页面,超过阈值可报警或者进行动态扩容 重要
20  tomcat.sessions.alive.max.second  tomcat最多活跃session数持续时间      
21  tomcat.sessions.rejected  超过session最大配置后,拒绝的session个数  显示在监控页面,方便分析问题  
22  tomcat.global.error  错误总数  显示在监控页面,方便分析问题  
23  tomcat.global.sent  发送的字节数      
24  tomcat.global.request.max  request最长时间      
25  tomcat.global.request  全局request次数和时间      
26  tomcat.global.received  全局received次数和时间      
27  tomcat.servlet.request  servlet的请求次数和时间      
28  tomcat.servlet.error  servlet发生错误总数      
29  tomcat.servlet.request.max  servlet请求最长时间      
30  tomcat.threads.busy  tomcat繁忙线程  显示在监控页面,据此检查是否有线程夯住  
31  tomcat.threads.current  tomcat当前线程数(包括守护线程)  显示在监控页面 重要
32  tomcat.threads.config.max  tomcat配置的线程最大数  显示在监控页面 重要
33  tomcat.cache.access  tomcat读取缓存次数      
34  tomcat.cache.hit  tomcat缓存命中次数      
---CPU---   
35  system.cpu.count  CPU数量      
36  system.load.average.1m  load average  超过阈值报警 重要
37  system.cpu.usage  系统CPU使用率      
38  process.cpu.usage  当前进程CPU使用率  超过阈值报警  
39  http.server.requests  http请求调用情况  显示10个请求量最大,耗时最长的URL;统计非200的请求量 重要
40  process.uptime  应用已运行时间  显示在监控页面  
41  process.files.max  允许最大句柄数  配合当前打开句柄数使用  
42  process.start.time  应用启动时间点  显示在监控页面  
43  process.files.open  当前打开句柄数  监控文件句柄使用率,超过阈值后报警 重要

附录

SpringBoot1.x的metrics信息

{
"mem":568029,
"mem.free":164376,
"processors":16,
"instance.uptime":223643888,
"uptime":223835542,
"systemload.average":0.18,
"heap.committed":415232,
"heap.init":419840,
"heap.used":250855,
"heap":415232,
"nonheap.committed":156480,
"nonheap.init":2496,
"nonheap.used":152797,
"nonheap":0,
"threads.peak":114,
"threads.daemon":99,
"threads.totalStarted":234,
"threads":113,
"classes":15474,
"classes.loaded":15474,
"classes.unloaded":0,
"gc.ps_scavenge.count":1808,
"gc.ps_scavenge.time":99224,
"gc.ps_marksweep.count":3,
"gc.ps_marksweep.time":5314
}

SpringBoot2.0的metrics信息

{
"names":[
"jvm.memory.committed",
"http.server.requests",
"jvm.buffer.memory.used",
"jvm.gc.memory.allocated",
"tomcat.sessions.created",
"tomcat.sessions.expired",
"jvm.memory.used",
"tomcat.global.error",
"jvm.gc.max.data.size",
"system.cpu.count",
"jvm.memory.max",
"tomcat.global.sent",
"jvm.buffer.total.capacity",
"jvm.buffer.count",
"process.files.max",
"jvm.threads.daemon",
"process.start.time",
"tomcat.sessions.active.max",
"tomcat.global.request.max",
"jvm.gc.live.data.size",
"process.files.open",
"process.cpu.usage",
"tomcat.threads.current",
"tomcat.servlet.request",
"jvm.gc.pause",
"process.uptime",
"tomcat.threads.busy",
"system.load.average.1m",
"tomcat.cache.hit",
"tomcat.global.request",
"tomcat.servlet.error",
"tomcat.servlet.request.max",
"tomcat.cache.access",
"tomcat.sessions.active.current",
"system.cpu.usage",
"jvm.threads.live",
"jvm.classes.loaded",
"jvm.classes.unloaded",
"jvm.threads.peak",
"tomcat.threads.config.max",
"jvm.gc.memory.promoted",
"tomcat.sessions.rejected",
"tomcat.global.received",
"tomcat.sessions.alive.max"
]
}

SpringBoot2.0 Actuator 监控参数说明的更多相关文章

  1. SpringBoot2.0 基础案例(16):配置Actuator组件,实现系统监控

    本文源码 GitHub地址:知了一笑 https://github.com/cicadasmile/spring-boot-base 一.Actuator简介 1.监控组件作用 在生产环境中,需要实时 ...

  2. SpringBoot2.0 基础案例(07):集成Druid连接池,配置监控界面

    一.Druid连接池 1.druid简介 Druid连接池是阿里巴巴开源的数据库连接池项目.Druid连接池为监控而生,内置强大的监控功能,监控特性不影响性能.功能强大,能防SQL注入,内置Login ...

  3. 零基础快速入门SpringBoot2.0教程 (四)

    一.JMS介绍和使用场景及基础编程模型 简介:讲解什么是小写队列,JMS的基础知识和使用场景 1.什么是JMS: Java消息服务(Java Message Service),Java平台中关于面向消 ...

  4. SpringBoot Actuator监控【转】

    springboot actuator 监控 springboot1.5和springboot2.0 的actuator在启动日志上的差异就很大了. springboot1.5在启动时会打印很多/XX ...

  5. springboot(十九):使用Spring Boot Actuator监控应用

    微服务的特点决定了功能模块的部署是分布式的,大部分功能模块都是运行在不同的机器上,彼此通过服务调用进行交互,前后台的业务流会经过很多个微服务的处理和传递,出现了异常如何快速定位是哪个环节出现了问题? ...

  6. SpringBoot2.0初识

    核心特性 组件自动装配: Web MVC , Web Flux , JDBC 等 激活: @EnableAutoConfiguration 配置: /META_INF/spring.factories ...

  7. SpringBoot2.0+Mybatis-Plus3.0+Druid1.1.10 一站式整合

    SpringBoot2.0+Mybatis-Plus3.0+Druid1.1.10 一站式整合 一.先快速创建一个springboot项目,其中pom.xml加入mybatis-plus 和druid ...

  8. springboot2.0配置连接池(hikari、druid)

    springboot2.0配置连接池(hikari.druid) 原文链接:https://www.cnblogs.com/blog5277/p/10660689.html 原文作者:博客园--曲高终 ...

  9. (转)Spring Boot (十九):使用 Spring Boot Actuator 监控应用

    http://www.ityouknow.com/springboot/2018/02/06/spring-boot-actuator.html 微服务的特点决定了功能模块的部署是分布式的,大部分功能 ...

随机推荐

  1. K2 BPM_当BPM遇上RPA | 企业合规和风险管理从此更高效_全球领先的工作流引擎

    强化企业合规与风险管理已成为全球企业发展的共识,尤其是对于药企.银行.地产这类对于合规性要求高的企业而言,识别预测潜在的管理风险和遵循不断升级的合规义务,是保证企业平稳运行的关键. 如何从流程层面降低 ...

  2. python数据写入Excel表格

    from openpyxl import Workbook def main(): sheet_name = "表名1" row_count = 6 # 行数 info_resul ...

  3. vba代码阅读

    #If Vba7 Then #如果是运行在64位office上 Declare PtrSafe Sub...#Else #如果是运行在32位office上 Declare Sub...#EndIf 在 ...

  4. 关于HA(双机冗余接口)

    HA是双机接口,即说明这款防火墙支持双机冗余并行运行模式,可以用同型号的两台机器同时接上联和下联线路,并用线路将两台机器的HA口连接起来,达到协同工作,并行运行的功能. 高可用性H.A.(High A ...

  5. 【NOIP/CSP2019】D2T1 Emiya 家今天的饭

    这个D2T1有点难度啊 原题: 花了我一下午的时间,作为D2T1的确反常 条件很奇怪,感觉不太直观,于是看数据范围先写了个暴力 写暴力的时候我就注意到了之前没有仔细想过的点,烹饪方式必须不同 虽然a很 ...

  6. Java基础 String/StringBuff/StringBuilder 常用操作方法复习/内存分析/三者的效率比较

    附:jdk1.8使用IDEA安装.创建.使用JUnit单元测试 笔记总结: /**String 复习 * 1.像C++这样的char arr[]="..." 的方式无法声明Java ...

  7. gorm 更新数据时,0值会被忽略

    原文: https://www.tizi365.com/archives/22.html ------------------------------------------------------- ...

  8. mysql 5.7 版本 You must reset your password using ALTER USER statement before executing this statement报错处理

    https://blog.csdn.net/muziljx/article/details/81541896 MySQL版本5.7.6版本开始的用户可以使用如下命令: mysql> ALTER ...

  9. Node.js Websocket 区分不同的用户

    实现ws://serverIP:port/:param1/:param2 .通过param1,param2来管理不同的ws回话,以便实现群发和指定用户的消息推送 npm install ws --sa ...

  10. 删除集合元素Collection ,remove()

    package seday11;/*** @author xingsir*/public class coordinate { private int x; private int y; /* * 右 ...