当前位置:网站首页>Skywalking integrated Nacos dynamic configuration
Skywalking integrated Nacos dynamic configuration
2022-07-01 05:57:00 【Ruoyu 1919】
modify config/application.yml
configuration:
selector: ${
SW_CONFIGURATION:nacos}
nacos:
# Nacos Server Host
serverAddr: ${
SW_CONFIG_NACOS_SERVER_ADDR:192.168.229.130}
# Nacos Server Port
port: ${
SW_CONFIG_NACOS_SERVER_PORT:8848}
# Nacos Configuration Group
group: ${
SW_CONFIG_NACOS_SERVER_GROUP:skywalking}
# Nacos Configuration namespace
namespace: ${
SW_CONFIG_NACOS_SERVER_NAMESPACE:db20ccfd-db01-47bd-a4d3-393b4e7df260}
# Unit seconds, sync period. Default fetch every 60 seconds.
period: ${
SW_CONFIG_NACOS_PERIOD:10}
# Nacos auth username
username: ${
SW_CONFIG_NACOS_USERNAME:"nacos"}
password: ${
SW_CONFIG_NACOS_PASSWORD:"nacos"}
add to nacos To configure
such as :
dataid = configuration-discovery.default.agentConfigurations
group = skywalking
Content :
configurations:
demo-application:
agent.trace.ignore_path: "**/actuator/**"
After preservation , stay skywalking The console will print the following output :
Nacos config changed: configuration-discovery.default.agentConfigurations: configurations:
demo-application:
agent.trace.ignore_path: "**/actuator/**"
Supported configuration items
Reference resources :https://skywalking.apache.org/docs/main/v9.1.0/en/setup/backend/dynamic-config/
key | Value Description | Value Format Example |
---|---|---|
agent-analyzer.default.slowDBAccessThreshold | Thresholds of slow Database statement. Overrides agent-analyzer/default/slowDBAccessThreshold of application.yml. | default:200,mongodb:50 |
agent-analyzer.default.uninstrumentedGateways | The uninstrumented gateways. Overrides gateways.yml | Same as gateways.yml |
alarm.default.alarm-settings | The alarm settings. Overrides alarm-settings.yml | Same as alarm-settings.yml |
core.default.apdexThreshold | The apdex threshold settings. Overrides service-apdex-threshold.yml | Same as service-apdex-threshold.yml |
core.default.endpoint-name-grouping | The endpoint name grouping setting. Overrides endpoint-name-grouping.yml | Same as endpoint-name-grouping.yml |
core.default.log4j-xml | The log4j xml configuration. Overrides log4j2.xml | Same as log4j2.xml |
agent-analyzer.default.traceSamplingPolicy | The sampling policy for default and service dimension, override trace-sampling-policy-settings.yml | same as trace-sampling-policy-settings.yml |
configuration-discovery.default.agentConfigurations | The ConfigurationDiscovery settings. | See configuration-discovery.md |
configuration-discovery.default.agentConfigurations
Configure content formatting
configurations:
//service name
serviceA:
// Configurations of service A
// Key and Value are determined by the agent side.
// Check the agent setup doc for all available configurations.
key1: value1
key2: value2
...
serviceB:
Supported by key
Key |
---|
agent.sample_n_per_3_secs |
agent.ignore_suffix |
agent.trace.ignore_path |
agent.span_limit_per_segment |
The use of dynamic configuration
such as : Can dynamically adjust the needs ignore Of endpoint
边栏推荐
- 2022第八届中国国际“互联网+”大学生创新创业大赛产业命题赛道开启报名!
- Xuanyi maintenance manual
- DEV XPO对比之XAF BO
- Cjc8988 Low Power Stereo codec with 2 stereo headphone drivers
- SystemVerilog学习-07-类的继承和包的使用
- What if the data in the cloud disk is harmonious?
- restframework-simpleJWT重写认证机制
- In win10 and win11, the scroll direction of Elan touch panel is reversed, and "double finger click to open the right-click menu" and "double finger scroll" are started“
- SystemVerilog学习-10-验证量化和覆盖率
- QT write custom control - self drawn battery
猜你喜欢
He struggled day and night to protect his data
Advanced cross platform application development (II): uni app practice
TiDB单机模拟部署生产环境集群(闭坑实践,亲测有效)
为了保护自己的数据,他奋斗了一天一夜
【考研高数 自用】高数第一章基础阶段思维导图
linux 关闭redis 进程 systemd+
3D打印机穿线:5种简单的解决方案
葫芦儿 APP 使用帮助
Continuous breakthrough and steady progress -- Review and Prospect of cross platform development technology of mobile terminal
Ucosiii --- engineering transplantation
随机推荐
分片上传与断点续传
jdbc-连接池
SystemVerilog学习-10-验证量化和覆盖率
[QT] QT after addition, subtraction, multiplication and division, two decimal places are reserved
MinIO纠错码、分布式MinIO集群搭建及启动
2022.6.30-----leetcode. one thousand one hundred and seventy-five
OpenGL es: (5) basic concepts of OpenGL, the process of OpenGL es generating pictures on the screen, and OpenGL pipeline
OpenGL es: (1) origin of OpenGL es (transfer)
Retention rate of SQL required questions
导数的左右极限和左右导数的辨析
PLA不粘貼在床上:6個簡單的解决方案
He struggled day and night to protect his data
Ucosiii --- engineering transplantation
Beauty of Mathematics - Application of Mathematics
HCM 初学 ( 二 ) - 信息类型
【考研高数 武忠祥+880版 自用】高数第二章基础阶段思维导图
Call us special providers of personal cloud services for College Students
Smartinstantiationawarebeanpostprocessor of the extension point series determines which construction method to execute - Chapter 432
Thesis learning record essay multi label lift
健康照明中应用的LED照明灯