diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 15:49:59 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 15:49:59 +0300 |
commit | b4cb34dfb2619f594d82e512fd9ff7fc97400133 (patch) | |
tree | 6a64ab25a145265287789bceed3f59e953561206 /library/cpp/monlib | |
parent | 5e837a820d5be0671fa4096a1cc1e378453e5132 (diff) | |
download | ydb-b4cb34dfb2619f594d82e512fd9ff7fc97400133.tar.gz |
intermediate changes
ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
Diffstat (limited to 'library/cpp/monlib')
-rw-r--r-- | library/cpp/monlib/deprecated/json/CMakeLists.txt | 9 | ||||
-rw-r--r-- | library/cpp/monlib/dynamic_counters/CMakeLists.txt | 18 | ||||
-rw-r--r-- | library/cpp/monlib/dynamic_counters/percentile/CMakeLists.txt | 7 | ||||
-rw-r--r-- | library/cpp/monlib/encode/CMakeLists.txt | 19 | ||||
-rw-r--r-- | library/cpp/monlib/encode/buffered/CMakeLists.txt | 11 | ||||
-rw-r--r-- | library/cpp/monlib/encode/json/CMakeLists.txt | 14 | ||||
-rw-r--r-- | library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.txt | 13 | ||||
-rw-r--r-- | library/cpp/monlib/encode/prometheus/CMakeLists.txt | 10 | ||||
-rw-r--r-- | library/cpp/monlib/encode/spack/CMakeLists.txt | 19 | ||||
-rw-r--r-- | library/cpp/monlib/encode/text/CMakeLists.txt | 9 | ||||
-rw-r--r-- | library/cpp/monlib/exception/CMakeLists.txt | 8 | ||||
-rw-r--r-- | library/cpp/monlib/messagebus/CMakeLists.txt | 12 | ||||
-rw-r--r-- | library/cpp/monlib/metrics/CMakeLists.txt | 28 | ||||
-rw-r--r-- | library/cpp/monlib/service/CMakeLists.txt | 24 | ||||
-rw-r--r-- | library/cpp/monlib/service/pages/CMakeLists.txt | 25 | ||||
-rw-r--r-- | library/cpp/monlib/service/pages/tablesorter/CMakeLists.txt | 21 |
16 files changed, 247 insertions, 0 deletions
diff --git a/library/cpp/monlib/deprecated/json/CMakeLists.txt b/library/cpp/monlib/deprecated/json/CMakeLists.txt new file mode 100644 index 0000000000..ca447c15af --- /dev/null +++ b/library/cpp/monlib/deprecated/json/CMakeLists.txt @@ -0,0 +1,9 @@ +add_library(monlib-deprecated-json) +target_link_libraries(monlib-deprecated-json PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-json +) +target_sources(monlib-deprecated-json PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/deprecated/json/writer.cpp +) diff --git a/library/cpp/monlib/dynamic_counters/CMakeLists.txt b/library/cpp/monlib/dynamic_counters/CMakeLists.txt new file mode 100644 index 0000000000..9dda29aaf9 --- /dev/null +++ b/library/cpp/monlib/dynamic_counters/CMakeLists.txt @@ -0,0 +1,18 @@ +add_library(cpp-monlib-dynamic_counters) +target_link_libraries(cpp-monlib-dynamic_counters PUBLIC + contrib-libs-cxxsupp + yutil + cpp-containers-stack_vector + monlib-encode-json + monlib-encode-spack + monlib-encode-prometheus + monlib-service-pages + cpp-string_utils-quote + cpp-threading-light_rw_lock +) +target_sources(cpp-monlib-dynamic_counters PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/dynamic_counters/counters.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/dynamic_counters/encode.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/dynamic_counters/golovan_page.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/dynamic_counters/page.cpp +) diff --git a/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.txt b/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.txt new file mode 100644 index 0000000000..4873cc0375 --- /dev/null +++ b/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.txt @@ -0,0 +1,7 @@ +add_library(monlib-dynamic_counters-percentile INTERFACE) +target_link_libraries(monlib-dynamic_counters-percentile INTERFACE + contrib-libs-cxxsupp + yutil + cpp-containers-stack_vector + cpp-monlib-dynamic_counters +) diff --git a/library/cpp/monlib/encode/CMakeLists.txt b/library/cpp/monlib/encode/CMakeLists.txt new file mode 100644 index 0000000000..884750fd75 --- /dev/null +++ b/library/cpp/monlib/encode/CMakeLists.txt @@ -0,0 +1,19 @@ +add_library(cpp-monlib-encode) +target_link_libraries(cpp-monlib-encode PUBLIC + contrib-libs-cxxsupp + yutil + cpp-monlib-metrics + tools-enum_parser-enum_serialization_runtime +) +target_sources(cpp-monlib-encode PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/encoder.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/encoder_state.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/format.cpp +) +generate_enum_serilization(cpp-monlib-encode + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/encoder_state_enum.h + GEN_HEADER + ${CMAKE_BINARY_DIR}/library/cpp/monlib/encode/encoder_state_enum.h_serialized.h + INCLUDE_HEADERS + library/cpp/monlib/encode/encoder_state_enum.h +) diff --git a/library/cpp/monlib/encode/buffered/CMakeLists.txt b/library/cpp/monlib/encode/buffered/CMakeLists.txt new file mode 100644 index 0000000000..3cf47f8183 --- /dev/null +++ b/library/cpp/monlib/encode/buffered/CMakeLists.txt @@ -0,0 +1,11 @@ +add_library(monlib-encode-buffered) +target_link_libraries(monlib-encode-buffered PUBLIC + contrib-libs-cxxsupp + yutil + cpp-monlib-encode + cpp-monlib-metrics +) +target_sources(monlib-encode-buffered PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/buffered/buffered_encoder_base.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/buffered/string_pool.cpp +) diff --git a/library/cpp/monlib/encode/json/CMakeLists.txt b/library/cpp/monlib/encode/json/CMakeLists.txt new file mode 100644 index 0000000000..697e424fdd --- /dev/null +++ b/library/cpp/monlib/encode/json/CMakeLists.txt @@ -0,0 +1,14 @@ +add_library(monlib-encode-json) +target_link_libraries(monlib-encode-json PUBLIC + contrib-libs-cxxsupp + yutil + cpp-monlib-encode + monlib-encode-buffered + cpp-monlib-exception + library-cpp-json + cpp-json-writer +) +target_sources(monlib-encode-json PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/json/json_decoder.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/json/json_encoder.cpp +) diff --git a/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.txt b/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.txt new file mode 100644 index 0000000000..ea9bd6c6d9 --- /dev/null +++ b/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.txt @@ -0,0 +1,13 @@ +add_library(encode-legacy_protobuf-protos) +target_link_libraries(encode-legacy_protobuf-protos PUBLIC + contrib-libs-cxxsupp + yutil + contrib-libs-protobuf +) +target_proto_messages(encode-legacy_protobuf-protos PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/legacy_protobuf/protos/metric_meta.proto +) +target_proto_plugin(encode-legacy_protobuf-protos + cpp_styleguide + cpp_styleguide +) diff --git a/library/cpp/monlib/encode/prometheus/CMakeLists.txt b/library/cpp/monlib/encode/prometheus/CMakeLists.txt new file mode 100644 index 0000000000..49b3891bf5 --- /dev/null +++ b/library/cpp/monlib/encode/prometheus/CMakeLists.txt @@ -0,0 +1,10 @@ +add_library(monlib-encode-prometheus) +target_link_libraries(monlib-encode-prometheus PUBLIC + contrib-libs-cxxsupp + yutil + cpp-monlib-encode +) +target_sources(monlib-encode-prometheus PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/prometheus/prometheus_encoder.cpp +) diff --git a/library/cpp/monlib/encode/spack/CMakeLists.txt b/library/cpp/monlib/encode/spack/CMakeLists.txt new file mode 100644 index 0000000000..e6372ee651 --- /dev/null +++ b/library/cpp/monlib/encode/spack/CMakeLists.txt @@ -0,0 +1,19 @@ +find_package(ZLIB) + +add_library(monlib-encode-spack) +target_link_libraries(monlib-encode-spack PUBLIC + contrib-libs-cxxsupp + yutil + monlib-encode-buffered + cpp-monlib-exception + contrib-libs-lz4 + contrib-libs-xxhash + ZLIB::ZLIB + contrib-libs-zstd +) +target_sources(monlib-encode-spack PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/spack/spack_v1_decoder.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/spack/spack_v1_encoder.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/spack/varint.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/spack/compression.cpp +) diff --git a/library/cpp/monlib/encode/text/CMakeLists.txt b/library/cpp/monlib/encode/text/CMakeLists.txt new file mode 100644 index 0000000000..f398d37526 --- /dev/null +++ b/library/cpp/monlib/encode/text/CMakeLists.txt @@ -0,0 +1,9 @@ +add_library(monlib-encode-text) +target_link_libraries(monlib-encode-text PUBLIC + contrib-libs-cxxsupp + yutil + cpp-monlib-encode +) +target_sources(monlib-encode-text PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/text/text_encoder.cpp +) diff --git a/library/cpp/monlib/exception/CMakeLists.txt b/library/cpp/monlib/exception/CMakeLists.txt new file mode 100644 index 0000000000..1341623a51 --- /dev/null +++ b/library/cpp/monlib/exception/CMakeLists.txt @@ -0,0 +1,8 @@ +add_library(cpp-monlib-exception) +target_link_libraries(cpp-monlib-exception PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-monlib-exception PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/exception/exception.cpp +) diff --git a/library/cpp/monlib/messagebus/CMakeLists.txt b/library/cpp/monlib/messagebus/CMakeLists.txt new file mode 100644 index 0000000000..73e9ab88aa --- /dev/null +++ b/library/cpp/monlib/messagebus/CMakeLists.txt @@ -0,0 +1,12 @@ +add_library(cpp-monlib-messagebus) +target_link_libraries(cpp-monlib-messagebus PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-messagebus + cpp-messagebus-www + cpp-monlib-dynamic_counters +) +target_sources(cpp-monlib-messagebus PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/messagebus/mon_messagebus.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/messagebus/mon_service_messagebus.cpp +) diff --git a/library/cpp/monlib/metrics/CMakeLists.txt b/library/cpp/monlib/metrics/CMakeLists.txt new file mode 100644 index 0000000000..0f8487d84a --- /dev/null +++ b/library/cpp/monlib/metrics/CMakeLists.txt @@ -0,0 +1,28 @@ +add_library(cpp-monlib-metrics) +target_link_libraries(cpp-monlib-metrics PUBLIC + contrib-libs-cxxsupp + yutil + tools-enum_parser-enum_serialization_runtime +) +target_sources(cpp-monlib-metrics PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/ewma.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/fake.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/histogram_collector_explicit.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/histogram_collector_exponential.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/histogram_collector_linear.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/histogram_snapshot.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/log_histogram_snapshot.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/labels.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/metric_registry.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/metric_consumer.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/metric_type.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/metric_value.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/summary_snapshot.cpp +) +generate_enum_serilization(cpp-monlib-metrics + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/metric_value_type.h + GEN_HEADER + ${CMAKE_BINARY_DIR}/library/cpp/monlib/metrics/metric_value_type.h_serialized.h + INCLUDE_HEADERS + library/cpp/monlib/metrics/metric_value_type.h +) diff --git a/library/cpp/monlib/service/CMakeLists.txt b/library/cpp/monlib/service/CMakeLists.txt new file mode 100644 index 0000000000..cebd936de9 --- /dev/null +++ b/library/cpp/monlib/service/CMakeLists.txt @@ -0,0 +1,24 @@ +add_library(cpp-monlib-service) +target_link_libraries(cpp-monlib-service PUBLIC + contrib-libs-cxxsupp + yutil + cpp-string_utils-base64 + contrib-libs-protobuf + cpp-coroutine-engine + cpp-coroutine-listener + cpp-http-fetch + cpp-http-server + cpp-http-io + library-cpp-logger + cpp-malloc-api + library-cpp-svnversion + library-cpp-uri + library-cpp-cgiparam +) +target_sources(cpp-monlib-service PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/monservice.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/mon_service_http_request.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/service.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/format.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/auth.cpp +) diff --git a/library/cpp/monlib/service/pages/CMakeLists.txt b/library/cpp/monlib/service/pages/CMakeLists.txt new file mode 100644 index 0000000000..8cc4b77a2b --- /dev/null +++ b/library/cpp/monlib/service/pages/CMakeLists.txt @@ -0,0 +1,25 @@ +add_library(monlib-service-pages) +target_link_libraries(monlib-service-pages PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-build_info + cpp-malloc-api + library-cpp-svnversion + library-cpp-resource + cpp-monlib-service + monlib-encode-json + monlib-encode-text + monlib-encode-spack + monlib-encode-prometheus +) +target_sources(monlib-service-pages PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/diag_mon_page.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/html_mon_page.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/index_mon_page.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/mon_page.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/pre_mon_page.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/resource_mon_page.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/templates.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/version_mon_page.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/registry_mon_page.cpp +) diff --git a/library/cpp/monlib/service/pages/tablesorter/CMakeLists.txt b/library/cpp/monlib/service/pages/tablesorter/CMakeLists.txt new file mode 100644 index 0000000000..c600e277c4 --- /dev/null +++ b/library/cpp/monlib/service/pages/tablesorter/CMakeLists.txt @@ -0,0 +1,21 @@ +add_library(service-pages-tablesorter INTERFACE) +target_link_libraries(service-pages-tablesorter INTERFACE + contrib-libs-cxxsupp + yutil + library-cpp-resource + cpp-monlib-dynamic_counters +) + +add_global_library_for(service-pages-tablesorter.global service-pages-tablesorter) +target_sources(service-pages-tablesorter.global PRIVATE + ${CMAKE_BINARY_DIR}/library/cpp/monlib/service/pages/tablesorter/0c255888afcc3e2adc5fd360ee152bac.cpp +) +resources(service-pages-tablesorter.global + ${CMAKE_BINARY_DIR}/library/cpp/monlib/service/pages/tablesorter/0c255888afcc3e2adc5fd360ee152bac.cpp + INPUTS + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/tablesorter/resources/jquery.tablesorter.css + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/tablesorter/resources/jquery.tablesorter.js + KEYS + jquery.tablesorter.css + jquery.tablesorter.js +) |