|
xrpld
|
A Collector that reports metrics to a StatsD server. More...
#include <StatsDCollector.h>


Public Types | |
| using | ptr = std::shared_ptr<Collector> |
Public Member Functions | |
| StatsDCollector ()=default | |
| template<class Handler> | |
| Hook | makeHook (Handler handler) |
| Create a hook. | |
| virtual Hook | makeHook (HookImpl::HandlerType const &handler)=0 |
| virtual Counter | makeCounter (std::string const &name)=0 |
| Create a counter with the specified name. | |
| Counter | makeCounter (std::string const &prefix, std::string const &name) |
| virtual Event | makeEvent (std::string const &name)=0 |
| Create an event with the specified name. | |
| Event | makeEvent (std::string const &prefix, std::string const &name) |
| virtual Gauge | makeGauge (std::string const &name)=0 |
| Create a gauge with the specified name. | |
| Gauge | makeGauge (std::string const &prefix, std::string const &name) |
| virtual Meter | makeMeter (std::string const &name)=0 |
| Create a meter with the specified name. | |
| Meter | makeMeter (std::string const &prefix, std::string const &name) |
Static Public Member Functions | |
| static std::shared_ptr< StatsDCollector > | make (IP::Endpoint const &address, std::string const &prefix, Journal journal) |
| Create a StatsD collector. | |
A Collector that reports metrics to a StatsD server.
Reference: https://github.com/b/statsd_spec
Definition at line 13 of file StatsDCollector.h.
|
inherited |
Definition at line 26 of file Collector.h.
|
explicitdefault |
|
static |
Create a StatsD collector.
| address | The IP address and port of the StatsD server. |
| prefix | A string pre-pended before each metric name. |
| journal | Destination for logging output. |
Definition at line 719 of file StatsDCollector.cpp.
|
inherited |
Create a hook.
A hook is called at each collection interval, on an implementation defined thread. This is a convenience facility for gathering metrics in the polling style. The typical usage is to update all the metrics of interest in the handler.
Handler will be called with this signature: void handler (void)
Definition at line 45 of file Collector.h.
|
pure virtualinherited |
|
pure virtualinherited |
Create a counter with the specified name.
Implemented in beast::insight::detail::GroupImp, beast::insight::detail::NullCollectorImp, and beast::insight::detail::StatsDCollectorImp.
|
inherited |
Definition at line 62 of file Collector.h.
|
pure virtualinherited |
Create an event with the specified name.
Implemented in beast::insight::detail::GroupImp, beast::insight::detail::NullCollectorImp, and beast::insight::detail::StatsDCollectorImp.
|
inherited |
Definition at line 78 of file Collector.h.
|
pure virtualinherited |
Create a gauge with the specified name.
Implemented in beast::insight::detail::GroupImp, beast::insight::detail::NullCollectorImp, and beast::insight::detail::StatsDCollectorImp.
|
inherited |
Definition at line 94 of file Collector.h.
|
pure virtualinherited |
Create a meter with the specified name.
Implemented in beast::insight::detail::GroupImp, beast::insight::detail::NullCollectorImp, and beast::insight::detail::StatsDCollectorImp.
|
inherited |
Definition at line 110 of file Collector.h.