当前位置:网站首页>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
边栏推荐
- 云盘里资料被和谐了,怎么办?
- Call us special providers of personal cloud services for College Students
- Oracle create user + Role
- This is the necessary software for college students 𞓜 knowledge management
- MySQL converts milliseconds to time string
- ONEFLOW source code parsing: automatic inference of operator signature
- Chip, an empire built on sand!
- OpenGL es: (4) detailed explanation of EGL API (Continued)
- Through cooperation with the University of international trade, we can increase efficiency for college students
- 导数的左右极限和左右导数的辨析
猜你喜欢

Geoffrey Hinton: my 50 years of in-depth study and Research on mental skills

Crossing sect · paipan + Siyuan notes = private notebook

SystemVerilog学习-08-随机约束和线程控制

ONEFLOW source code parsing: automatic inference of operator signature

excel初级应用案例——杜邦分析仪

机械臂速成小指南(六):步进电机驱动器

3D printer threading: five simple solutions

Infinite horizontal marble game

Seven major technical updates that developers should pay most attention to on build 2022

Pla ne colle pas sur le lit: 6 solutions simples
随机推荐
[QT] QT after addition, subtraction, multiplication and division, two decimal places are reserved
健康照明中应用的LED照明灯
excel动态图表
Debug details under pycharm
穿越派·派盘 + 思源笔记 = 私人笔记本
Servlet
SystemVerilog学习-06-类的封装
bat操作ftp上传下载命令
Beauty of Mathematics - Application of Mathematics
He struggled day and night to protect his data
Code shoe set - mt3149 · and - the data is not very strong. Violent pruning can deceive AC
It's not that you have a bad mind, but that you haven't found the right tool
linux 关闭redis 进程 systemd+
CJC8988带2个立体声耳机驱动器的低功率立体声编解码器
【知识点总结】卡方分布,t分布,F分布
【问题思考总结】为什么寄存器清零是在用户态进行的?
Vscode function annotation / file header annotation shortcut
excel初级应用案例——杜邦分析仪
This is the necessary software for college students 𞓜 knowledge management
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“