Skip to content

Commit e98b927

Browse files
author
Eric Sorenson
committed
Add section on grafana
1 parent 3e4e3c3 commit e98b927

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/open-source-health-metrics.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,15 @@ More complex GraphQL queries are possible as well. For example, this query:
6565
```
6666

6767
Returns the number of open pull requests. Other possible states are `CLOSED` and `MERGED`. Tracking these over time is a key indicator of activity in the repository.
68+
69+
## Other Graphing Options
70+
71+
With the API reference in hand, users of other time-series visualization tools should be able to incorporate these metrics alongside your existing dashboards.
72+
73+
### Grafana GitHub integration
74+
75+
There is a Grafana-supported integration for GitHub available here: https://grafana.com/docs/grafana-cloud/monitor-infrastructure/integrations/integration-reference/integration-github/ . For Grafana cloud, this requires a grafana-agent running on a host which has access to query the GitHub API and publish the results to the Grafana-hosted Prometheus instance.
76+
77+
The integration includes a dashboard with several graphs that can be used as a starting point, including open PRs, open issues, and the number of stars and watchers of a repo.
78+
79+
![A Grafana dashboard of GitHub repository statistics for the cli/cli repo](https://github.com/github/github-ospo/assets/56753/b8f22a07-d581-4b58-b621-0959eefa39e2)

0 commit comments

Comments
 (0)