]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: Create ceph-grafana-dashboards package 24735/head
authorBoris Ranto <branto@redhat.com>
Wed, 24 Oct 2018 12:11:34 +0000 (14:11 +0200)
committerBoris Ranto <branto@redhat.com>
Thu, 25 Oct 2018 17:55:16 +0000 (19:55 +0200)
Signed-off-by: Boris Ranto <branto@redhat.com>
ceph.spec.in

index 70e8612de5736ff262b37112e6d71a1d81f91109..f06b3319ab4d84c6cb8077afa85a8ce5ee2caef0 100644 (file)
@@ -908,6 +908,19 @@ depending on python-ceph should be fixed to depend on python-rados,
 python-rbd, python-rgw or python-cephfs instead.
 %endif
 
+%package grafana-dashboards
+Summary:       The set of Grafana dashboards for monitoring purposes
+BuildArch:     noarch
+%if 0%{?suse_version}
+Group:         System/Filesystems
+%endif
+%description grafana-dashboards
+This package provides a set of Grafana dashboards for monitoring of
+Ceph clusters. The dashboards require a Prometheus server setup
+collecting data from Ceph Manager "prometheus" module and Prometheus
+project "node_exporter" module. The dashboards are designed to be
+integrated with the Ceph Manager Dashboard web UI.
+
 #################################################################################
 # common
 #################################################################################
@@ -1022,7 +1035,8 @@ ${CMAKE} .. \
 %else
     -DWITH_LIBRADOSSTRIPER=OFF \
 %endif
-    -DBOOST_J=$CEPH_SMP_NCPUS
+    -DBOOST_J=$CEPH_SMP_NCPUS \
+    -DWITH_GRAFANA=ON
 
 make "$CEPH_MFLAGS_JOBS"
 
@@ -1945,5 +1959,11 @@ exit 0
 # actually build this meta package.
 %endif
 
+%files grafana-dashboards
+%attr(0755,root,root) %dir %{_sysconfdir}/grafana/dashboards/ceph-dashboard
+%config %{_sysconfdir}/grafana/dashboards/ceph-dashboard/*
+%doc monitoring/grafana/dashboards/README
+%doc monitoring/grafana/README.md
+
 
 %changelog