mirror of https://github.com/ceph/ceph-ansible.git
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
parent
7594bc9181
commit
1acd062f22
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -485,4 +485,3 @@
|
|||
when:
|
||||
- dashboard_enabled | bool
|
||||
- groups.get(grafana_server_group_name, []) | length > 0
|
||||
- ansible_os_family in ['RedHat', 'Suse']
|
||||
|
|
Loading…
Reference in New Issue