Skip to content

Commit

Permalink
Add S3 metrics collection and reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
athmaja-n committed Aug 14, 2024
1 parent 17473f4 commit 7798570
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
7 changes: 3 additions & 4 deletions velox/common/base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ add_library(
StatsReporter.cpp
SuccinctPrinter.cpp)

# Link the newly created velox_s3_metrics_aggregator library
target_link_libraries(
velox_common_base
#PUBLIC velox_exception Folly::folly fmt::fmt xsimd
#PRIVATE velox_common_compression velox_process velox_test_util glog::glog)
PUBLIC velox_exception velox_s3fs Folly::folly fmt::fmt xsimd
PRIVATE velox_common_compression velox_process velox_test_util glog::glog)
PUBLIC velox_exception Folly::folly fmt::fmt xsimd
PRIVATE velox_common_compression velox_process velox_test_util glog::glog velox_s3_metrics_aggregator)

if(${VELOX_BUILD_TESTING})
add_subdirectory(tests)
Expand Down
17 changes: 15 additions & 2 deletions velox/connectors/hive/storage_adapters/s3fs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,26 @@

# for generated headers

# Create a new library for S3MetricsAggregator to avoid cyclic dependency
add_library(velox_s3_metrics_aggregator STATIC
S3MetricsAggregator.cpp
)

target_include_directories(velox_s3_metrics_aggregator PUBLIC ${AWSSDK_INCLUDE_DIRS})

target_link_libraries(velox_s3_metrics_aggregator
PUBLIC Folly::folly
PRIVATE glog::glog
)

add_library(velox_s3fs RegisterS3FileSystem.cpp)
if(VELOX_ENABLE_S3)
target_sources(velox_s3fs PRIVATE S3FileSystem.cpp S3Util.cpp S3MetricsAggregator.cpp)
target_sources(velox_s3fs PRIVATE S3FileSystem.cpp S3Util.cpp)

target_include_directories(velox_s3fs PUBLIC ${AWSSDK_INCLUDE_DIRS})

target_link_libraries(velox_s3fs velox_dwio_common Folly::folly
${AWSSDK_LIBRARIES})
${AWSSDK_LIBRARIES} velox_s3_metrics_aggregator)

if(${VELOX_BUILD_TESTING})
add_subdirectory(tests)
Expand Down

0 comments on commit 7798570

Please sign in to comment.