diff --git a/README.md b/README.md
index 1123f72..0a4aa11 100644
--- a/README.md
+++ b/README.md
@@ -58,21 +58,6 @@ Here's a list of all the services that are created:
## Post Configuration
-### Datasource Configuration
-Now we need to create the Prometheus Datasource in order to connect Grafana to Prometheus
-* Click the `Grafana` Menu at the top left corner (looks like a fireball)
-* Click `Data Sources`
-* Click the green button `Add Data Source`.
-* Input the following parameters **exactly as shown**
- * Name - `Prometheus`, Default - `checked`
- * Type - `Prometheus`
- * HTTP settings
- * URL - `http://prometheus:9090`
- * Access - `proxy`
-* Click `Save & Test`
-
-
-
### Ping Configuration
If you would like to add or change the Ping targets should be monitored you'll want to edit the `targets` section in [prometheus/prometheus.yml](prometheus/prometheus.yml)
diff --git a/config.monitoring b/config.monitoring
index 3c4822e..bfd4e48 100644
--- a/config.monitoring
+++ b/config.monitoring
@@ -1,3 +1 @@
GF_SECURITY_ADMIN_PASSWORD=9uT46ZKE
-GF_DASHBOARDS_JSON_ENABLED=true
-GF_DASHBOARDS_JSON_PATH=/var/lib/grafana/dashboards
diff --git a/docker-compose.yml b/docker-compose.yml
index 5a8e5ce..bf486f6 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -72,7 +72,7 @@ services:
mode: global
grafana:
- image: grafana/grafana:4.6.3
+ image: grafana/grafana:5.4.2
depends_on:
- prometheus
ports:
@@ -80,6 +80,7 @@ services:
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/dashboards:/var/lib/grafana/dashboards
+ - ./grafana/provisioning:/etc/grafana/provisioning
env_file:
- config.monitoring
diff --git a/grafana/provisioning/dashboards/all.yml b/grafana/provisioning/dashboards/all.yml
new file mode 100644
index 0000000..3b978e6
--- /dev/null
+++ b/grafana/provisioning/dashboards/all.yml
@@ -0,0 +1,11 @@
+apiVersion: 1
+
+providers:
+- name: 'default'
+ orgId: 1
+ folder: ''
+ type: file
+ disableDeletion: false
+ updateIntervalSeconds: 10 #how often Grafana will scan for changed dashboards
+ options:
+ path: /var/lib/grafana/dashboards
diff --git a/grafana/provisioning/datasources/all.yml b/grafana/provisioning/datasources/all.yml
new file mode 100644
index 0000000..b54bdf1
--- /dev/null
+++ b/grafana/provisioning/datasources/all.yml
@@ -0,0 +1,20 @@
+# config file version
+apiVersion: 1
+
+# list of datasources that should be deleted from the database
+deleteDatasources:
+ - name: Prometheus
+ orgId: 1
+
+# list of datasources to insert/update depending
+# whats available in the database
+datasources:
+ # name of the datasource. Required
+- name: 'Prometheus'
+ type: 'prometheus'
+ access: 'proxy'
+ org_id: 1
+ url: 'http://prometheus:9090'
+ is_default: true
+ version: 1
+ editable: true