Skip to content

Commit fc0087d

Browse files
Lars Schneiderlarsxschneider
Lars Schneider
authored andcommitted
remove GitHub internal API requests from API statistics
GitHub seems to use its own API for internally. Filter these requests as we are only interested in external API usage (because we can only control external API usage).
1 parent 9d843e7 commit fc0087d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

updater/scripts/api-requests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ echo -e "resource\ttype\tsource IP\trequests/day"
66

77
zcat -f /var/log/haproxy.log.1* |
88
perl -ne 'print if s/.*haproxy\[\d+\]: ([^:]+).*\/api\/v3\/([^\/\? ]+)\/([^\/\? ]+?(\/[^\/\? ]+)).*/\1 \2 \3/' |
9+
grep -v '^127.0.0.1' |
910
sort |
1011
uniq -c |
1112
sort -rn |

0 commit comments

Comments
 (0)