-
Notifications
You must be signed in to change notification settings - Fork 108
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
A small reporting hack #3621
Merged
dbutenhof
merged 4 commits into
distributed-system-analysis:main
from
dbutenhof:statrange
May 13, 2024
Merged
A small reporting hack #3621
dbutenhof
merged 4 commits into
distributed-system-analysis:main
from
dbutenhof:statrange
May 13, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'd considered some way to report dataset create/upload statistics based on a date range, but never got around to it. Today, writing up the draft report for April, I of course didn't have a report "for April", and pasted in one from April 25... And then thought, well, how hard would it be to add `--since` and `--until` to set the range? It's not perfect, but it's a potentially useful twist. If you like it, we can merge it; if not, maybe some evening or weekend I'll get around to working on it some more. ``` $ pbench-report-generator --statistics=creation --since 2024-04-01 --until 2024-05-01 Dataset statistics by creation date: 540 since 2024-04-01 00:00 until 2024-05-01 00:00 540 in year 2024 540 in month April 2024 131 in week April 23 to April 30 8 on 30 April 2024 Total by year: 2024: 540 Total by month of year: Apr: 540 Total by day of month: 02: 25 03: 26 04: 2 06: 9 07: 9 08: 3 09: 28 10: 29 11: 9 12: 23 13: 47 14: 29 15: 33 16: 24 17: 31 18: 6 19: 2 20: 38 21: 36 23: 31 24: 30 25: 11 26: 4 27: 23 28: 23 29: 1 30: 8 Total by day of week: Mon: 37 Tue: 116 Wed: 116 Thu: 28 Fri: 29 Sat: 117 Sun: 97 Total by hour of day: 00: 24 01: 12 02: 10 03: 14 04: 32 05: 51 06: 34 07: 14 08: 26 09: 31 10: 30 11: 29 12: 31 13: 38 14: 19 15: 26 16: 17 17: 17 18: 17 19: 13 20: 11 21: 19 22: 12 23: 13 ```
dbutenhof
added
Server
Operations
Related to operation and monitoring of a service
labels
May 7, 2024
``` $ pbench-report-generator --statistics creation --since 2024-05-01 --until 2024-06-01 Dataset statistics by creation date: 123 from 2024-05-01 06:03 to 2024-05-07 09:15 0 in week May 24 to May 31 0 on 31 May 2024 ```
webbnh
approved these changes
May 13, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'd considered some way to report dataset create/upload statistics based on a date range, but never got around to it. Today, writing up the draft report for April, I of course didn't have a report "for April", and pasted in one from April 25...
And then thought, well, how hard would it be to add
--since
and--until
to set the range?It's not perfect, but it's a potentially useful twist. If you like it, we can merge it; if not, maybe some evening or weekend I'll get around to working on it some more.