rippled
Loading...
Searching...
No Matches
StatsDCollector.h
1#pragma once
2
3#include <xrpl/beast/insight/Collector.h>
4#include <xrpl/beast/net/IPEndpoint.h>
5#include <xrpl/beast/utility/Journal.h>
6
7namespace beast {
8namespace insight {
9
15{
16public:
17 explicit StatsDCollector() = default;
18
25 New(IP::Endpoint const& address, std::string const& prefix, Journal journal);
26};
27
28} // namespace insight
29} // namespace beast
A version-independent IP address and port combination.
Definition IPEndpoint.h:18
A generic endpoint for log messages.
Definition Journal.h:40
Interface for a manager that allows collection of metrics.
Definition Collector.h:25
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.