Fetch the repository succeeded.
This action will force synchronization from 车江毅/free-bsf-all, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
free-bsf-health 是BSF重要组成部分,自研框架,用来检测业务系统各个方面的性能参数及异常告警。
<dependency>
<artifactId>free-bsf-health</artifactId>
<groupId>com.free.bsf</groupId>
<version>1.7.1-SNAPSHOT</version>
</dependency>
web项目依赖并开启健康检查,项目启动后访问http://{ip}:{port}/{context}/bsf/health/即可查看项目实时各项监测参数 样例
##若报警需要通知飞书,钉钉等第三方,需要开启message通知
##示例开启飞书:
#开启消息通知
#bsf.message.enabled=true
# 飞书消息功能启用(不同同时开启其他通知)
bsf.message.flybook.enabled=true
# 飞书消息,需要token。项目根据不同需要,设置不同的token
bsf.message.flybook.access_token=
# 飞书消息,需要token。项目根据不同需要,设置不同的token
bsf.message.flybook.project.access_token=
# =========将康检查相关开关=================================
# 健康检查模块开关
bsf.health.enabled=true
#==========报警查相关参数===================================
# 告警开关
bsf.health.warn.enabled=true
# 自动健康检查时间间隔
bsf.health.timespan=10
# 报警消息缓存数量
bsf.health.warn.cachecount=3
# 报警消息循环间隔时间(秒)
bsf.health.warn.timespan=10
# 报警重复过滤时间间隔 分钟
bsf.health.warn.duplicate.timespan=2
### 如需通知第三方,需要开启相应消息通知配置。
#==========健康检查相关报警餐宿==================================
# 自动健康检查服务开关
bsf.health.check.enabled=true
# 自动上报健康状态开关
bsf.health.export.enabled=true
# 自动上报ELK
bsf.health.export.elk.enabled = false
# 自动上报cat
bsf.health.export.cat.enabled = true
# 异常捕获告警
bsf.health.uncatch.enabled = true
# sql报警
bsf.health.warn.sql.execute.timeout=1000
bsf.health.warn.sql.execute.exclude=
bsf.health.warn.sql.execute.error.enabled=true
bsf.health.warn.sql.execute.result.maxSize=10000
bsf.health.warn.sql.execute.parameter.maxSize=2000
# url报警
bsf.health.warn.url.execute.timeout=10000
bsf.health.warn.url.execute.exclude=
bsf.health.warn.url.execute.error.enabled=true
#==========应用的中间件使用参数监控================================
bsf.health.jedis.enabled=true
bsf.health.dataSource.enabled=true
bsf.health.xxljob.enabled=true
bsf.health.rocketmq.enabled=true
bsf.health.elk.enabled=true
bsf.health.mybatis.enabled=true
bsf.health.file.enabled=true
bsf.health.elasticSearch.enabled=true
bsf.health.web.enabled=true
#==========系统参数监控===========================================
# CPU&IO&Memery报警配置参数
bsf.health.strategy.cpu.process = [>0.8]
bsf.health.strategy.cpu.system = [>0.8]
bsf.health.strategy.io.current.dir.usable.size = [<500]
bsf.health.strategy.memery.system.free = [<1024]
bsf.health.strategy.memery.jvm.max = [<350]
# tomcat 报警参数
bsf.health.strategy.tomcat.threadPool.queue.size = [>20]
bsf.health.strategy.tomcat.threadPool.active.count = [>100]
# 自动清理日志;磁盘不足,告警后自动清理日志
bsf.health.io.autoClear = true
#===========其他监控配置============================================
# dump功能开启
bsf.health.dump.enabled=true
# HTTP将康检查
bsf.health.ping.enabled=true
# 日志报警开关及规则:每分钟60条错误日志,每分钟日志增量3000(防止爆刷日志)
bsf.health.log.statistic.enabled = true
bsf.health.strategy.log.error.count = [>60]
bsf.health.strategy.log.incre.count = [>3000]
# 可疑接口(内存泄漏检查)
bsf.health.doubtapi.enabled = true
bsf.health.doubtapi.threshold = 3145728
# 文件上传检查
bsf.health.file.enabled = true
bsf.health.file.timeSpan = 20
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。