• 问题一

  各个健康节点权限问题

  解决方式

    加入权限模块

    

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

   设置账户

security:
user:
name: admin
password: qq123123
management:
security:
roles: SUPERUSER

  spring boot admin 配置

eureka:
instance:
lease-renewal-interval-in-seconds:
metadata-map:
user.name: ${security.user.name}
user.password: ${security.user.password}

呵呵  官方给出的解决方式是放入元数据中

  • 问题二

  spring boot admin 排查服务设置问题

    

  boot:
admin:
routes:
endpoints: env,metrics,dump,jolokia,info,configprops,trace,logfile,refresh,flyway,liquibase,heapdump,loggers,auditevents,hystrix.stream,activiti
turbine:
location: dj-atliwen-edi-admin
discovery:
# ignored-services: turbine
ignored-services: ss-erp-*,yjc-zhongjie,*jsp*,admin-discovery

   注意!

     这里是小写!小写!小写!

    

     ignored-services 是 Set<Stirng>  注入使用 ,就可以 。 不是 - ss  
  • 问题三

  spring boot admin 自定义消息触发器

  

public class DdNotifier extends AbstractStatusChangeNotifier
{ private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
private static RestTemplate template = new RestTemplate(); private String url;
DdNotifier(String url) {
this.url = url;
} @Override
protected void doNotify(ClientApplicationEvent event) throws JsonProcessingException { Application a = event.getApplication();
StatusInfo statusInfo = a.getStatusInfo();
switch (statusInfo.getStatus()) {
// 健康检查没通过
case "DOWN":
sendDown(a, statusInfo);
break;
// 服务离线
case "OFFLINE":
offline(a);
break;
//服务上线
case "UP":
up(a);
break;
// 服务未知异常
case "UNKNOWN":
unknown(a);
break;
default:
break;
}
}

注意!!  这里是大写!大写!大写! 服务名称也是大写!都是大写!

    @Bean
@Primary
public RemindingNotifier remindingNotifier() {
RemindingNotifier notifier = new RemindingNotifier(filteringNotifier());
notifier.setReminderPeriod(TimeUnit.SECONDS.toMillis());
String[] reminderStatuses = {"DOWN", "OFFLINE", "UP", "UNKNOWN"};
notifier.setReminderStatuses(reminderStatuses);
return notifier;
} @Scheduled(fixedRate = 6_000L)
public void remind() {
remindingNotifier().sendReminders();
}

注意!

    

setReminderPeriod 设置的不是官方文档上写的分钟! 不是分钟!  是秒!是秒!是秒!
  • 问题四

       spring boot admin 的  turbine 是在是太慢了!!!! 几分钟都不见得好,害我折腾半天,以为是自己哪里配置没配置好!!!! 

基于spring boot admin 做监控的一些问题记录的更多相关文章

  1. Spring Cloud第十三篇 | Spring Boot Admin服务监控

    本文是Spring Cloud专栏的第十三篇文章,了解前十二篇文章内容有助于更好的理解本文: Spring Cloud第一篇 | Spring Cloud前言及其常用组件介绍概览 Spring Clo ...

  2. Spring Boot Admin 详解(Spring Boot 2.0,基于 Eureka 的实现)

    原文:https://blog.csdn.net/hubo_88/article/details/80671192 Spring Boot Admin 用于监控基于 Spring Boot 的应用,它 ...

  3. Spring Boot Admin 的使用 2

    http://blog.csdn.net/kinginblue/article/details/52132113 ******************************************* ...

  4. 基于spring boot 2.x 的 spring-cloud-admin 实践

    spring cloud admin 简介 Spring Boot Admin 用于监控基于 Spring Boot 的应用,它是在 Spring Boot Actuator 的基础上提供简洁的可视化 ...

  5. 微服务架构之spring boot admin

    Spring boot admin是可视化的监控组件,依赖spring boot actuator收集各个服务的运行信息,通过spring boot actuator可以非常方便的查看每个微服务的He ...

  6. spring boot admin抛出"status":401,"error":"Unauthorized"异常

    打开spring boot admin的监控平台发现其监控的服务明细打开均抛出异常: Error: {"timestamp":1502749349892,"status& ...

  7. Spring Boot Admin2.X监控的服务context-path问题

    在使用Spring Boot Admin进行监控时,如果被监控的服务没有加context-path的话是不会有任何问题的,一旦服务加了context-path的配置,监控就会失败. 下图是正常情况的显 ...

  8. Spring Boot Admin,贼好使!

    Spring Boot Admin(SBA)是一个开源的社区项目,用于管理和监控 Spring Boot 应用程序.应用程序可以通过 http 的方式,或 Spring Cloud 服务发现机制注册到 ...

  9. Springboot监控之二:Spring Boot Admin对Springboot服务进行监控

    概述 Spring Boot 监控核心是 spring-boot-starter-actuator 依赖,增加依赖后, Spring Boot 会默认配置一些通用的监控,比如 jvm 监控.类加载.健 ...

随机推荐

  1. 【BZOJ3003】LED BFS+状压DP

    [BZOJ3003]LED Description LED屏是由一个庞大的点阵小灯泡组成的,一开始每个小灯泡都不发光.每一行一共有N个小灯泡,依次标号为1~n.现在给定K个点,要求这K个点发光,其余点 ...

  2. 【BZOJ4285】使者 cdq分治+扫描线+树状数组

    [BZOJ4285]使者 Description 公元 8192 年,人类进入星际大航海时代.在不懈的努力之下,人类占领了宇宙中的 n 个行星,并在这些行星之间修建了 n - 1 条星际航道,使得任意 ...

  3. 【BZOJ3011】[Usaco2012 Dec]Running Away From the Barn 可并堆

    [BZOJ3011][Usaco2012 Dec]Running Away From the Barn Description It's milking time at Farmer John's f ...

  4. awk中的冒泡排序

    算法中经典的排序方式,今也用awk来实现下,代码如下: BEGIN { count=} {arrary[count]=$ count++ } END{ ;i>-;i--) { ;j<i;j ...

  5. This function has none of DETERMINISTIC, NO SQL

    错误信息: [Err] 1418 - This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declara ...

  6. mysql的TIMESTAMPDIFF

    SELECT (TIMESTAMPDIFF(MINUTE, STR_to_date('2018-8-30 12:15:52', '%Y-%m-%d %H:%i:%s') , STR_to_date(' ...

  7. Linux 搭建Nginx并添加配置 SSL 证书

    1. 安装准备   1.1 gcc安装 安装 nginx 需要先将官网下载的源码进行编译,编译依赖 gcc 环境,如果没有 gcc 环境,则需要安装: [root@nginx ~]# yum -y i ...

  8. spring+springMVC+Mybatis 中使用@Transcational方式管理事务的配置方法

    springMVC 中,事务通常都在service层控制,当然controller层也可以用事务,只要配置配对,但通常不建议直接在controller层配事务,controller的作用是管理参数以及 ...

  9. oracle 日期常用函数(转载)

      日期运算函數     ADD_MONTHS(d,n)    --时间点d再加上n个月      ex.     select sysdate, add_months(sysdate,2) aa f ...

  10. Chinese_remainder_theorem

    https://en.wikipedia.org/wiki/Chinese_remainder_theorem 中国剩余定理 https://en.wikipedia.org/wiki/RSA_(cr ...