| {%- from "ceph/map.jinja" import common with context -%} |
| |
| {%- if common.version is defined %} |
| dashboard: |
| {%- if common.version in ['kraken', 'jewel'] or common.get('legacy_monitoring',False) %} |
| ceph_cluster_prometheus: |
| datasource: prometheus |
| format: json |
| template: ceph/files/grafana_dashboards/legacy/ceph_cluster_prometheus.json |
| ceph_osd_prometheus: |
| datasource: prometheus |
| format: json |
| template: ceph/files/grafana_dashboards/legacy/ceph_osd_prometheus.json |
| ceph_pools_prometheus: |
| datasource: prometheus |
| format: json |
| template: ceph/files/grafana_dashboards/legacy/ceph_pools_prometheus.json |
| {%- else %} |
| ceph_cluster_prometheus: |
| datasource: prometheus |
| format: json |
| template: ceph/files/grafana_dashboards/{{ common.version }}-ceph-cluster_prometheus.json |
| ceph_osd_prometheus: |
| datasource: prometheus |
| format: json |
| template: ceph/files/grafana_dashboards/{{ common.version }}-osds-overview_prometheus.json |
| ceph_osd_details_prometheus: |
| datasource: prometheus |
| format: json |
| template: ceph/files/grafana_dashboards/{{ common.version }}-osds-detail_prometheus.json |
| ceph_pools_overview_prometheus: |
| datasource: prometheus |
| format: json |
| template: ceph/files/grafana_dashboards/{{ common.version }}-pool-overview_prometheus.json |
| ceph_pools_details_prometheus: |
| datasource: prometheus |
| format: json |
| template: ceph/files/grafana_dashboards/{{ common.version }}-pool-details_prometheus.json |
| ceph_hosts_overview_prometheus: |
| datasource: prometheus |
| format: json |
| template: ceph/files/grafana_dashboards/{{ common.version }}-hosts-overview_prometheus.json |
| ceph_radosgw_overview_prometheus: |
| datasource: prometheus |
| format: json |
| template: ceph/files/grafana_dashboards/{{ common.version }}-radosgw-overview_prometheus.json |
| ceph_radosgw_detail_prometheus: |
| datasource: prometheus |
| format: json |
| template: ceph/files/grafana_dashboards/{{ common.version }}-radosgw-detail_prometheus.json |
| {%- if common.version in ['nautilus']%} |
| ceph_rbd_overview_prometheus: |
| datasource: prometheus |
| format: json |
| template: ceph/files/grafana_dashboards/nautilus-rbd-overview_prometheus.json |
| {%- endif %} |
| {%- endif %} |
| {%- endif %} |