-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimize cloud refresher and perfect example
- Loading branch information
1 parent
5075cce
commit 9cab076
Showing
41 changed files
with
365 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,35 +24,25 @@ spring: | |
- platform: lark | ||
urlKey: 0d944ae7-b24a-40 # 替换 | ||
receivers: test1,test2 # 接受人飞书名称/openid | ||
- platform: email | ||
receivers: [email protected],[email protected] # 收件人 | ||
brpcTp: # brpc 线程池配置 | ||
- threadPoolName: rpc#server # 名称规则:biz_thread_pool_name + "#" + client/server | ||
corePoolSize: 100 | ||
maximumPoolSize: 200 | ||
keepAliveTime: 60 | ||
|
||
# email notify configuration | ||
mail: | ||
# (optional) email subject, default:ThreadPool Notify | ||
title: ThreadPool Notify | ||
# mail service address | ||
host: smtp.qq.com | ||
port: 465 | ||
# send from | ||
username: [email protected] | ||
# authorization code eg: rlpadadtcugh4152e | ||
password: xxxxxxxxxxxxxxxx | ||
default-encoding: UTF-8 | ||
properties: | ||
mail: | ||
smtp: | ||
socketFactoryClass: javax.net.ssl.SSLSocketFactory | ||
ssl: | ||
enable: true | ||
debug: false | ||
|
||
starlight: | ||
server: | ||
enable: true | ||
port: 8777 | ||
port: 8777 | ||
|
||
# 开启 SpringBoot Actuator Endpoint 暴露出DynamicTp指标接口 | ||
# 开启 prometheus 指标采集端点 | ||
management: | ||
metrics: | ||
export: | ||
prometheus: | ||
enabled: true | ||
endpoints: | ||
web: | ||
exposure: | ||
include: '*' # 测试使用,线上不要用*,按需开启 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,35 +24,13 @@ spring: | |
- platform: lark | ||
urlKey: 0d944ae7-b24a-40 # 替换 | ||
receivers: test1,test2 # 接受人飞书名称/openid | ||
- platform: email | ||
receivers: [email protected],[email protected] # 收件人 | ||
dubboTp: # dubbo 线程池配置 | ||
- threadPoolName: dubboTp#20880 # 名称规则:dubboTp + "#" + 协议端口 | ||
threadPoolAliasName: 测试线程池 | ||
corePoolSize: 100 | ||
maximumPoolSize: 200 | ||
keepAliveTime: 60 | ||
|
||
# email notify configuration | ||
mail: | ||
# (optional) email subject, default:ThreadPool Notify | ||
title: ThreadPool Notify | ||
# mail service address | ||
host: smtp.qq.com | ||
port: 465 | ||
# send from | ||
username: [email protected] | ||
# authorization code eg: rlpadadtcugh4152e | ||
password: xxxxxxxxxxxxxxxx | ||
default-encoding: UTF-8 | ||
properties: | ||
mail: | ||
smtp: | ||
socketFactoryClass: javax.net.ssl.SSLSocketFactory | ||
ssl: | ||
enable: true | ||
debug: false | ||
|
||
dubbo: | ||
application: | ||
name: dynamic-tp-adapter-demo | ||
|
@@ -63,3 +41,15 @@ dubbo: | |
protocol: | ||
name: dubbo | ||
port: 20880 | ||
|
||
# 开启 SpringBoot Actuator Endpoint 暴露出DynamicTp指标接口 | ||
# 开启 prometheus 指标采集端点 | ||
management: | ||
metrics: | ||
export: | ||
prometheus: | ||
enabled: true | ||
endpoints: | ||
web: | ||
exposure: | ||
include: '*' # 测试使用,线上不要用*,按需开启 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ spring: | |
dynamic: | ||
tp: | ||
enabled: true | ||
enabledBanner: true # 是否开启banner打印,默认true | ||
enabledCollect: true # 是否开启监控指标采集,默认false | ||
collectorTypes: logging # 监控数据采集器类型(logging | micrometer | internal_logging),默认micrometer | ||
monitorInterval: 5 | ||
|
@@ -25,8 +24,6 @@ spring: | |
- platform: lark | ||
urlKey: 0d944ae7-b24a-40 # 替换 | ||
receivers: test1,test2 # 接受人飞书名称/openid | ||
- platform: email | ||
receivers: [email protected],[email protected] # 收件人 | ||
dubboTp: # dubbo 线程池配置 | ||
- threadPoolName: dubboTp#20880 # 名称规则:dubboTp + "#" + 协议端口 | ||
threadPoolAliasName: 测试线程池 | ||
|
@@ -39,25 +36,6 @@ spring: | |
threshold: 80 # 报警阈值 | ||
platforms: [ ding,wechat ] # 可选配置,不配置默认拿上层platforms配置的所以平台 | ||
interval: 120 # 报警间隔(单位:s) | ||
# email notify configuration | ||
mail: | ||
# (optional) email subject, default:ThreadPool Notify | ||
title: ThreadPool Notify | ||
# mail service address | ||
host: smtp.qq.com | ||
port: 465 | ||
# send from | ||
username: [email protected] | ||
# authorization code eg: rlpadadtcugh4152e | ||
password: xxxxxxxxxxxxxxxx | ||
default-encoding: UTF-8 | ||
properties: | ||
mail: | ||
smtp: | ||
socketFactoryClass: javax.net.ssl.SSLSocketFactory | ||
ssl: | ||
enable: true | ||
debug: false | ||
|
||
dubbo: | ||
application: | ||
|
@@ -69,3 +47,15 @@ dubbo: | |
protocol: | ||
name: dubbo | ||
port: 20880 | ||
|
||
# 开启 SpringBoot Actuator Endpoint 暴露出DynamicTp指标接口 | ||
# 开启 prometheus 指标采集端点 | ||
management: | ||
metrics: | ||
export: | ||
prometheus: | ||
enabled: true | ||
endpoints: | ||
web: | ||
exposure: | ||
include: '*' # 测试使用,线上不要用*,按需开启 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ spring: | |
dynamic: | ||
tp: | ||
enabled: true | ||
enabledBanner: true # 是否开启banner打印,默认true | ||
enabledCollect: true # 是否开启监控指标采集,默认false | ||
collectorTypes: logging # 监控数据采集器类型(logging | micrometer | internal_logging),默认micrometer | ||
monitorInterval: 5 | ||
|
@@ -25,8 +24,6 @@ spring: | |
- platform: lark | ||
urlKey: 0d944ae7-b24a-40 # 替换 | ||
receivers: test1,test2 # 接受人飞书名称/openid | ||
- platform: email | ||
receivers: [email protected],[email protected] # 收件人 | ||
dubboTp: # dubbo 线程池配置 | ||
- threadPoolName: dubboTp#20880 # 名称规则:dubboTp + "#" + 协议端口 | ||
threadPoolAliasName: 测试线程池 | ||
|
@@ -39,25 +36,6 @@ spring: | |
threshold: 80 # 报警阈值 | ||
platforms: [ ding,wechat ] # 可选配置,不配置默认拿上层platforms配置的所以平台 | ||
interval: 120 # 报警间隔(单位:s) | ||
# email notify configuration | ||
mail: | ||
# (optional) email subject, default:ThreadPool Notify | ||
title: ThreadPool Notify | ||
# mail service address | ||
host: smtp.qq.com | ||
port: 465 | ||
# send from | ||
username: [email protected] | ||
# authorization code eg: rlpadadtcugh4152e | ||
password: xxxxxxxxxxxxxxxx | ||
default-encoding: UTF-8 | ||
properties: | ||
mail: | ||
smtp: | ||
socketFactoryClass: javax.net.ssl.SSLSocketFactory | ||
ssl: | ||
enable: true | ||
debug: false | ||
|
||
dubbo: | ||
application: | ||
|
@@ -69,3 +47,15 @@ dubbo: | |
protocol: | ||
name: dubbo | ||
port: 20880 | ||
|
||
# 开启 SpringBoot Actuator Endpoint 暴露出DynamicTp指标接口 | ||
# 开启 prometheus 指标采集端点 | ||
management: | ||
metrics: | ||
export: | ||
prometheus: | ||
enabled: true | ||
endpoints: | ||
web: | ||
exposure: | ||
include: '*' # 测试使用,线上不要用*,按需开启 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ spring: | |
dynamic: | ||
tp: | ||
enabled: true | ||
enabledBanner: true # 是否开启banner打印,默认true | ||
enabledCollect: true # 是否开启监控指标采集,默认false | ||
collectorTypes: logging # 监控数据采集器类型(logging | micrometer | internal_logging),默认micrometer | ||
monitorInterval: 5 | ||
|
@@ -25,8 +24,6 @@ spring: | |
- platform: lark | ||
urlKey: 0d944ae7-b24a-40 # 替换 | ||
receivers: test1,test2 # 接受人飞书名称/openid | ||
- platform: email | ||
receivers: [email protected],[email protected] # 收件人 | ||
dubboTp: # dubbo 线程池配置 | ||
- threadPoolName: dubboTp#20880 # 名称规则:dubboTp + "#" + 协议端口 | ||
threadPoolAliasName: 测试线程池 | ||
|
@@ -39,25 +36,6 @@ spring: | |
threshold: 80 # 报警阈值 | ||
platforms: [ ding,wechat ] # 可选配置,不配置默认拿上层platforms配置的所以平台 | ||
interval: 120 # 报警间隔(单位:s) | ||
# email notify configuration | ||
mail: | ||
# (optional) email subject, default:ThreadPool Notify | ||
title: ThreadPool Notify | ||
# mail service address | ||
host: smtp.qq.com | ||
port: 465 | ||
# send from | ||
username: [email protected] | ||
# authorization code eg: rlpadadtcugh4152e | ||
password: xxxxxxxxxxxxxxxx | ||
default-encoding: UTF-8 | ||
properties: | ||
mail: | ||
smtp: | ||
socketFactoryClass: javax.net.ssl.SSLSocketFactory | ||
ssl: | ||
enable: true | ||
debug: false | ||
|
||
dubbo: | ||
application: | ||
|
@@ -69,3 +47,15 @@ dubbo: | |
protocol: | ||
name: dubbo | ||
port: 20880 | ||
|
||
# 开启 SpringBoot Actuator Endpoint 暴露出DynamicTp指标接口 | ||
# 开启 prometheus 指标采集端点 | ||
management: | ||
metrics: | ||
export: | ||
prometheus: | ||
enabled: true | ||
endpoints: | ||
web: | ||
exposure: | ||
include: '*' # 测试使用,线上不要用*,按需开启 |
Oops, something went wrong.