
+ Disable epel after graphite install and after grafana install + Add readme for cfme-all-in-one + Allow port to be changed for graphite/grafana + Automated adding graphite as data source + Removed grafana api key usage from dashboards-generic, dashboards-openstack + wait for grafana to be ready for new data source Change-Id: I97235d60032d60061790f99d6d811ecc9d6f4c36
27 lines
1.1 KiB
YAML
27 lines
1.1 KiB
YAML
---
|
|
#
|
|
# Upload Generic Machine Dashboards to Grafana
|
|
#
|
|
|
|
- name: Remove existing dashboards
|
|
command: "curl -X DELETE -H 'Content-Type: application/json' http://{{grafana_username}}:{{grafana_password}}@{{grafana_host}}:{{grafana_port}}/api/dashboards/db/{{item.process_list_name|lower}}-general-system-performance"
|
|
when: overwrite_existing
|
|
with_items: dashboards
|
|
|
|
- name: Ensure {{role_path}}/files directory exists
|
|
file: path={{role_path}}/files state=directory
|
|
|
|
- name: Generate dashboards
|
|
template:
|
|
src: "{{item.template_name}}_general_system_performance.json.j2"
|
|
dest: "{{role_path}}/files/{{item.process_list_name}}_general_system_performance.json"
|
|
with_items: dashboards
|
|
|
|
- name: Upload dashboards to grafana
|
|
command: "curl -X POST -H 'Content-Type: application/json' -d @{{role_path}}/files/{{item.process_list_name}}_general_system_performance.json http://{{grafana_username}}:{{grafana_password}}@{{grafana_host}}:{{grafana_port}}/api/dashboards/db"
|
|
with_items: dashboards
|
|
|
|
- name: Remove leftover json file(s)
|
|
file: path={{role_path}}/files/{{item.process_list_name}}_general_system_performance.json state=absent
|
|
with_items: dashboards
|