Eunomia
0.1.0
A lightweight eBPF-based CloudNative Monitor tool for Container Security and Observability
|
used for prometheus exporter More...
#include <process.h>
Public Member Functions | |
void | report_prometheus_event (const struct process_event &e, const struct container_info &ct_info) |
prometheus_event_handler (prometheus_server &server) | |
void | handle (tracker_event< process_event > &e) |
implement this function to handle the event More... | |
Public Member Functions inherited from event_handler< process_event > | |
virtual | ~event_handler ()=default |
std::shared_ptr< event_handler< process_event > > | add_handler (std::shared_ptr< event_handler< process_event >> handler) |
add a next handler after this handler More... | |
void | do_handle_event (tracker_event< process_event > &e) |
Public Member Functions inherited from event_handler_base< process_event > | |
virtual | ~event_handler_base ()=default |
Public Attributes | |
prometheus::Family< prometheus::Counter > & | eunomia_process_start_counter |
prometheus::Family< prometheus::Counter > & | eunomia_process_exit_counter |
Public Attributes inherited from event_handler< process_event > | |
std::shared_ptr< event_handler_base< process_event > > | next_handler |
used for prometheus exporter
process_tracker::prometheus_event_handler::prometheus_event_handler | ( | prometheus_server & | server | ) |
|
virtual |
implement this function to handle the event
Implements event_handler< process_event >.
void process_tracker::prometheus_event_handler::report_prometheus_event | ( | const struct process_event & | e, |
const struct container_info & | ct_info | ||
) |
prometheus::Family<prometheus::Counter>& process_tracker::prometheus_event_handler::eunomia_process_exit_counter |
prometheus::Family<prometheus::Counter>& process_tracker::prometheus_event_handler::eunomia_process_start_counter |