Skip to content

refactor: replace logs by metrics for memory tracker#2201

Merged
doitian merged 2 commits into
nervosnetwork:developfrom
chaoticlonghair:pr/use-metric-for-memory-tracker
Aug 17, 2020
Merged

refactor: replace logs by metrics for memory tracker#2201
doitian merged 2 commits into
nervosnetwork:developfrom
chaoticlonghair:pr/use-metric-for-memory-tracker

Conversation

@chaoticlonghair

@chaoticlonghair chaoticlonghair commented Jul 31, 2020

Copy link
Copy Markdown
Contributor

Use metrics to output memory statistics, so we can draw charts in Grafana via prometheus.

@chaoticlonghair chaoticlonghair requested review from a team and quake July 31, 2020 00:50
keroro520
keroro520 previously approved these changes Aug 4, 2020
Comment thread util/memory-tracker/src/process.rs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Gather then just ignore?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The details was collected by metrics service in gather_memory_stats(..).
So we don't have to output them to logs.

doitian
doitian previously approved these changes Aug 11, 2020
@chaoticlonghair

Copy link
Copy Markdown
Contributor Author

Ready for review!

@chaoticlonghair

Copy link
Copy Markdown
Contributor Author

bors r=doitian,TheWaWaR

@bors

bors Bot commented Aug 15, 2020

Copy link
Copy Markdown
Contributor

🕐 Waiting for PR status (Github check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set.

@doitian doitian merged commit 7c5a00a into nervosnetwork:develop Aug 17, 2020
@chaoticlonghair chaoticlonghair deleted the pr/use-metric-for-memory-tracker branch September 11, 2020 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants