rippled
Loading...
Searching...
No Matches
StatsDCollector.h
1#ifndef BEAST_INSIGHT_STATSDCOLLECTOR_H_INCLUDED
2#define BEAST_INSIGHT_STATSDCOLLECTOR_H_INCLUDED
3
4#include <xrpl/beast/insight/Collector.h>
5#include <xrpl/beast/net/IPEndpoint.h>
6#include <xrpl/beast/utility/Journal.h>
7
8namespace beast {
9namespace insight {
10
16{
17public:
18 explicit StatsDCollector() = default;
19
26 New(IP::Endpoint const& address,
27 std::string const& prefix,
28 Journal journal);
29};
30
31} // namespace insight
32} // namespace beast
33
34#endif
A version-independent IP address and port combination.
Definition IPEndpoint.h:19
A generic endpoint for log messages.
Definition Journal.h:41
Interface for a manager that allows collection of metrics.
Definition Collector.h:26
A Collector that reports metrics to a StatsD server.
static std::shared_ptr< StatsDCollector > New(IP::Endpoint const &address, std::string const &prefix, Journal journal)
Create a StatsD collector.