diff --git a/ceph.spec.in b/ceph.spec.in index 8c49f620450..2d0b647c285 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -718,6 +718,14 @@ storage system. This package provides a REST gateway to the object store that aims to implement a superset of Amazon's S3 service as well as the OpenStack Object Storage ("Swift") API. +%package -n cephfs-top +Summary: top(1) like utility for Ceph Filesystem +BuildArch: noarch +Requires: python%{python3_pkgversion}-rados +%description -n cephfs-top +This package provides a top(1) like utility to display Ceph Filesystem metrics +in realtime. + %if %{with ocf} %package resource-agents Summary: OCF-compliant resource agents for Ceph daemons @@ -2175,6 +2183,11 @@ fi %{_bindir}/cephfs-shell %endif +%files -n cephfs-top +%{python3_sitelib}/cephfs_top-*.egg-info +%{_bindir}/cephfs-top +%{_mandir}/man8/cephfs-top.8* + %if 0%{with ceph_test_package} %files -n ceph-test %{_bindir}/ceph-client-debug diff --git a/debian/cephfs-top.install b/debian/cephfs-top.install new file mode 100644 index 00000000000..930396b0c68 --- /dev/null +++ b/debian/cephfs-top.install @@ -0,0 +1,2 @@ +usr/bin/cephfs-top +usr/lib/python3*/dist-packages/cephfs_top-*.egg-info diff --git a/debian/control b/debian/control index 8cd37afdfe9..d962b523a9d 100644 --- a/debian/control +++ b/debian/control @@ -1184,6 +1184,15 @@ Description: interactive shell for the Ceph distributed file system . This package contains a CLI for interacting with the CephFS. +Package: cephfs-top +Architecture: all +Depends: ${misc:Depends} + ${python3:Depends} +Description: This package provides a top(1) like utility to display various + filesystem metrics in realtime. + . + This package contains utility for displaying filesystem metrics. + Package: ceph-grafana-dashboards Architecture: all Description: grafana dashboards for the ceph dashboard diff --git a/debian/rules b/debian/rules index 8538cdeff5c..f8e00154966 100755 --- a/debian/rules +++ b/debian/rules @@ -126,6 +126,7 @@ override_dh_python3: dh_python3 -p python3-ceph-argparse dh_python3 -p python3-ceph-common dh_python3 -p cephfs-shell + dh_python3 -p cephfs-top dh_python3 -p cephadm # do not run tests diff --git a/src/tools/cephfs/CMakeLists.txt b/src/tools/cephfs/CMakeLists.txt index ae7d4d7492e..7449e3704b0 100644 --- a/src/tools/cephfs/CMakeLists.txt +++ b/src/tools/cephfs/CMakeLists.txt @@ -56,3 +56,8 @@ if(WITH_CEPHFS_SHELL) add_tox_test(cephfs-shell) endif() endif() + +option(WITH_CEPHFS_TOP "install cephfs-top utility" ON) +if(WITH_CEPHFS_TOP) + add_subdirectory(top) +endif()