Eunomia  0.1.0
A lightweight eBPF-based CloudNative Monitor tool for Container Security and Observability
sec_analyzer_prometheus Class Reference

sec analyzer manager with prometheus exporter More...

#include <sec_analyzer.h>

Inheritance diagram for sec_analyzer_prometheus:
Inheritance graph
Collaboration diagram for sec_analyzer_prometheus:
Collaboration graph

Public Member Functions

void report_prometheus_event (const struct rule_message &msg)
 
void report_event (const rule_message &msg)
 
 sec_analyzer_prometheus (prometheus_server &server, const std::vector< sec_rule_describe > &rules)
 
- Public Member Functions inherited from sec_analyzer
 sec_analyzer (const std::vector< sec_rule_describe > &in_rules)
 
virtual ~sec_analyzer ()=default
 
void print_event (const rule_message &msg)
 

Static Public Member Functions

static std::shared_ptr< sec_analyzercreate_sec_analyzer_with_default_rules (prometheus_server &server)
 
static std::shared_ptr< sec_analyzercreate_sec_analyzer_with_additional_rules (const std::vector< sec_rule_describe > &rules, prometheus_server &server)
 
- Static Public Member Functions inherited from sec_analyzer
static std::shared_ptr< sec_analyzercreate_sec_analyzer_with_default_rules (void)
 
static std::shared_ptr< sec_analyzercreate_sec_analyzer_with_additional_rules (const std::vector< sec_rule_describe > &rules)
 

Additional Inherited Members

- Public Attributes inherited from sec_analyzer
std::mutex mutex
 
const std::vector< sec_rule_describerules
 

Detailed Description

sec analyzer manager with prometheus exporter

Constructor & Destructor Documentation

◆ sec_analyzer_prometheus()

sec_analyzer_prometheus::sec_analyzer_prometheus ( prometheus_server server,
const std::vector< sec_rule_describe > &  rules 
)

Member Function Documentation

◆ create_sec_analyzer_with_additional_rules()

std::shared_ptr< sec_analyzer > sec_analyzer_prometheus::create_sec_analyzer_with_additional_rules ( const std::vector< sec_rule_describe > &  rules,
prometheus_server server 
)
static
Here is the caller graph for this function:

◆ create_sec_analyzer_with_default_rules()

std::shared_ptr< sec_analyzer > sec_analyzer_prometheus::create_sec_analyzer_with_default_rules ( prometheus_server server)
static
Here is the call graph for this function:

◆ report_event()

void sec_analyzer_prometheus::report_event ( const rule_message msg)
virtual

Reimplemented from sec_analyzer.

Here is the call graph for this function:

◆ report_prometheus_event()

void sec_analyzer_prometheus::report_prometheus_event ( const struct rule_message msg)
Here is the caller graph for this function:

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