Metric was collected before with the same name and label values
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
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.
@Centro1993 Tad late to the party but a new release should be out shortly that handles this.