-
Notifications
You must be signed in to change notification settings - Fork 434
Feat: Reporting metrics upon first startup #2356
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
base: main
Are you sure you want to change the base?
Conversation
| std::this_thread::sleep_for(std::chrono::milliseconds(10)); | ||
| } | ||
| // 启动时需要立刻更新一下cpu和memory指标,因为正常启动时,cpu和memory指标会等30s更新一次 | ||
| LogtailMonitor::GetInstance()->UpdateCpuMem(); |
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.
都没加载配置,cpu、内存此时没有什么意义
|
|
||
| OnetimeConfigInfoManager::GetInstance()->LoadCheckpointFile(); | ||
|
|
||
| #ifdef __ENTERPRISE__ |
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.
开源版调用会有什么影响?尽量少引入特殊的控制。
| const string& pipelineName = pipeline.first; | ||
| const string& pipleineDetail = pipeline.second; | ||
| if (configSet.find(pipelineName) != configSet.end()) { | ||
| LOG_WARNING(sLogger, |
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.
什么时候会出现
| } | ||
| } | ||
|
|
||
| void SelfMonitorServer::SendStartMetric() { |
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.
尽量时序上去保证先后顺序
| LOG_INFO(sLogger, ("send start metric", "sent successfully")); | ||
| } | ||
|
|
||
| void SelfMonitorServer::UpdateAppInfoJson(const PipelineEventGroup& pipelineEventGroup) { |
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.
没有什么有意义的信息,就不要李留这些代码
No description provided.