]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
monitoring/prometheus: Add cmake integration
authorSebastian Wagner <sewagner@redhat.com>
Tue, 19 Oct 2021 10:34:11 +0000 (12:34 +0200)
committerAvan Thakkar <athakkar@redhat.com>
Thu, 6 Jan 2022 09:52:04 +0000 (15:22 +0530)
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
CMakeLists.txt
monitoring/CMakeLists.txt [new file with mode: 0644]
monitoring/prometheus/CMakeLists.txt [new file with mode: 0644]
monitoring/prometheus/tests/CMakeLists.txt [new file with mode: 0644]
monitoring/prometheus/tests/tox.ini

index 5253399df5c584c0044f041930a5679243dce175..12672dbccfe74a2cded7e7d032411bf243c2a48d 100644 (file)
@@ -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 (file)
index 0000000..7d0155c
--- /dev/null
@@ -0,0 +1 @@
+add_subdirectory(prometheus)
diff --git a/monitoring/prometheus/CMakeLists.txt b/monitoring/prometheus/CMakeLists.txt
new file mode 100644 (file)
index 0000000..88c0516
--- /dev/null
@@ -0,0 +1 @@
+add_subdirectory(tests)
diff --git a/monitoring/prometheus/tests/CMakeLists.txt b/monitoring/prometheus/tests/CMakeLists.txt
new file mode 100644 (file)
index 0000000..5a6a062
--- /dev/null
@@ -0,0 +1,4 @@
+if(WITH_TESTS)
+  include(AddCephTest)
+  add_tox_test(prometheus-alerts ${CMAKE_CURRENT_SOURCE_DIR} TOX_ENVS py3)
+endif()
index 8adde12f517583c15eb52caeca7332192bb86d5b..b96390160b70f80e26a9ce766d15810d0256b5ec 100644 (file)
@@ -1,5 +1,5 @@
 [tox]
-envlist = py36
+envlist = py3
 skipsdist = true
 
 [testenv]