当前位置:网站首页>skywalking集成nacos动态配置
skywalking集成nacos动态配置
2022-07-01 05:46:00 【若鱼1919】
修改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"}
参考:https://skywalking.apache.org/docs/main/v9.1.0/en/setup/backend/dynamic-config-nacos/
添加nacos配置
比如:
dataid = configuration-discovery.default.agentConfigurations
group = skywalking
内容:
configurations:
demo-application:
agent.trace.ignore_path: "**/actuator/**"

保存以后,在skywalking的控制台会打印如下输出:
Nacos config changed: configuration-discovery.default.agentConfigurations: configurations:
demo-application:
agent.trace.ignore_path: "**/actuator/**"
支持的配置项
参考: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
配置内容的格式
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:
支持的key
| Key |
|---|
| agent.sample_n_per_3_secs |
| agent.ignore_suffix |
| agent.trace.ignore_path |
| agent.span_limit_per_segment |
动态配置的用处
比如:可以动态调整需要ignore的endpoint
边栏推荐
- 穿越派·派盘 + Mountain Duck = 数据本地管理
- Why use huluer pie disk instead of U disk?
- OpenGL ES: (4) EGL API详解 (转)
- 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“
- Scope data export mat
- SystemVerilog学习-08-随机约束和线程控制
- Diagramme dynamique Excel
- My experience from technology to product manager
- Qt编译时,出现 first defined here,原因及解决方法
- Unity uses SQLite
猜你喜欢
![[QT] QT after addition, subtraction, multiplication and division, two decimal places are reserved](/img/30/c802ae9b65601832bf52e760e9962d.png)
[QT] QT after addition, subtraction, multiplication and division, two decimal places are reserved

【考研高数 自用】高数第一章基础阶段思维导图

MySQL数据迁移遇到的一些错误

Learn the customization and testing of fpga---ram IP from the bottom structure

HCM 初学 ( 一 ) - 简介

【考研高数 武忠祥+880版 自用】高数第二章基础阶段思维导图

He struggled day and night to protect his data

这才是大学生必备软件 | 知识管理

CJC8988带2个立体声耳机驱动器的低功率立体声编解码器

Don't put your notes and videos everywhere!
随机推荐
Ssm+mysql second-hand trading website (thesis + source code access link)
千万不要把笔记视频乱放!
【考研高数 自用】高数第一章基础阶段思维导图
轩逸保养手册
Multi table operation - foreign key cascade operation
Brief description of activation function
el-table 动态表头渲染 固定第一列 高度问题
SSM的教务管理系统(免费源码获取)
HCM 初学 ( 二 ) - 信息类型
Speed regulation and stroke control based on Ti drv8424 driving stepper motor
MySQL converts milliseconds to time string
Chip, an empire built on sand!
SQL必会题之留存率
运行时候的导包搜索路径虽然pycharm中标红但不影响程序的执行
Code shoe set - mt3149 · and - the data is not very strong. Violent pruning can deceive AC
Preliminary level of C language -- selected good questions on niuke.com
Scope data export mat
Ucosiii --- engineering transplantation
tese_Time_2h
这才是大学生必备软件 | 知识管理