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>pull/4339/head
parent
9bb11c7b2a
commit
195f70897c
|
@ -734,6 +734,19 @@ dummy:
|
||||||
#grafana_uid: 472
|
#grafana_uid: 472
|
||||||
#grafana_datasource: Dashboard
|
#grafana_datasource: Dashboard
|
||||||
#grafana_dashboards_path: "/etc/grafana/dashboards/ceph-dashboard"
|
#grafana_dashboards_path: "/etc/grafana/dashboards/ceph-dashboard"
|
||||||
|
#grafana_dashboard_version: master
|
||||||
|
#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:
|
#grafana_plugins:
|
||||||
# - vonage-status-panel
|
# - vonage-status-panel
|
||||||
# - grafana-piechart-panel
|
# - grafana-piechart-panel
|
||||||
|
|
|
@ -734,6 +734,19 @@ grafana_container_image: registry.redhat.io/openshift4/ose-grafana:v4.1
|
||||||
#grafana_uid: 472
|
#grafana_uid: 472
|
||||||
#grafana_datasource: Dashboard
|
#grafana_datasource: Dashboard
|
||||||
#grafana_dashboards_path: "/etc/grafana/dashboards/ceph-dashboard"
|
#grafana_dashboards_path: "/etc/grafana/dashboards/ceph-dashboard"
|
||||||
|
#grafana_dashboard_version: master
|
||||||
|
#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:
|
#grafana_plugins:
|
||||||
# - vonage-status-panel
|
# - vonage-status-panel
|
||||||
# - grafana-piechart-panel
|
# - grafana-piechart-panel
|
||||||
|
|
|
@ -726,6 +726,19 @@ grafana_container_memory: 4
|
||||||
grafana_uid: 472
|
grafana_uid: 472
|
||||||
grafana_datasource: Dashboard
|
grafana_datasource: Dashboard
|
||||||
grafana_dashboards_path: "/etc/grafana/dashboards/ceph-dashboard"
|
grafana_dashboards_path: "/etc/grafana/dashboards/ceph-dashboard"
|
||||||
|
grafana_dashboard_version: master
|
||||||
|
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:
|
grafana_plugins:
|
||||||
- vonage-status-panel
|
- vonage-status-panel
|
||||||
- grafana-piechart-panel
|
- grafana-piechart-panel
|
||||||
|
|
|
@ -34,6 +34,15 @@
|
||||||
- "/etc/grafana/provisioning/dashboards"
|
- "/etc/grafana/provisioning/dashboards"
|
||||||
- "/etc/grafana/provisioning/notifiers"
|
- "/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
|
- name: write grafana.ini
|
||||||
template:
|
template:
|
||||||
src: grafana.ini.j2
|
src: grafana.ini.j2
|
||||||
|
|
|
@ -485,4 +485,3 @@
|
||||||
when:
|
when:
|
||||||
- dashboard_enabled | bool
|
- dashboard_enabled | bool
|
||||||
- groups.get(grafana_server_group_name, []) | length > 0
|
- groups.get(grafana_server_group_name, []) | length > 0
|
||||||
- ansible_os_family in ['RedHat', 'Suse']
|
|
||||||
|
|
Loading…
Reference in New Issue