From: Sebastian Wagner Date: Tue, 19 Oct 2021 10:34:11 +0000 (+0200) Subject: monitoring/prometheus: Add cmake integration X-Git-Tag: v17.1.0~574^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b830c555d2d85e1d91ee58b4d067e622bc807610;p=ceph.git monitoring/prometheus: Add cmake integration Signed-off-by: Sebastian Wagner --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 0350131765570..5406669eda081 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -668,6 +668,7 @@ option(WITH_SYSTEMD "build with systemd support" ON) add_subdirectory(src) add_subdirectory(qa) +add_subdirectory(monitoring) add_subdirectory(doc) if(WITH_MANPAGE) diff --git a/monitoring/CMakeLists.txt b/monitoring/CMakeLists.txt new file mode 100644 index 0000000000000..7d0155c5f13e9 --- /dev/null +++ b/monitoring/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(prometheus) diff --git a/monitoring/prometheus/CMakeLists.txt b/monitoring/prometheus/CMakeLists.txt new file mode 100644 index 0000000000000..88c05163602af --- /dev/null +++ b/monitoring/prometheus/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(tests) diff --git a/monitoring/prometheus/tests/CMakeLists.txt b/monitoring/prometheus/tests/CMakeLists.txt new file mode 100644 index 0000000000000..5a6a062a13306 --- /dev/null +++ b/monitoring/prometheus/tests/CMakeLists.txt @@ -0,0 +1,4 @@ +if(WITH_TESTS) + include(AddCephTest) + add_tox_test(prometheus-alerts ${CMAKE_CURRENT_SOURCE_DIR} TOX_ENVS py3) +endif() diff --git a/monitoring/prometheus/tests/tox.ini b/monitoring/prometheus/tests/tox.ini index 8adde12f51758..b96390160b70f 100644 --- a/monitoring/prometheus/tests/tox.ini +++ b/monitoring/prometheus/tests/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py36 +envlist = py3 skipsdist = true [testenv]