Skip to content

Commit

Permalink
Move grafana dashboard definitions and data sources to ansible subtree
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Evgeniev <[email protected]>
  • Loading branch information
2 people authored and iknite committed Feb 19, 2019
1 parent 94d452f commit d66bfe5
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1551,4 +1551,4 @@
"title": "QED",
"uid": "rjPFfGuik",
"version": 2
}
}
20 changes: 17 additions & 3 deletions deploy/aws/provision/tasks/prometheus/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,25 @@
yum:
update_cache: yes
name: https://dl.grafana.com/oss/release/grafana-5.4.2-1.x86_64.rpm


- name: Copy Grafana config and dashboards to remote
copy:
dest: /etc/grafana/provisioning/{{ item }}
src: files/grafana/{{ item }}
owner: root
group: grafana
with_items:
- datasources/datasource.yml
- dashboards/GoProcesses.json
- dashboards/dashboard.yml
- dashboards/Host.json
- dashboards/QED.json
register: grafana_config

- name: Copy Grafana config and dashboards to remote
copy:
dest: /etc/grafana/
src: ../modules/prometheus/data/provisioning
dest: /etc/grafana/provisioning/
src: files/grafana
owner: root
group: grafana
register: grafana_config
Expand Down

0 comments on commit d66bfe5

Please sign in to comment.