From ab6b053cb3e7ebff44369dd304e45a446ce22f40 Mon Sep 17 00:00:00 2001 From: jsonwan Date: Wed, 15 Feb 2023 16:42:17 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BA=8C=E8=BF=9B=E5=88=B6=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E9=85=8D=E7=BD=AE=E6=A8=A1=E6=9D=BF=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=8C=87=E5=AE=9Atrace=E6=98=AF=E5=90=A6=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E4=B8=8E=E4=B8=8A=E6=8A=A5=E6=AF=94=E4=BE=8B=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=20#1746?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- support-files/templates/#etc#job#job-common#application.yml | 6 ++++-- support-files/templates/job.env | 4 ---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/support-files/templates/#etc#job#job-common#application.yml b/support-files/templates/#etc#job#job-common#application.yml index 569ee1d801..5f1031977d 100644 --- a/support-files/templates/#etc#job#job-common#application.yml +++ b/support-files/templates/#etc#job#job-common#application.yml @@ -11,13 +11,15 @@ spring: sleuth: otel: exporter: - enabled: __BK_JOB_TRACE_REPORT_ENABLED__ + # 是否上报trace数据至蓝鲸监控APM + enabled: false otlp: endpoint: __BK_JOB_TRACE_REPORT_PUSH_URL__ resource: bkDataToken: __BK_JOB_TRACE_REPORT_SECURE_KEY__ config: - traceIdRatioBased: __BK_JOB_TRACE_REPORT_RATIO__ + # trace数据上报比率,取值范围为0~1,根据作业平台与监控平台负载适当调节该比率 + traceIdRatioBased: 0.1 app: code: __BK_JOB_APP_CODE__ secret: __BK_JOB_APP_SECRET__ diff --git a/support-files/templates/job.env b/support-files/templates/job.env index 6e0d88a381..c608e244de 100644 --- a/support-files/templates/job.env +++ b/support-files/templates/job.env @@ -25,14 +25,10 @@ BK_JOB_SECURITY_USERNAME=job BK_JOB_SECURITY_PASSWORD= BK_JOB_ACTUATOR_USERNAME=job BK_JOB_ACTUATOR_PASSWORD= -# 是否上报trace数据至蓝鲸监控APM -BK_JOB_TRACE_REPORT_ENABLED=false # trace数据上报地址:监控平台中目标APM应用的PUSH URL BK_JOB_TRACE_REPORT_PUSH_URL= # trace数据上报密钥:监控平台中目标APM应用的SecureKey BK_JOB_TRACE_REPORT_SECURE_KEY= -# trace数据上报比率,取值范围为0~1,根据作业平台与监控平台负载适当调节该比率 -BK_JOB_TRACE_REPORT_RATIO=0.1 # 3.3.3新增 Job Encryption and decryption key,一旦确认不能修改 BK_JOB_ENCRYPT_PASSWORD=