Eunomia
0.1.0
A lightweight eBPF-based CloudNative Monitor tool for Container Security and Observability
|
Go to the documentation of this file.
15 #include "prometheus/counter.h"
19 #include <syscall/syscall_tracker.h>
34 const std::vector<std::string> &args)
55 std::string
to_json(
const struct syscall_event &e);
static std::unique_ptr< syscall_tracker > create_tracker_with_args(tracker_event_handler handler, const std::vector< std::string > &args)
Definition: syscall.h:32
void handle(tracker_event< syscall_event > &e)
implement this function to handle the event
Definition: syscall.cpp:53
prometheus_event_handler(prometheus_server &server)
Definition: syscall.cpp:111
static std::unique_ptr< syscall_tracker > create_tracker_with_default_env(tracker_event_handler handler)
Definition: syscall.cpp:21
the event handler for single type
Definition: event_handler.h:52
void start_tracker()
start the tracker thread
Definition: syscall.cpp:30
tracker_config< syscall_env, syscall_event > config_data
type alias for env and config
Definition: tracker.h:65
void handle(tracker_event< syscall_event > &e)
implement this function to handle the event
Definition: syscall.cpp:58
syscall_tracker(config_data config)
Definition: syscall.cpp:15
tracker template with env and data
Definition: tracker.h:59
void report_prometheus_event(const struct syscall_event &e)
Definition: syscall.cpp:101
prometheus::Family< prometheus::Counter > & eunomia_files_syscall_counter
Definition: syscall.h:45
void handle(tracker_event< syscall_event > &e)
implement this function to handle the event
Definition: syscall.cpp:79
the basic event type
Definition: event_handler.h:31
std::string to_json(const struct syscall_event &e)
Definition: syscall.cpp:36
Definition: prometheus_server.h:22
std::shared_ptr< event_handler< syscall_event > > tracker_event_handler
type alias for event handler
Definition: tracker.h:67
seccomp_config config
Definition: seccomp_test.cpp:13
void handle(tracker_event< syscall_event > &e)
implement this function to handle the event
Definition: syscall.cpp:119
syscall tracker cpp interface
Definition: syscall.h:26