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

tools: block generator data reporting #5339

Merged
merged 6 commits into from
May 3, 2023
Merged

Conversation

shiqizng
Copy link
Contributor

This PR add a script to send block TPS result from a block generator report to datadog.

@shiqizng shiqizng changed the title tools: block generator data tools: block generator data reporting Apr 26, 2023
Copy link
Contributor

@tzaffi tzaffi left a comment

Choose a reason for hiding this comment

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

Looks very good, though I haven't yet attempted to run. Just left a few nits to make the python file a bit more pythonic.

tools/block-generator/upload_metrics.py Outdated Show resolved Hide resolved
tools/block-generator/upload_metrics.py Outdated Show resolved Hide resolved
tools/block-generator/upload_metrics.py Outdated Show resolved Hide resolved
tools/block-generator/upload_metrics.py Outdated Show resolved Hide resolved
@shiqizng shiqizng requested a review from tzaffi April 27, 2023 14:27
tzaffi
tzaffi previously approved these changes Apr 27, 2023
Copy link
Contributor

@tzaffi tzaffi left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -0,0 +1 @@
datadog==0.45.0
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't like maintaining python deps/packages w/ requirements.txt files. For something small like this I think it's fine, but if we plan on having multiple scripts w/ different dependencies, shared modules, etc. we should think about having a proper python package.

tools/block-generator/runner/run.go Outdated Show resolved Hide resolved
@shiqizng shiqizng requested a review from Eric-Warehime April 27, 2023 17:13
Copy link
Contributor

@algochoi algochoi left a comment

Choose a reason for hiding this comment

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

Looks good, is this currently meant to be run locally or as some part of automated process?

@@ -0,0 +1,53 @@
from datadog import initialize
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: can combine below import

Suggested change
from datadog import initialize
from datadog import api, initialize

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.

5 participants