-
Notifications
You must be signed in to change notification settings - Fork 389
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
add K8s meta self metrics #1765
Conversation
pkg/helper/self_metrics_constants.go
Outdated
* service_kubernetes_meta | ||
**********************************************************/ | ||
const ( | ||
MetricPluginCollectEntityTotal = "plugin_collect_entity_total" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个命名不是太对,输入输出不需要再有特殊的标识,参考C++部分
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
找玄飏交流下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里讨论下来,通用的输入输出没有办法表达两种数据类型的含义,所以这里相当于属于meta的特殊指标。
@@ -84,7 +95,16 @@ func (m *MetaManager) Init(configPath string) (err error) { | |||
return err | |||
} | |||
m.clientset = clientset | |||
m.metricContext = &helper.LocalContext{} | |||
|
|||
m.metricRecord = pipeline.MetricsRecord{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里直接初始化?label是什么?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是runner级别的,在导出的时候,会填入cluster id,runner name和project。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
默认的project要带上
@@ -84,7 +95,16 @@ func (m *MetaManager) Init(configPath string) (err error) { | |||
return err | |||
} | |||
m.clientset = clientset | |||
m.metricContext = &helper.LocalContext{} | |||
|
|||
m.metricRecord = pipeline.MetricsRecord{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
默认的project要带上
1. 新增可观测指标:
2. 调整部分entity和link字段
3. 支持没有采集配置时,仍然可以启动HTTP Server(ebpf场景)