Expose telemetry API to scripting land

This commit is contained in:
Dominik Charousset 2021-03-04 17:23:44 +01:00
parent d4466db5ce
commit 2bac354e43
20 changed files with 887 additions and 11 deletions

View file

@ -31,6 +31,12 @@ public:
virtual ~Manager();
/**
* Initialization of the manager. This is called late during Bro's
* initialization after any scripts are processed.
*/
virtual void InitPostScript();
/**
* @return A counter metric family. Creates the family lazily if necessary.
* @param prefix The prefix (namespace) this family belongs to.
@ -384,7 +390,7 @@ public:
return fam.GetOrAdd({});
}
private:
protected:
IntCounterFamily
IntCounterFam(std::string_view prefix, std::string_view name,
Span<const std::string_view> labels,