Skip to content

Commit

Permalink
updated monitoring repo with latest Grafana provisioning tools for th…
Browse files Browse the repository at this point in the history
…e datasource and dashboard

Signed-off-by: Brian Christner <brian.christner@gmail.com>
  • Loading branch information
vegasbrianc committed Mar 8, 2018
1 parent 4048c01 commit 912d837
Show file tree
Hide file tree
Showing 6 changed files with 661 additions and 7 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,12 @@ The Grafana Dashboard is now accessible via: `http://<Host IP Address>:3000` for
username - admin
password - foobar (Password is stored in the `config.monitoring` env file)

## Post Configuration
Now we need to create the Prometheus Datasource in order to connect Grafana to Prometheues
* Click the `Grafana` Menu at the top left corner (looks like a fireball)
* Click `Data Sources`
* Click the green button `Add Data Source`.
The DataSource and Dashboard for Grafana are automatically provisioned. You can still install the dashboaed manually if you choose below.


<center><img src="https://github.com/vegasbrianc/github-monitoring/blob/master/images/Grafana_Add_Data_Source.png" width="400" heighth="400"></center>

## Install Dashboard
## Manual 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

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.
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ services:
- 3000:3000
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
env_file:
- config.monitoring
- ./grafana/config.monitoring
networks:
- back-tier
- front-tier
Expand Down
2 changes: 2 additions & 0 deletions grafana/config.monitoring
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GF_SECURITY_ADMIN_PASSWORD=foobar
GF_USERS_ALLOW_SIGN_UP=false
11 changes: 11 additions & 0 deletions grafana/provisioning/dashboards/dashboard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: 1

providers:
- name: 'Prometheus'
orgId: 1
folder: ''
type: file
disableDeletion: false
editable: true
options:
path: /etc/grafana/provisioning/dashboards
Loading

0 comments on commit 912d837

Please sign in to comment.