From fd3a4147c545b6943cb4cb4977eab7fe1798411a Mon Sep 17 00:00:00 2001 From: Avan Thakkar Date: Mon, 9 May 2022 17:42:44 +0530 Subject: [PATCH] expoter: add configs Signed-off-by: Avan Thakkar --- src/common/options/CMakeLists.txt | 1 + src/common/options/build_options.cc | 2 + src/common/options/ceph-exporter.yaml.in | 39 +++++++++++++++ src/exporter/DaemonMetricCollector.cc | 15 +++--- src/exporter/DaemonMetricCollector.h | 3 +- src/exporter/ceph_exporter.cc | 61 +++++++++++++++--------- src/exporter/http_server.cc | 26 +++------- src/exporter/http_server.h | 2 +- 8 files changed, 100 insertions(+), 49 deletions(-) create mode 100644 src/common/options/ceph-exporter.yaml.in diff --git a/src/common/options/CMakeLists.txt b/src/common/options/CMakeLists.txt index d2104a0dad267..da24c673f6b37 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 001fac90287c0..867fc2efd7e1b 100644 --- a/src/common/options/build_options.cc +++ b/src/common/options/build_options.cc @@ -18,6 +18,7 @@ std::vector