Skip to content

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

@Centro1993

Description

@Centro1993

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions