Eunomia
0.1.0
A lightweight eBPF-based CloudNative Monitor tool for Container Security and Observability
|
Go to the documentation of this file.
17 #include "prometheus/counter.h"
21 #include <files/file_tracker.h>
37 const std::vector<std::string> &args)
66 std::string
to_json(
const struct files_event &e);
static std::unique_ptr< files_tracker > create_tracker_with_default_env(tracker_event_handler handler)
create a tracker with deafult config
Definition: files.cpp:97
std::string to_json(const struct files_event &e)
Definition: files.cpp:124
const container_manager & container_manager_ref
Definition: files.h:56
prometheus::Family< prometheus::Counter > & eunomia_files_write_bytes
write bytes counter for field write_bytes
Definition: files.h:53
void handle(tracker_event< files_event > &e)
implement this function to handle the event
Definition: files.cpp:192
ebpf files tracker interface
Definition: files.h:29
the event handler for single type
Definition: event_handler.h:52
convert event to json
Definition: files.h:64
void start_tracker()
start files tracker
Definition: files.cpp:115
static std::unique_ptr< files_tracker > create_tracker_with_args(tracker_event_handler handler, const std::vector< std::string > &args)
Definition: files.h:35
void report_prometheus_event(const struct files_event &e)
Definition: files.cpp:15
tracker_config< files_env, files_event > config_data
type alias for env and config
Definition: tracker.h:65
tracker template with env and data
Definition: tracker.h:59
manager all container or k8s info
Definition: container_manager.h:21
used for json exporter, inherits from json_event_handler
Definition: files.h:70
the basic event type
Definition: event_handler.h:31
void handle(tracker_event< files_event > &e)
implement this function to handle the event
Definition: files.cpp:145
void handle(tracker_event< files_event > &e)
implement this function to handle the event
Definition: files.cpp:86
prometheus::Family< prometheus::Counter > & eunomia_files_write_counter
write times counter for field writes
Definition: files.h:51
prometheus_event_handler(prometheus_server &server)
Definition: files.cpp:65
files_tracker(config_data config)
Definition: files.cpp:91
prometheus::Family< prometheus::Counter > & eunomia_files_read_bytes
read bytes counter for field read_bytes
Definition: files.h:55
prometheus::Family< prometheus::Counter > & eunomia_files_read_counter
read times counter for field reads
Definition: files.h:49
Definition: prometheus_server.h:22
std::shared_ptr< event_handler< files_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< files_event > &e)
implement this function to handle the event
Definition: files.cpp:160
used for prometheus exporter
Definition: files.h:46