主要内容更 监控参数说明

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. Could not retrieve transaction read-only status from server问题排查

    今天发现save task的时候经常后台会报这个错,而且有的时候还会卡住等20几分钟才执行完. 2019-11-12 15:08:29.410 http-nio-9080-exec-6 ERROR o ...

  2. C语言程序经过编译链接后形成二进制映像文件的组成

    C语言程序经过编译链接后形成二进制映像文件由栈,堆,数据段,代码段组成,其中数据段又分为:只读数据段,已经初始化读写数据段,未初始化数据段(BSS段).如下图所示: 1.栈区(stack):由编译器自 ...

  3. TCP三次握手过程中涉及的队列知识的学习

    先上一张图 (图片来源:http://www.cnxct.com/something-about-phpfpm-s-backlog/) 如上图所示,这里有两个队列:syns queue(半连接队列): ...

  4. xshell生成公钥和私钥

    一.打开你的xshell工具,工具栏有一个工具选项,点开选择新建用户密钥生成向导(如下图所示) 二. 点开之后就会如上图所示一样,点击选择下一步,出现如下,再点击下一步 点击完下一步会出现如下图所示 ...

  5. nginx简单反向代理实例

    一.要做什么? 实例最后实现的效果图: 我们在浏览器地址栏上输入 wangtong,代理服务器获取请求,将请求转发至指定的 tomcat 上 二.怎样做? 1.准备环境 虚拟中中需要安装 JDK+To ...

  6. vs看源代码

    资源地址:https://www.cnblogs.com/HouZhiHouJueBlogs/p/4274197.html 资源地址:http://referencesource.microsoft. ...

  7. wav音频的剪切

    wav格式音频剪切功能的完美实现方案. import java.io.*; import javax.sound.sampled.*; public class AudioFileProcessor ...

  8. 版本问题---cuda和tensorflow的版本对应关系

    cuda和tensorflow的版本有对应关系 https://tensorflow.google.cn/install/source#linux

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

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

  10. java中的io流总结(一)

    知识点:基于抽象基类字节流(InputStream和OutputStream).字符流(Reader和Writer)的特性,处理纯文本文件,优先考虑使用字符流BufferedReader/Buffer ...