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

Metric was collected before with the same name and label values #30

Open
Centro1993 opened this issue Mar 3, 2018 · 2 comments
Open

Comments

@Centro1993
Copy link

Hello,

I am currently using this exporter on a K8s Cluster in combination with Grafana, and it seems I cannot get any metrics out of the exporter:

An error has occurred during metrics collection:

5 error(s) occurred:
* collected metric github_repo_stars label:<name:"private" value:"true" > label:<REDACTED> gauge:<value:1 >  was collected before with the same name and label values
* collected metric github_repo_forks label:<name:"private" value:"true" > label:<REDACTED> gauge:<value:1 >  was collected before with the same name and label values
* collected metric github_repo_open_issues label:<name:"private" value:"true" > label:<REDACTED > gauge:<value:0 >  was collected before with the same name and label values
* collected metric github_repo_watchers label:<name:"private" value:"true" > label:<REDACTED> gauge:<value:0 >  was collected before with the same name and label values
* collected metric github_repo_size_kb label:<name:"private" value:"true" > label:<REDACTED > gauge:<value:2512 >  was collected before with the same name and label values

From the logs I can see that the Exporter has connected successfully to Github and all metrics can be fetched, but the /metrics endpoint only gives these error-messages. Tried it via curl, same response. No Data has been collected by Prometheus before.

Whilst researching this behavious, I found the same bug in another Project: gettyimages/chronos_exporter#2

@Centro1993
Copy link
Author

Centro1993 commented Mar 3, 2018

Update: Seems to be an issue with scraping both the Org and a project or user belonging to the Org, because the metrics returned are the same (?).
Temporarily resolved it by only scraping projects.

@Rucknar
Copy link
Contributor

Rucknar commented Sep 27, 2020

@Centro1993 Tad late to the party but a new release should be out shortly that handles this.

j6s added a commit to j6s/github-exporter that referenced this issue Dec 21, 2020
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

Successfully merging a pull request may close this issue.

2 participants