github-exporter icon indicating copy to clipboard operation
github-exporter copied to clipboard

Only see three metrics from the github exporter 1. 1. 0 i.e. github_rate_limit, github_rate_remaining, github_rate_reset

Open JyotiPMallick opened this issue 1 year ago • 1 comments

Hello,

I am trying to fetch the details for my GitHub repo and for this I have configured github_exporter_1.1.0 with Prometheus to fetch the details and put it on Grafana.

  1. Used the version github_exporter_1.1.0
  2. Here is my config.yml file for github_exporter_1.1.0

github: token: <github_personal_access_token> organizations: - name: <org_name> repositories: - name: <org_name>/<repo_name_1> - name: <org_name>/<repo_name_2> - name: <org_name>/<repo_name_3> - name: <org_name>/<repo_name_4> - name: <org_name>/<repo_name_5> - name: <org_name>/<repo_name_6> - name: <org_name>/<repo_name_7> - name: <org_name>/<repo_name_8>

This is running fine, but the metrics is only showing

# HELP github_rate_limit Number of API queries allowed in a 60 minute window
# TYPE github_rate_limit gauge
github_rate_limit 60
# HELP github_rate_remaining Number of API queries remaining in the current window
# TYPE github_rate_remaining gauge
github_rate_remaining 60
# HELP github_rate_reset The time at which the current rate limit window resets in UTC epoch seconds
# TYPE github_rate_reset gauge
github_rate_reset 1.716876951e+09

Metrics : image

Prometheus : image

Metrics Explorer : image

Note: My repository are private

JyotiPMallick avatar May 28 '24 05:05 JyotiPMallick

Hi @JyotiPMallick,

The tool doesn't support configuration via a yaml config file. Could you try using the relevant environment variables mentioned in the README and see if you still face issues?

henrymcconville avatar Oct 21 '24 14:10 henrymcconville