-
Notifications
You must be signed in to change notification settings - Fork 47
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 API Requests By User #156
Conversation
This adds a report to collect the top 20 API users each day. Reports this info in a simple table, this is handy for identifying users who are approaching, or over the API rate limit.
|
||
zcat -f /var/log/github/unicorn.log.1* | | ||
grep -F 'request_category=api' | | ||
grep -Fv 'remote_address=127.0.0.1' | |
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.
@dfarr I excluded internal API calls here as they are not directly issued by a user (e.g. Git LFS requests)
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.
Good idea 👍
docs/housekeeping-api-requests.html
Outdated
></canvas> | ||
<div class="info-box"> | ||
<p> | ||
The top 20 users that made the highest number of API requests yesterday. |
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.
“who” instead of ”that” might sound nicer.
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.
@larsxschneider: Thanks for removing internal API calls, hadn’t thought of that. I just have one minor remark (see below).
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.
Looks good to me, I’ll merge this in a second!
Thanks again, @dfarr! |
This adds a report to collect the top 20 API users each day. Reports this info in a simple table, this is handy for identifying users who are approaching or over the API rate limit.
9 contributors, yay! https://github.com/Autodesk/hubble/graphs/contributors |
That graph even shows 10 contributors now 😉. |
Thanks guys! Always great to see your contributions in the graph :) |
PR with a few minor improvements for #148