From e5c295cc00d1fc802e33def5f9233d91f92f1e25 Mon Sep 17 00:00:00 2001 From: Alex Ellis Date: Sat, 25 Mar 2017 22:25:19 +0000 Subject: [PATCH] Fixes #13 # watchers_count is actually the same as stargazer_count, need subscribers_count For an example checkout: https://api.github.com/repos/alexellis/faas vs https://github.com/alexellis/faas I've tested this against my own account. cc/ @rucknar --- github_exporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'