Sign inSign up

theodore86/prometheus-gh-rate-limit-exporter

By theodore86

Updated about 1 month ago

https://github.com/theodore86/github-rate-limits-exporter

Image
0

10K+

theodore86/prometheus-gh-rate-limit-exporter repository overview

If you have ever tried using Github's API, you have probably already run into Github's rate limiting errors.
Without authorization, Github only allows 60 requests per hour (!!), and after creating and using your
own personal access token, you are upgraded to 5000 requests per hour.

That rate limit can be easily reached in just a few minutes by calling the API to list basic information from a medium
sized repository and you would have to wait 50+ minutes for the rate limit to reset in order to continue or try again.
You can up the rate limit to 15,000 with an enterprise account but the problem remains the same:

If your service/program needs to make consistent and/or sustained requests to Github's APIs,
you will have to work around and make the most of Github's rate limits.

So, the Prometheus Github rate-limits exporter was introduced to expose the remaining, used, limit
(quotas) and reset (rate-limit window resets in UTC seconds) information per Github API as metrics in order
to create alerting events and (Grafana) monitoring dashboards.

For the exporter to fetch and expose the Github API rate-limits, you need to supply:

Tag summary

Content type

Image

Digest

sha256:b37629ff4

Size

63.2 MB

Last updated

about 1 month ago

docker pull theodore86/prometheus-gh-rate-limit-exporter