Feat: Reporting metrics upon first startup#2356
Open
Takuka0311 wants to merge 1 commit intoalibaba:mainfrom
Open
Feat: Reporting metrics upon first startup#2356Takuka0311 wants to merge 1 commit intoalibaba:mainfrom
Takuka0311 wants to merge 1 commit intoalibaba:mainfrom
Conversation
messixukejia
requested changes
Aug 29, 2025
| std::this_thread::sleep_for(std::chrono::milliseconds(10)); | ||
| } | ||
| // 启动时需要立刻更新一下cpu和memory指标,因为正常启动时,cpu和memory指标会等30s更新一次 | ||
| LogtailMonitor::GetInstance()->UpdateCpuMem(); |
Collaborator
There was a problem hiding this comment.
都没加载配置,cpu、内存此时没有什么意义
|
|
||
| OnetimeConfigInfoManager::GetInstance()->LoadCheckpointFile(); | ||
|
|
||
| #ifdef __ENTERPRISE__ |
Collaborator
There was a problem hiding this comment.
开源版调用会有什么影响?尽量少引入特殊的控制。
| const string& pipelineName = pipeline.first; | ||
| const string& pipleineDetail = pipeline.second; | ||
| if (configSet.find(pipelineName) != configSet.end()) { | ||
| LOG_WARNING(sLogger, |
| } | ||
| } | ||
|
|
||
| void SelfMonitorServer::SendStartMetric() { |
| LOG_INFO(sLogger, ("send start metric", "sent successfully")); | ||
| } | ||
|
|
||
| void SelfMonitorServer::UpdateAppInfoJson(const PipelineEventGroup& pipelineEventGroup) { |
Collaborator
There was a problem hiding this comment.
没有什么有意义的信息,就不要李留这些代码
This file contains hidden or 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
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.
No description provided.