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

add --syncstats option #760

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

rwarren
Copy link

@rwarren rwarren commented Aug 12, 2022

The --syncstats option is to support general per-dataset instrumentation of the syncoid process, and allows you to specify a file path to dump per-dataset stats to. The specified file will contain json with stats for each dataset that is considered.

The original use case driving this change is to parse the output file after the sync is complete, and send the data to your metric tracking system/TSDB of choice.

For this commit, the only stat currently added is the sync duration (sync_duration_s). However, the code/output has been set up to make it easy to add more per-dataset stats in the future. For example, delta_bytes (the size of the incremental delta in bytes) would be another nice stat to add later.

The `--syncstats` option is to support general per-dataset instrumentation of the syncoid process, and allows you to specify a file path to dump per-dataset stats to.  The specified file will contain json with stats for each dataset that is considered.

The original use case driving this change is to parse the output file after the sync is complete, and send the data to your metric tracking system/TSDB of choice.

For this commit, the only stat currently added is the sync duration (`sync_duration_s`).  However, the code/output has been set up to make it easy to add more per-dataset stats in the future.  For example, `delta_bytes` (the size of the incremental delta in bytes) would be another nice stat to add later.
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