]> 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)
committerPaul Cuzner <pcuzner@redhat.com>
Fri, 22 Oct 2021 00:37:31 +0000 (13:37 +1300)
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 0350131765570f963270691cc4d0bb9443b95366..5406669eda0817990017cca4a898aee4a296589f 100644 (file)
@@ -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 (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]