{"repo":"theodore86/github-rate-limits-exporter","free":true,"listed":false,"github":"https://github.com/theodore86/github-rate-limits-exporter","clone":"git clone https://github.com/theodore86/github-rate-limits-exporter.git","description":"Github API Rate Limits Exporter for Prometheus","language":"Python","stars":15,"topics":["python","exporter","github","prometheus","grafana","observability","automation","monitoring","kubernetes","alertmanager"],"license":"MIT","category":"analytics","readme_excerpt":"github-rate-limits-exporter Prometheus exporter to monitor the Github API rate-limits. Introduction 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: - a GitHub Personal Access Token (PAT) - or GitHub App (APP) credentials. As standalone Python command line tool (pypi) Install the tool through pypi: Tox (wrapper) Clone the repository and install tox : Run as PAT Github authentication type Run as APP (Githu","default_branch":null,"files":null,"tree":[],"storefront":"/r/theodore86","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/theodore86/github-rate-limits-exporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}