mirror of
https://github.com/ItsDrike/network-monitor.git
synced 2024-12-26 05:54:34 +00:00
Added new Grafana graphs that total repo stars
This commit is contained in:
commit
c118aeda1b
|
@ -12,7 +12,7 @@ If you would like to change which targets should be monitored or make configurat
|
|||
## Configuration
|
||||
In order to pull GitHub stats consistently it is recommended you create a personal access token inside of GitHub. This token will allow you to query the GitHub API more frequently than a public user. [Create GitHub Token](https://github.com/settings/tokens). It is only necessary to give the repo scope to the token permission.
|
||||
|
||||
<img src="https://github.com/vegasbrianc/github-monitoring/blob/master/images/github_token.png" width="400" heighth="400">
|
||||
<center><img src="https://github.com/vegasbrianc/github-monitoring/blob/master/images/github_token.png" width="600" heighth="500"></center>
|
||||
|
||||
Copy the GitHub Token you created and paste into the bottom of the [docker-compose.yml](https://github.com/vegasbrianc/github-monitoring/blob/master/docker-compose.yml) file under the metrics service section replacing the `GITHUB_TOKEN` with your newly created token.
|
||||
|
||||
|
@ -49,7 +49,7 @@ Now we need to create the Prometheus Datasource in order to connect Grafana to P
|
|||
* Click `Data Sources`
|
||||
* Click the green button `Add Data Source`.
|
||||
|
||||
<img src="https://github.com/vegasbrianc/github-monitoring/blob/master/images/Grafana_Add_Data_Source.png" width="400" heighth="400">
|
||||
<center><img src="https://github.com/vegasbrianc/github-monitoring/blob/master/images/Add_Data_Source.png" width="400" heighth="400"></center>
|
||||
|
||||
## Install Dashboard
|
||||
I created a Dashboard template which is available on [GitHub Stats Dashboard](https://grafana.net/dashboards/1559). Simply download the dashboard and select from the Grafana menu -> Dashboards -> Import
|
||||
|
@ -57,7 +57,7 @@ I created a Dashboard template which is available on [GitHub Stats Dashboard](ht
|
|||
This dashboard is intended to help you get started with graphing your GitHub Repos. If you have any changes you would like to see in the Dashboard let me know so I can update Grafana site as well.
|
||||
|
||||
|
||||
<img src="https://github.com/vegasbrianc/github-monitoring/blob/master/images/dashboard.png" width="400" heighth="400">
|
||||
<center><img src="https://github.com/vegasbrianc/github-monitoring/blob/master/images/dashboard.png" width="4600" heighth="500"></center>
|
||||
|
||||
## Troubleshooting
|
||||
It appears some people have reported no data appearing in Grafana. If this is happening to you be sure to check the time range being queried within Grafana to ensure it is using Today's date with current time.
|
||||
|
|
Loading…
Reference in a new issue