Add support for callbacks for gauges/counters, restore process stat metrics

This commit is contained in:
Tim Wojtulewicz 2024-03-14 15:08:08 -07:00
parent e93e4cc26d
commit 1cad305e58
8 changed files with 103 additions and 81 deletions

View file

@ -234,13 +234,13 @@ if (ZEEK_STANDALONE)
endif ()
# Tell zeek_target_link_libraries to add library dependencies as PRIVATE.
set(zeek_exe_access PRIVATE)
else ()
add_library(zeek_lib STATIC)
if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
target_link_libraries(zeek_exe PRIVATE util)
target_link_libraries(zeek_exe PRIVATE procstat)
endif ()
else ()
add_library(zeek_lib STATIC)
endif ()
if (TARGET zeek_lib)
@ -258,6 +258,7 @@ if (TARGET zeek_lib)
target_link_libraries(zeek_exe PRIVATE util)
target_link_libraries(zeek_exe PRIVATE procstat)
endif ()
endif ()
# When building our fuzzers, we also need one extra top-level target that