Stats: Adding metrics collector GitHub action #2814
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.