diff --git a/github_exporter.py b/github_exporter.py index 4ef1f7d1..d620812d 100644 --- a/github_exporter.py +++ b/github_exporter.py @@ -10,7 +10,7 @@ def collect(self): metrics = {'forks': 'forks', 'stars': 'stargazers_count', 'open_issues': 'open_issues', - 'watchers': 'watchers_count', + 'watchers': 'subscribers_count', # watchers_count is actually the same as stargazer_count, need subscribers_count 'has_issues': 'has_issues',} METRIC_PREFIX = 'github_repo'