xrpld
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::insight {
8
14{
15public:
16 explicit StatsDCollector() = default;
17
24 make(IP::Endpoint const& address, std::string const& prefix, Journal journal);
25};
26
27} // namespace beast::insight
A version-independent IP address and port combination.
Definition IPEndpoint.h:17
A generic endpoint for log messages.
Definition Journal.h:38
Interface for a manager that allows collection of metrics.
Definition Collector.h:24
static std::shared_ptr< StatsDCollector > make(IP::Endpoint const &address, std::string const &prefix, Journal journal)
Create a StatsD collector.