dashboard: add grafana dashboard support on Debian based OS

download grafana dashboard files from github when running on Debian based OS

Signed-off-by: liuxu <liuxu623@gmail.com>
(cherry picked from commit 195f70897c)
pull/4482/head
liuxu 2019-09-26 20:47:01 +08:00 committed by Guillaume Abrioux
parent 7594bc9181
commit 1acd062f22
5 changed files with 48 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -485,4 +485,3 @@
when:
- dashboard_enabled | bool
- groups.get(grafana_server_group_name, []) | length > 0
- ansible_os_family in ['RedHat', 'Suse']