From 6804506088d2e72a1e51301e241be1a83b7545d0 Mon Sep 17 00:00:00 2001 From: Melissa Kilby Date: Wed, 25 Oct 2023 21:46:51 +0000 Subject: [PATCH] cleanup(userspace/falco): set sinsp_stats_v2_enabled Signed-off-by: Melissa Kilby --- userspace/falco/app/actions/helpers_inspector.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/userspace/falco/app/actions/helpers_inspector.cpp b/userspace/falco/app/actions/helpers_inspector.cpp index bf880135d79..4844217c402 100644 --- a/userspace/falco/app/actions/helpers_inspector.cpp +++ b/userspace/falco/app/actions/helpers_inspector.cpp @@ -133,6 +133,10 @@ falco::app::run_result falco::app::actions::open_live_inspector( inspector->open_kmod(s.syscall_buffer_bytes_size, s.selected_sc_set); } } + if((s.config->m_metrics_flags & PPM_SCAP_STATS_STATE_COUNTERS)) + { + inspector->set_sinsp_stats_v2_enabled(true); + } } catch (sinsp_exception &e) {