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
7#include <memory>
8#include <string>
9
10namespace beast::insight {
11
18{
19public:
20 explicit StatsDCollector() = default;
21
29 make(ip::Endpoint const& address, std::string const& prefix, Journal journal);
30};
31
32} // namespace beast::insight
A generic endpoint for log messages.
Definition Journal.h:44
Interface for a manager that allows collection of metrics.
Definition Collector.h:27
static std::shared_ptr< StatsDCollector > make(ip::Endpoint const &address, std::string const &prefix, Journal journal)
Create a StatsD collector.
A version-independent IP address and port combination.
Definition IPEndpoint.h:24