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

Fix/metrics #908

Closed
wants to merge 4 commits into from
Closed

Fix/metrics #908

wants to merge 4 commits into from

Conversation

shiqizng
Copy link
Contributor

@shiqizng shiqizng commented Mar 4, 2022

Summary

Metrics changes from monitoring dashboard updates broke the metrics calculation in block generator. This PR fixes this error, error writing metrics (imported_tx_per_block): metric incomplete or not found: imported_tx_per_block

Test Plan

Execute block-generator runner to validate the error is gone and check that metrics report is complete.

@codecov-commenter
Copy link

codecov-commenter commented Mar 4, 2022

Codecov Report

Merging #908 (a12ec04) into develop (4cbb5a1) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #908   +/-   ##
========================================
  Coverage    58.04%   58.04%           
========================================
  Files           40       40           
  Lines         4636     4636           
========================================
  Hits          2691     2691           
  Misses        1614     1614           
  Partials       331      331           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4cbb5a1...a12ec04. Read the comment docs.

@shiqizng shiqizng self-assigned this Mar 4, 2022
@winder winder force-pushed the fix/metrics branch 2 times, most recently from 966721f to 35e77f8 Compare March 5, 2022 17:23
@winder
Copy link
Contributor

winder commented Mar 5, 2022

I added a small change to avoid hard coding the metric name in the processing code. The TPS calculation is also incorrect, I didn't notice earlier but switching from counter to a gauge means that we lose data if scraping doesn't happen for every block.

Here is something that seems to work, but it must break the monitoring dashboard. #909

@shiqizng
Copy link
Contributor Author

shiqizng commented Mar 7, 2022

closing this issue. it's not needed anymore after #913 is merged.

@shiqizng shiqizng closed this Mar 7, 2022
@winder winder deleted the fix/metrics branch March 8, 2022 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants