]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
debian: add ceph-grafana-dashboards package 34155/head
authorSage Weil <sage@redhat.com>
Fri, 20 Mar 2020 16:36:10 +0000 (11:36 -0500)
committerSage Weil <sage@redhat.com>
Tue, 24 Mar 2020 20:38:19 +0000 (15:38 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 01015f8ca320e2eab089741e5a8871a4d78c2fc2)

debian/ceph-grafana-dashboards.install [new file with mode: 0644]
debian/ceph-prometheus-alerts.install [new file with mode: 0644]
debian/control
debian/rules

diff --git a/debian/ceph-grafana-dashboards.install b/debian/ceph-grafana-dashboards.install
new file mode 100644 (file)
index 0000000..6639e56
--- /dev/null
@@ -0,0 +1 @@
+etc/grafana/dashboards/ceph-dashboard/*
diff --git a/debian/ceph-prometheus-alerts.install b/debian/ceph-prometheus-alerts.install
new file mode 100644 (file)
index 0000000..13b6fc4
--- /dev/null
@@ -0,0 +1 @@
+etc/prometheus/ceph/ceph_default_alerts.yml
index 671d7cb4e710725f0c3d064b62641823903e9da3..d98b16111a45ea9bee767e27c813efd21f1fef87 100644 (file)
@@ -1152,3 +1152,23 @@ Description: interactive shell for the Ceph distributed file system
  a nice pseudo-shell which works like an FTP client.
  .
  This package contains a CLI for interacting with the CephFS.
+
+Package: ceph-grafana-dashboards
+Architecture: all
+Description: grafana dashboards for the ceph dashboard
+ Ceph is a massively scalable, open-source, distributed
+ storage system that runs on commodity hardware and delivers object,
+ block and file system storage.
+ .
+ This package contains Grafana dashboards that are used by the Ceph Dashboard
+ for monitoring.
+
+Package: ceph-prometheus-alerts
+Architecture: all
+Description: prometheus alerts for the ceph dashboard
+ Ceph is a massively scalable, open-source, distributed
+ storage system that runs on commodity hardware and delivers object,
+ block and file system storage.
+ .
+ This package contains alerts used for prometheus to interact with the
+ Ceph Dashboard.
index 84529306bf0da33b6151995ffd825e67b8ac9980..8f2e9afa43d6035383b2a868b567b7c91da82222 100755 (executable)
@@ -23,6 +23,7 @@ extraopts += -DWITH_PYTHON3=3
 extraopts += -DWITH_CEPHFS_JAVA=ON
 extraopts += -DWITH_CEPHFS_SHELL=ON
 extraopts += -DWITH_SYSTEMD=ON -DCEPH_SYSTEMD_ENV_DIR=/etc/default
+extraopts += -DWITH_GRAFANA=ON
 # assumes that ceph is exmpt from multiarch support, so we override the libdir.
 extraopts += -DCMAKE_INSTALL_LIBDIR=/usr/lib
 extraopts += -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib
@@ -65,6 +66,8 @@ override_dh_auto_install:
 
        install -m 755 src/cephadm/cephadm $(DESTDIR)/usr/sbin/cephadm
 
+       install -m 644 -D monitoring/prometheus/alerts/ceph_default_alerts.yml $(DESTDIR)/etc/prometheus/ceph/ceph_default_alerts.yml
+
 # doc/changelog is a directory, which confuses dh_installchangelogs
 override_dh_installchangelogs:
        dh_installchangelogs --exclude doc/changelog