mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 18:08:53 +00:00
6e2c9014e7
Pre-aggregation cache implementation for numeric monitoring plugins. For the most of monitoring data some aggregations are going to be applied on the user side. To do analytics you rarely need to see all points on the graph. It means for such paths (unique keys for points subsets) particular points means not much. And to reduce a disk usage and a network traffic some pre-aggreagation could be applied on osquery side. This PR is implementation of such pre-aggreagtion. It based of PR #4626
26 lines
928 B
CMake
26 lines
928 B
CMake
# Copyright (c) 2014-present, Facebook, Inc.
|
|
# All rights reserved.
|
|
#
|
|
# This source code is licensed under both the Apache 2.0 license (found in the
|
|
# LICENSE file in the root directory of this source tree) and the GPLv2 (found
|
|
# in the COPYING file in the root directory of this source tree).
|
|
# You may select, at your option, one of the above-listed licenses.
|
|
|
|
target_sources(libosquery
|
|
PRIVATE
|
|
"${CMAKE_CURRENT_LIST_DIR}/numeric_monitoring.cpp"
|
|
"${CMAKE_CURRENT_LIST_DIR}/plugin_interface.cpp"
|
|
"${CMAKE_CURRENT_LIST_DIR}/pre_aggregation_cache.cpp"
|
|
)
|
|
|
|
ADD_OSQUERY_LIBRARY_ADDITIONAL(
|
|
osquery_numeric_monitoring_plugins
|
|
"${CMAKE_CURRENT_LIST_DIR}/plugins/filesystem.cpp"
|
|
)
|
|
|
|
ADD_OSQUERY_TEST_ADDITIONAL(
|
|
"${CMAKE_CURRENT_LIST_DIR}/plugins/tests/filesystem_tests.cpp"
|
|
"${CMAKE_CURRENT_LIST_DIR}/tests/numeric_monitoring_tests.cpp"
|
|
"${CMAKE_CURRENT_LIST_DIR}/tests/pre_aggregation_cache_tests.cpp"
|
|
)
|