Eunomia
0.1.0
A lightweight eBPF-based CloudNative Monitor tool for Container Security and Observability
|
Go to the documentation of this file.
14 #include "prometheus/counter.h"
18 #include <process/process_tracker.h>
34 const std::vector<std::string> &args)
56 std::string
to_json(
const struct process_event &e);
convert event to json
Definition: process.h:54
void handle(tracker_event< process_event > &e)
implement this function to handle the event
Definition: process.cpp:109
prometheus_event_handler(prometheus_server &server)
Definition: process.cpp:48
the event handler for single type
Definition: event_handler.h:52
process_tracker(config_data config)
Definition: process.cpp:65
prometheus::Family< prometheus::Counter > & eunomia_process_start_counter
Definition: process.h:45
static std::unique_ptr< process_tracker > create_tracker_with_args(tracker_event_handler handler, const std::vector< std::string > &args)
Definition: process.h:32
container info
Definition: container_info.h:32
tracker_config< process_env, process_event > config_data
type alias for env and config
Definition: tracker.h:65
void start_tracker()
start process tracker
Definition: process.cpp:82
tracker template with env and data
Definition: tracker.h:59
static std::unique_ptr< process_tracker > create_tracker_with_default_env(tracker_event_handler handler)
create a tracker with deafult config
Definition: process.cpp:71
void report_prometheus_event(const struct process_event &e, const struct container_info &ct_info)
Definition: process.cpp:20
ebpf process tracker interface
Definition: process.h:26
void handle(tracker_event< process_event > &e)
implement this function to handle the event
Definition: process.cpp:60
std::string to_json(const struct process_event &e)
Definition: process.cpp:91
the basic event type
Definition: event_handler.h:31
prometheus::Family< prometheus::Counter > & eunomia_process_exit_counter
Definition: process.h:46
used for prometheus exporter
Definition: process.h:43
void handle(tracker_event< process_event > &e)
implement this function to handle the event
Definition: process.cpp:114
used for json exporter, inherits from json_event_handler
Definition: process.h:60
void handle(tracker_event< process_event > &e)
implement this function to handle the event
Definition: process.cpp:166
Definition: prometheus_server.h:22
std::shared_ptr< event_handler< process_event > > tracker_event_handler
type alias for event handler
Definition: tracker.h:67
seccomp_config config
Definition: seccomp_test.cpp:13