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: prom agent info for HPA and Rebalance #2028

Merged
merged 58 commits into from
Feb 28, 2025

Conversation

catdogpandas
Copy link
Contributor

@catdogpandas catdogpandas commented Jan 8, 2025

  1. 获取 Agent 的内存、CPU 开销信息
  2. 通过 HttpSD 上报当前 Agent 资源信息、采集延迟信息、Targets 信息
  3. 给 AutoMetrics 增加 lc_target_hash 标签
  4. 优化采集延迟与下次开始采集时间调度的计算

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was signed with the committer’s verified signature.
chiragsalian Chirag Chandrakant Salian

Unverified

This user has not yet uploaded their public signing key.
// scrape once just now
LOG_INFO(sLogger, ("scrape zero cost", ToString(tmpCurrentMilliSeconds)));
v->SetScrapeOnceTime(chrono::steady_clock::now(), chrono::system_clock::now());
}
v->ScheduleNext();
}
}
total = mScrapeSchedulerMap.size();
LOG_INFO(sLogger, ("prom job", mJobName)("targets removed", toRemove.size())("added", added)("total", total));
Copy link
Collaborator

Choose a reason for hiding this comment

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

后续关注下运行态打印的情况,特别是高压力下的日志别太多了

Copy link
Contributor Author

Choose a reason for hiding this comment

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

这个只会在触发更新或 Rebalance 的情况下会打印,目前测试观察下来数量很少的,后面也会继续关注。

@linrunqi08 linrunqi08 merged commit f7f76aa into alibaba:main Feb 28, 2025
15 checks passed
@henryzhx8 henryzhx8 added the enhancement Feature enhancement label Feb 28, 2025
@henryzhx8 henryzhx8 added this to the v3.1 milestone Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants