-
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
Optimization of the self-monitoring metrics architecture for Go (Golang) plugin modules and unified output of metrics with C++ modules. #1290
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
linrunqi08
commented
Dec 27, 2023
•
edited
Loading
edited
- golang部分指标基本沿用原定义pkg/pipeline/self_metric.go
- pkg/pipeline/context.go 中新增MetricRecord数据结构,概念对齐C++的指标结构
- golang插件指标实现,主要看pluginmanager/processor_wrapper.go,现在调用processor插件,会统一经过processor_wrapper
- MetricRecord会从processor_wrapper中生成,然后set到context中,具体的processor会在init的时候从context中把MetricRecord拿出来,这里的实现依赖的是单个LogstoreConfig的所有插件是单线程,顺序init的,否则该实现会有问题(现在的实现不需要改接口定义)
- plugin_main/plugin_export.go定义了Cgo接口,go插件的指标数据通过Cgo接口一次返回,返回的数据结构为[]map[string]string. core/monitor/MetricExportor.cpp文件需要重点review内存释放逻辑
linrunqi08
changed the title
Feature/taiye/add go plugin metric
unify go plugin metric export
Dec 27, 2023
linrunqi08
changed the title
unify go plugin metric export
Optimization of the self-monitoring metrics architecture for Go (Golang) plugin modules and unified output of metrics with C++ modules.
Dec 29, 2023
messixukejia
requested changes
Dec 31, 2023
messixukejia
requested changes
Dec 31, 2023
…e/taiye/add_go_plugin_metric
linrunqi08
force-pushed
the
feature/taiye/add_go_plugin_metric
branch
from
January 9, 2024 04:15
2f01470
to
de51063
Compare
linrunqi08
force-pushed
the
feature/taiye/add_go_plugin_metric
branch
from
January 16, 2024 01:55
fe48d07
to
20480fe
Compare
messixukejia
requested changes
Jan 17, 2024
yyuuttaaoo
reviewed
Jan 20, 2024
yyuuttaaoo
reviewed
Jan 20, 2024
yyuuttaaoo
reviewed
Jan 22, 2024
yyuuttaaoo
reviewed
Jan 22, 2024
yyuuttaaoo
reviewed
Jan 22, 2024
yyuuttaaoo
reviewed
Jan 22, 2024
messixukejia
approved these changes
Jan 22, 2024
yyuuttaaoo
reviewed
Jan 23, 2024
yyuuttaaoo
approved these changes
Jan 23, 2024
yyuuttaaoo
added
enhancement
Feature enhancement
feature request
New feature request
and removed
enhancement
Feature enhancement
labels
Mar 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.