hubble icon indicating copy to clipboard operation
hubble copied to clipboard

Visualize minimal remaining rate limiting quota

Open larsxschneider opened this issue 6 years ago • 1 comments

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.

larsxschneider avatar May 02 '18 13:05 larsxschneider

+1

IngoS11 avatar Jun 01 '18 23:06 IngoS11