github-ratelimit-metrics

command module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2022 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

github-ratelimit-metrics

Do you have a GitHub App? Do you want to monitor how close you are to hitting your API rate limits? That's what this project is for.

Expose a GitHub App's rate limits as Prometheus gauge metrics.

Configuration

These are the available flags for github-ratelimit-metrics

⇒  ./github-ratelimit-metrics --help
Usage of ./github-ratelimit-metrics:
      --github-app-id int            GitHub App ID (default -1)
      --github-installation-id int   GitHub App Installation ID (default -1)
      --github-private-key string    GitHub App private key
      --refresh-interval duration    How often to refresh the metrics (default 5s)
  -v, --verbose                      Enable verbose logging
pflag: help requested

Note, you can also configure the GitHub credentials via environment variables:

Flag Environment variable
github-app-id GITHUB_APP_ID
github-installation-id GITHUB_INSTALLATION_ID
github-private-key GITHUB_PRIVATE_KEY

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL