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

Visualize minimal remaining rate limiting quota #158

Open
larsxschneider opened this issue May 2, 2018 · 1 comment
Open

Visualize minimal remaining rate limiting quota #158

larsxschneider opened this issue May 2, 2018 · 1 comment
Assignees

Comments

@larsxschneider
Copy link
Collaborator

larsxschneider commented May 2, 2018

If rate limiting is enabled, then GHE logs will report the remaining quota for a user. Visualize the minimal remaining quota per day as well as the top 20 users using up the most of their quota.

Find minimal remaining quota with the following call:

zgrep -v 'status=40[13]' /var/log/github/unicorn.* | grep -Fv 'controller="Api::Internal::Raw"' | grep -Fv 'controller="Api::Meta"' | grep -Fv 'controller="Api::Root" path_info="/api/v3/internal/storage/favicon.ico"' | grep -Fv 'controller="Api::Enterprise" path_info="/api/v3/enterprise/stats/all"' | grep -oP 'rate_limit_remaining=\K[^ ]+' | sort -n | uniq | head

This chart would be useful to lower the available quota gradually over time.

@IngoS11
Copy link

IngoS11 commented Jun 1, 2018

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants