服务器及java性能监控

环境:

springboot 2.0.6.RELEASE

centos 7.2

 

springboot+actuator+prometheus+node_exporter

 

实现效果:

实现对cpu、内存、磁盘以及java项目jvm、请求等一系列监控。

服务器及java性能监控_第1张图片

 

java项目配置:

pom.xml:

org.springframework.boot

spring-boot-starter-actuator

io.micrometer

micrometer-registry-prometheus

 

yml:

management:

server:

port: 8080

endpoints:

web:

base-path: /

exposure:

include: health,info,env,prometheus,metrics,httptrace,threaddump,heapdump,springmetrics

endpoint:

health:

show-details: always

prometheus:

enabled: true

metrics:

export:

prometheus:

enabled: true

step: 1m

descriptions: true

 

 

 

服务器:

grafana:

https://blog.csdn.net/clevercode/article/details/78001654

Prometheus:

https://blog.csdn.net/xiegh2014/article/details/79192431

node_exporter:

https://blog.csdn.net/xiongpai1971/article/details/80171386

 

 

 

 

你可能感兴趣的:(springboot,监控)