Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support custom metric for cloud native app #1574

Merged
merged 13 commits into from
Sep 18, 2024

Conversation

jamesgetx
Copy link
Collaborator

No description provided.

apiserver/paasng/paasng/platform/bkapp_model/models.py Outdated Show resolved Hide resolved

// 为蓝鲸监控采集注入对应的 label
if appInfo, err := applications.GetBkAppInfo(bkapp); err == nil {
labels["monitoring.bk.tencent.com/bk_app_code"] = appInfo.AppCode
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些 labels 有使用 - 替代 _ 的说法吗?其他项目大多用连字符

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

从旧代码的注释来看,这些应该先前和蓝鲸监控侧约定好的 label,所以先继续沿用

@jamesgetx jamesgetx merged commit 86402b1 into TencentBlueKing:main Sep 18, 2024
7 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.

4 participants