Skip to content

feat: added more fields to the metrics#31

Merged
Rucknar merged 4 commits intogithubexporter:masterfrom
caarlos0:more
Nov 13, 2018
Merged

feat: added more fields to the metrics#31
Rucknar merged 4 commits intogithubexporter:masterfrom
caarlos0:more

Conversation

@caarlos0
Copy link
Copy Markdown
Contributor

namely:

  • license
  • language
  • if it is a fork
  • if it is archived

PS: maybe it doesn't even make sense to report metrics on archived repositories, as they can't be changed... if you agree, I can fix that in this PR as well :)

Thanks!

- license
- language
- if it is a fork
- if it is archived
@caarlos0
Copy link
Copy Markdown
Contributor Author

cc/ @Rucknar

@Rucknar
Copy link
Copy Markdown
Contributor

Rucknar commented May 30, 2018

Thanks for the PR! Code looks good to me, could you also update the docs? I've listed the metrics people can expect in the metrics.md file in the root of the repo.

@Rucknar Rucknar self-assigned this May 30, 2018
@caarlos0
Copy link
Copy Markdown
Contributor Author

hi @Rucknar

I wasn't sure about what was the best way of doing that, so I basically re-generated that output using "live" data. Let me know what you think!

Cheers!

Comment thread exporter/metrics.go Outdated
prometheus.BuildFQName("github", "repo", "watchers"),
"Total number of watchers/subscribers for given repository",
[]string{"repo", "user", "private"}, nil,
[]string{"repo", "user", "private", "fork", "arhived", "license", "language"}, nil,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't arhived in all these rather be archived? (minor typo)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, fixed, thanks!

@Rucknar Rucknar merged commit 7ec4b4e into githubexporter:master Nov 13, 2018
@caarlos0 caarlos0 deleted the more branch November 13, 2018 15:06
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 this pull request may close these issues.

3 participants