说明:以下配置仅关于的阈值规则的动态配置,其他参数也可以进行配置。
1,skywalking动态配置集成nacos
编辑application.yml
nacos配置参数如下:
nacos:
# Nacos Server Host
serverAddr: 10.10.5.145
# Nacos Server Port
port: 8848
# Nacos Configuration Group
group: 'skywalking'
# Nacos Configuration namespace
namespace: ''
# Unit seconds, sync period. Default fetch every 60 seconds.
period: 60
# Nacos auth username
username: nacos
password: nacos1@345
# Nacos auth accessKey
accessKey: ${SW_CONFIG_NACOS_ACCESSKEY:""}
secretKey: ${SW_CONFIG_NACOS_SECRETKEY:""}
nacos配置如下: