hubble
hubble copied to clipboard
Visualize minimal remaining rate limiting quota
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.
+1