diff --git a/group_vars/all.yml.sample b/group_vars/all.yml.sample index d0fdfa4e2..88f14170f 100644 --- a/group_vars/all.yml.sample +++ b/group_vars/all.yml.sample @@ -732,6 +732,19 @@ dummy: #grafana_uid: 472 #grafana_datasource: Dashboard #grafana_dashboards_path: "/etc/grafana/dashboards/ceph-dashboard" +#grafana_dashboard_version: nautilus +#grafana_dashboard_files: +# - ceph-cluster.json +# - cephfs-overview.json +# - host-details.json +# - hosts-overview.json +# - osd-device-details.json +# - osds-overview.json +# - pool-detail.json +# - pool-overview.json +# - radosgw-detail.json +# - radosgw-overview.json +# - rbd-overview.json #grafana_plugins: # - vonage-status-panel # - grafana-piechart-panel diff --git a/group_vars/rhcs.yml.sample b/group_vars/rhcs.yml.sample index e9929ad0f..0ab1e0d28 100644 --- a/group_vars/rhcs.yml.sample +++ b/group_vars/rhcs.yml.sample @@ -732,6 +732,19 @@ grafana_container_image: registry.redhat.io/openshift4/ose-grafana:v4.1 #grafana_uid: 472 #grafana_datasource: Dashboard #grafana_dashboards_path: "/etc/grafana/dashboards/ceph-dashboard" +#grafana_dashboard_version: nautilus +#grafana_dashboard_files: +# - ceph-cluster.json +# - cephfs-overview.json +# - host-details.json +# - hosts-overview.json +# - osd-device-details.json +# - osds-overview.json +# - pool-detail.json +# - pool-overview.json +# - radosgw-detail.json +# - radosgw-overview.json +# - rbd-overview.json #grafana_plugins: # - vonage-status-panel # - grafana-piechart-panel diff --git a/roles/ceph-defaults/defaults/main.yml b/roles/ceph-defaults/defaults/main.yml index 84a275720..b3839d927 100644 --- a/roles/ceph-defaults/defaults/main.yml +++ b/roles/ceph-defaults/defaults/main.yml @@ -724,6 +724,19 @@ grafana_container_memory: 4 grafana_uid: 472 grafana_datasource: Dashboard grafana_dashboards_path: "/etc/grafana/dashboards/ceph-dashboard" +grafana_dashboard_version: nautilus +grafana_dashboard_files: + - ceph-cluster.json + - cephfs-overview.json + - host-details.json + - hosts-overview.json + - osd-device-details.json + - osds-overview.json + - pool-detail.json + - pool-overview.json + - radosgw-detail.json + - radosgw-overview.json + - rbd-overview.json grafana_plugins: - vonage-status-panel - grafana-piechart-panel diff --git a/roles/ceph-grafana/tasks/configure_grafana.yml b/roles/ceph-grafana/tasks/configure_grafana.yml index 70963491c..ce1dabe11 100644 --- a/roles/ceph-grafana/tasks/configure_grafana.yml +++ b/roles/ceph-grafana/tasks/configure_grafana.yml @@ -34,6 +34,15 @@ - "/etc/grafana/provisioning/dashboards" - "/etc/grafana/provisioning/notifiers" +- name: download ceph grafana dashboards + get_url: + url: "https://raw.githubusercontent.com/ceph/ceph/{{ grafana_dashboard_version }}/monitoring/grafana/dashboards/{{ item }}" + dest: "/etc/grafana/dashboards/ceph-dashboard/{{ item }}" + with_items: "{{ grafana_dashboard_files }}" + when: + - not containerized_deployment | bool + - not ansible_os_family in ['RedHat', 'Suse'] + - name: write grafana.ini template: src: grafana.ini.j2 diff --git a/site.yml.sample b/site.yml.sample index 7bb8b103b..fbf534b5d 100644 --- a/site.yml.sample +++ b/site.yml.sample @@ -485,4 +485,3 @@ when: - dashboard_enabled | bool - groups.get(grafana_server_group_name, []) | length > 0 - - ansible_os_family in ['RedHat', 'Suse']