Alex Krzos 121525e4e6 CFME-collectd/dashbaord fixes.
+ Correctly collect on evm:dbsync:replicate, and appliance_console.rb
+ Fix Ansible 2.0 depreciation
+ Improve visualization of IOPs/Throughput per cfme process component of dashboard
+ Improve visualization of CFME Per Process CPU Utilization, 100% represents 100% cpu of a single core rather than all cpu resources.

Change-Id: I35b5419c32c03e8f8cf1b1c7667ab9b1597997d8
2016-03-28 11:51:54 -04:00

27 lines
1.2 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}}"