Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stats: Adding metrics collector GitHub action #2814

Merged
merged 1 commit into from
Oct 27, 2020

Conversation

torkelo
Copy link
Member

@torkelo torkelo commented Oct 27, 2020

This adds a GitHub action that collect repo & issue stats every 30min.

We use it in the Grafana repo for issue triage and more:
https://play.grafana.org/d/aw0AkS5Gz/grafana-issue-triage?orgId=1

Recently added it in Tempo repo:
https://play.grafana.org/d/YckFzEtGk/grafana-tempo-github-stats?orgId=1

By default, it just tracks some basic metrics like stars, forks, repo size, open issue count etc. You can also add a json config file with queries that can give you trends over time for open PRs and unlabeled issues for example.

https://github.com/grafana/grafana/blob/master/.github/metrics-collector.json

Data is sent to a Grafana cloud metrictank instance. Added the API key to the secrets for this repo so this should work after merge as GH_BOT_ACCESS_TOKEN was already there.

@CLAassistant
Copy link

CLAassistant commented Oct 27, 2020

CLA assistant check
All committers have signed the CLA.

- name: Install Actions
run: npm install --production --prefix ./actions
- name: Run metrics collector
uses: ./actions/metrics-collector
Copy link
Collaborator

Choose a reason for hiding this comment

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

Q: shouldn't be run: ./actions/metrics-collector? just wondering :)

Copy link
Member Author

Choose a reason for hiding this comment

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

no, uses points to action, and this an action, not a shell command

Copy link
Collaborator

@kavirajk kavirajk left a comment

Choose a reason for hiding this comment

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

LGTM! 🎉

@torkelo torkelo merged commit 5892ec2 into master Oct 27, 2020
@torkelo torkelo deleted the adding-github-stats-collector-action branch October 27, 2020 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants