debian: add ceph-grafana-dashboards package

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2020-03-20 11:36:10 -05:00
parent f1b516d1bf
commit 01015f8ca3
4 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1 @@
etc/grafana/dashboards/ceph-dashboard/*

1
debian/ceph-prometheus-alerts.install vendored Normal file
View File

@ -0,0 +1 @@
etc/prometheus/ceph/ceph_default_alerts.yml

20
debian/control vendored
View File

@ -1152,3 +1152,23 @@ Description: interactive shell for the Ceph distributed file system
a nice pseudo-shell which works like an FTP client. a nice pseudo-shell which works like an FTP client.
. .
This package contains a CLI for interacting with the CephFS. 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.

3
debian/rules vendored
View File

@ -23,6 +23,7 @@ extraopts += -DWITH_PYTHON3=3
extraopts += -DWITH_CEPHFS_JAVA=ON extraopts += -DWITH_CEPHFS_JAVA=ON
extraopts += -DWITH_CEPHFS_SHELL=ON extraopts += -DWITH_CEPHFS_SHELL=ON
extraopts += -DWITH_SYSTEMD=ON -DCEPH_SYSTEMD_ENV_DIR=/etc/default 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. # assumes that ceph is exmpt from multiarch support, so we override the libdir.
extraopts += -DCMAKE_INSTALL_LIBDIR=/usr/lib extraopts += -DCMAKE_INSTALL_LIBDIR=/usr/lib
extraopts += -DCMAKE_INSTALL_LIBEXECDIR=/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 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 # doc/changelog is a directory, which confuses dh_installchangelogs
override_dh_installchangelogs: override_dh_installchangelogs:
dh_installchangelogs --exclude doc/changelog dh_installchangelogs --exclude doc/changelog