码迷,mamicode.com
首页 > 编程语言 > 详细

springboot actuator

时间:2020-02-14 10:36:11      阅读:70      评论:0      收藏:0      [点我收藏+]

标签:server   rap   ast   hbase   bsp   project   events   san   ring   

1、什么是actuator

线上监控工具

2、如何整合

遵循三板斧

第一步加依赖

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

第二步加注解

第三步加配置

启动后访问项目路径加上/actuator

技术图片

 

 

 /actuator/health,作用健康检查。

在配置中加入

management.endpoint.health.show-details=always

可以检查如下这么多资源的健康状态

53.8.1 Auto-configured HealthIndicators

CassandraHealthIndicator

Checks that a Cassandra database is up.

CouchbaseHealthIndicator

Checks that a Couchbase cluster is up.

DiskSpaceHealthIndicator

Checks for low disk space.

DataSourceHealthIndicator

Checks that a connection to DataSource can be obtained.

ElasticsearchHealthIndicator

Checks that an Elasticsearch cluster is up.

InfluxDbHealthIndicator

Checks that an InfluxDB server is up.

JmsHealthIndicator

Checks that a JMS broker is up.

MailHealthIndicator

Checks that a mail server is up.

MongoHealthIndicator

Checks that a Mongo database is up.

Neo4jHealthIndicator

Checks that a Neo4j server is up.

RabbitHealthIndicator

Checks that a Rabbit server is up.

RedisHealthIndicator

Checks that a Redis server is up.

SolrHealthIndicator

Checks that a Solr server is up.

info端口主要是用来描叙应用信息的

info.app-name = pay
info.author = xiaofeiyang
info.email = 469821953@qq.com

技术图片

actuator暴露的所有端点见

53.2 Exposing Endpoints

auditevents

Yes

No

beans

Yes

No

caches

Yes

No

conditions

Yes

No

configprops

Yes

No

env

Yes

No

flyway

Yes

No

health

Yes

Yes

heapdump

N/A

No

httptrace

Yes

No

info

Yes

Yes

integrationgraph

Yes

No

jolokia

N/A

No

logfile

N/A

No

loggers

Yes

No

liquibase

Yes

No

metrics

Yes

No

mappings

Yes

No

prometheus

N/A

No

scheduledtasks

Yes

No

sessions

Yes

No

shutdown

Yes

No

threaddump

Yes

No

springboot actuator

标签:server   rap   ast   hbase   bsp   project   events   san   ring   

原文地址:https://www.cnblogs.com/xiaofeiyang/p/12306338.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!