From: Sebastian Wagner Date: Tue, 19 Oct 2021 10:34:11 +0000 (+0200) Subject: monitoring/prometheus: Add cmake integration X-Git-Tag: v16.2.8~246^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=12a28f1462de19d21228e8a9514c4637b1f53567;p=ceph.git monitoring/prometheus: Add cmake integration Signed-off-by: Sebastian Wagner --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 5253399df5c5..12672dbccfe7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -685,6 +685,7 @@ add_custom_target(check 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 000000000000..7d0155c5f13e --- /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 000000000000..88c05163602a --- /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 000000000000..5a6a062a1330 --- /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 8adde12f5175..b96390160b70 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]