From: Avan Thakkar Date: Mon, 1 Aug 2022 06:50:53 +0000 (+0530) Subject: exporter: per node metric exporter X-Git-Tag: v18.0.0~346^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d7226fcc454a96b664a7f567b4bf04338ac7ccf2;p=ceph.git exporter: per node metric exporter Fixes: https://tracker.ceph.com/issues/55046 Signed-off-by: Pere Diaz Bou Signed-off-by: Avan Thakkar --- diff --git a/ceph.spec.in b/ceph.spec.in index 136b033b267e..ff92857b5e8f 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -736,6 +736,15 @@ Requires: libcephfs2 = %{_epoch_prefix}%{version}-%{release} %description -n cephfs-mirror Daemon for mirroring CephFS snapshots between Ceph clusters. +%package -n ceph-exporter +Summary: Daemon for exposing perf counters as Prometheus metrics +%if 0%{?suse_version} +Group: System/Filesystems +%endif +Requires: ceph-base = %{_epoch_prefix}%{version}-%{release} +%description -n ceph-exporter +Daemon for exposing perf counters as Prometheus metrics + %package -n rbd-fuse Summary: Ceph fuse-based client %if 0%{?suse_version} @@ -1998,6 +2007,9 @@ if [ $1 -ge 1 ] ; then fi fi +%files -n ceph-exporter +%{_bindir}/ceph-exporter + %files -n rbd-fuse %{_bindir}/rbd-fuse %{_mandir}/man8/rbd-fuse.8* diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 807386fa6d9b..723ed439fd2e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -606,6 +606,7 @@ endif(NOT WITH_SYSTEM_ROCKSDB) if(WITH_MGR) add_subdirectory(mgr) + add_subdirectory(exporter) endif() set(librados_config_srcs @@ -903,6 +904,7 @@ add_custom_target(vstart-base DEPENDS ceph-mon ceph-authtool ceph-conf + ceph-exporter monmaptool crushtool rados) @@ -915,6 +917,7 @@ endif() if (WITH_MGR) add_dependencies(vstart-base ceph-mgr) + add_dependencies(vstart-base ceph-exporter) endif() add_custom_target(vstart DEPENDS vstart-base) diff --git a/src/common/options/CMakeLists.txt b/src/common/options/CMakeLists.txt index d2104a0dad26..da24c673f6b3 100644 --- a/src/common/options/CMakeLists.txt +++ b/src/common/options/CMakeLists.txt @@ -93,6 +93,7 @@ add_options(osd) add_options(rbd) add_options(rbd-mirror) add_options(immutable-object-cache) +add_options(ceph-exporter) # if set to empty string, system default luarocks package location (if exist) will be used set(rgw_luarocks_location "") diff --git a/src/common/options/build_options.cc b/src/common/options/build_options.cc index 001fac90287c..867fc2efd7e1 100644 --- a/src/common/options/build_options.cc +++ b/src/common/options/build_options.cc @@ -18,6 +18,7 @@ std::vector