From 01015f8ca320e2eab089741e5a8871a4d78c2fc2 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 20 Mar 2020 11:36:10 -0500 Subject: [PATCH] debian: add ceph-grafana-dashboards package Signed-off-by: Sage Weil --- debian/ceph-grafana-dashboards.install | 1 + debian/ceph-prometheus-alerts.install | 1 + debian/control | 20 ++++++++++++++++++++ debian/rules | 3 +++ 4 files changed, 25 insertions(+) create mode 100644 debian/ceph-grafana-dashboards.install create mode 100644 debian/ceph-prometheus-alerts.install diff --git a/debian/ceph-grafana-dashboards.install b/debian/ceph-grafana-dashboards.install new file mode 100644 index 00000000000..6639e569562 --- /dev/null +++ b/debian/ceph-grafana-dashboards.install @@ -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 index 00000000000..13b6fc46b76 --- /dev/null +++ b/debian/ceph-prometheus-alerts.install @@ -0,0 +1 @@ +etc/prometheus/ceph/ceph_default_alerts.yml diff --git a/debian/control b/debian/control index 671d7cb4e71..d98b16111a4 100644 --- a/debian/control +++ b/debian/control @@ -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. diff --git a/debian/rules b/debian/rules index 84529306bf0..8f2e9afa43d 100755 --- a/debian/rules +++ b/debian/rules @@ -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