Skip to content

WIP feat(sync_metrics): add metrics of tip and best shared tip per 10 minutes while syncing #109

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chanhsu001
Copy link
Contributor

@chanhsu001 chanhsu001 commented May 19, 2022

What problem does this PR solve?

Problem Summary: Add metrics of current tip and best shared tip per 10 minutes while syncing, save the data into file for later line chart generated.
the saved data format is like 'datetime|current_tip|best_shared_tip' with multiple lines. line chart is more suitable for data demostration.

What is changed and how it works?

What's Changed:

  • metrics of current tip and best shared tip in CI task
  • install ckb-cli to invoke rpc (remove it later)
  • add shell script running background to metrics
  • add python script to draw line chart (not ready)

Tests

  • local test

@chanhsu001 chanhsu001 force-pushed the metrics_sync_mainnet branch 5 times, most recently from c5053a5 to a2e97d8 Compare May 26, 2022 03:34
@chanhsu001 chanhsu001 force-pushed the metrics_sync_mainnet branch from a2e97d8 to 4cfa0cf Compare May 26, 2022 11:45
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.

1 participant