new(metrics): add rules_counters_enabled option

Intended to replace https://github.com/falcosecurity/falco-exporter
when used with Prometheus output

Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
This commit is contained in:
Melissa Kilby
2024-05-13 20:50:01 +00:00
committed by poiana
parent 64039196ad
commit b7adcd251d
9 changed files with 100 additions and 25 deletions

View File

@@ -63,7 +63,6 @@ public:
const indexed_vector<falco_rule>& rules,
std::string& out) const;
private:
std::atomic<uint64_t> m_total;
std::vector<std::unique_ptr<std::atomic<uint64_t>>> m_by_priority;
std::vector<std::unique_ptr<std::atomic<uint64_t>>> m_by_rule_id;