Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JyotiPMallick opened this issue May 28, 2024 · 1 comment

Comments

@JyotiPMallick
Copy link

JyotiPMallick commented May 28, 2024

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

@henrymcconville
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@henrymcconville @JyotiPMallick and others