20 #include <ripple/app/main/CollectorManager.h>
37 if (server ==
"statsd")
74 return std::make_unique<CollectorManagerImp>(params, journal);
Holds a collection of configuration values.
~CollectorManagerImp()=default
CollectorManagerImp(Section const ¶ms, beast::Journal journal)
Provides the beast::insight::Collector service.
std::unique_ptr< CollectorManager > make_CollectorManager(Section const ¶ms, beast::Journal journal)
beast::insight::Collector::ptr const & collector() override
static std::shared_ptr< StatsDCollector > New(IP::Endpoint const &address, std::string const &prefix, Journal journal)
Create a StatsD collector.
virtual Group::ptr const & get(std::string const &name)=0
Find or create a new collector with a given name.
std::unique_ptr< beast::insight::Groups > m_groups
A generic endpoint for log messages.
std::unique_ptr< Groups > make_Groups(Collector::ptr const &collector)
Create a group container that uses the specified collector.
beast::insight::Group::ptr const & group(std::string const &name) override
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
static Endpoint from_string(std::string const &s)
beast::insight::Collector::ptr m_collector
A version-independent IP address and port combination.
static std::shared_ptr< Collector > New()
T & get(EitherAmount &amt)