Skip to content

feat: 支持模板强制关闭智能体指标 --story=1070093903136959970 - #844

Merged
benero merged 1 commit into
TencentBlueKing:developfrom
benero:dev/1070093903136959970-agent-metrics-template-disable
Aug 27, 2026
Merged

feat: 支持模板强制关闭智能体指标 --story=1070093903136959970#844
benero merged 1 commit into
TencentBlueKing:developfrom
benero:dev/1070093903136959970-agent-metrics-template-disable

Conversation

@benero

@benero benero commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Background

Generated Agent projects should be able to disable metric export locally even when the downloaded Agent configuration enables it.

Changes

  • treat an explicitly configured BKAI_AGENT_ENABLE_METRICS value as the highest-priority metric switch
  • default the generated template environment to BKAI_AGENT_ENABLE_METRICS=false
  • document how to opt in to local metric validation
  • cover the case where the environment disables metrics while Agent configuration and exporter credentials enable them

Validation

  • plugin exporter and local observability tests: 43 passed
  • changed-file lint, formatting, merge-conflict, and diff checks passed
  • full repository pre-commit was executed; it remains blocked by existing lint findings outside this change

@tencentblueking-adm

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


bennychen seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@benero
benero merged commit 59c1c09 into TencentBlueKing:develop Aug 27, 2026
4 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants