Eunomia  0.1.0
A lightweight eBPF-based CloudNative Monitor tool for Container Security and Observability
files_tracker::prometheus_event_handler Struct Reference

used for prometheus exporter More...

#include <files.h>

Inheritance diagram for files_tracker::prometheus_event_handler:
Inheritance graph
Collaboration diagram for files_tracker::prometheus_event_handler:
Collaboration graph

Public Member Functions

void report_prometheus_event (const struct files_event &e)
 
 prometheus_event_handler (prometheus_server &server)
 
void handle (tracker_event< files_event > &e)
 implement this function to handle the event More...
 
- Public Member Functions inherited from event_handler< files_event >
virtual ~event_handler ()=default
 
std::shared_ptr< event_handler< files_event > > add_handler (std::shared_ptr< event_handler< files_event >> handler)
 add a next handler after this handler More...
 
void do_handle_event (tracker_event< files_event > &e)
 
- Public Member Functions inherited from event_handler_base< files_event >
virtual ~event_handler_base ()=default
 

Public Attributes

prometheus::Family< prometheus::Counter > & eunomia_files_read_counter
 read times counter for field reads More...
 
prometheus::Family< prometheus::Counter > & eunomia_files_write_counter
 write times counter for field writes More...
 
prometheus::Family< prometheus::Counter > & eunomia_files_write_bytes
 write bytes counter for field write_bytes More...
 
prometheus::Family< prometheus::Counter > & eunomia_files_read_bytes
 read bytes counter for field read_bytes More...
 
const container_managercontainer_manager_ref
 
- Public Attributes inherited from event_handler< files_event >
std::shared_ptr< event_handler_base< files_event > > next_handler
 

Detailed Description

used for prometheus exporter

Constructor & Destructor Documentation

◆ prometheus_event_handler()

files_tracker::prometheus_event_handler::prometheus_event_handler ( prometheus_server server)

Member Function Documentation

◆ handle()

void files_tracker::prometheus_event_handler::handle ( tracker_event< files_event > &  e)
virtual

implement this function to handle the event

Implements event_handler< files_event >.

◆ report_prometheus_event()

void files_tracker::prometheus_event_handler::report_prometheus_event ( const struct files_event &  e)
Here is the call graph for this function:

Member Data Documentation

◆ container_manager_ref

const container_manager& files_tracker::prometheus_event_handler::container_manager_ref

◆ eunomia_files_read_bytes

prometheus::Family<prometheus::Counter>& files_tracker::prometheus_event_handler::eunomia_files_read_bytes

read bytes counter for field read_bytes

◆ eunomia_files_read_counter

prometheus::Family<prometheus::Counter>& files_tracker::prometheus_event_handler::eunomia_files_read_counter

read times counter for field reads

◆ eunomia_files_write_bytes

prometheus::Family<prometheus::Counter>& files_tracker::prometheus_event_handler::eunomia_files_write_bytes

write bytes counter for field write_bytes

◆ eunomia_files_write_counter

prometheus::Family<prometheus::Counter>& files_tracker::prometheus_event_handler::eunomia_files_write_counter

write times counter for field writes


The documentation for this struct was generated from the following files: