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

tmpnet: Save metrics snapshot to disk before node shutdown #2601

Merged
merged 4 commits into from
Jan 11, 2024

Conversation

marun
Copy link
Contributor

@marun marun commented Jan 10, 2024

Why this should be merged

As per a request from @StephenButtolph

How this works

Whenever node shutdown is initiated, retrieves /ext/metrics and writes it to the [data dir]/metrics/[timestamp].

How this was tested

Locally started and stopped a network, checked ~/.tmpnet/networks/latest/[node id]/metrics for a timestamped metrics snapshot.

@marun marun added the testing This primarily focuses on testing label Jan 10, 2024
@marun marun self-assigned this Jan 10, 2024
Copy link
Contributor

@StephenButtolph StephenButtolph left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks for such a quick turnaround!

@StephenButtolph StephenButtolph added this pull request to the merge queue Jan 11, 2024
Merged via the queue into dev with commit 9b4a01c Jan 11, 2024
17 checks passed
@StephenButtolph StephenButtolph deleted the tmpnet-metrics-on-shutdown branch January 11, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing This primarily focuses on testing
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants