Definition at line 203 of file StatsDCollector.cpp.
◆ ptr
◆ StatsDCollectorImp()
◆ ~StatsDCollectorImp()
| beast::insight::detail::StatsDCollectorImp::~StatsDCollectorImp |
( |
| ) |
|
|
override |
◆ toEndpoint()
| boost::asio::ip::udp::endpoint beast::insight::detail::StatsDCollectorImp::toEndpoint |
( |
IP::Endpoint const & | ep | ) |
|
|
staticprivate |
◆ makeHook() [1/2]
◆ makeCounter() [1/2]
| Counter beast::insight::detail::StatsDCollectorImp::makeCounter |
( |
std::string const & | name | ) |
|
|
overridevirtual |
◆ makeEvent() [1/2]
| Event beast::insight::detail::StatsDCollectorImp::makeEvent |
( |
std::string const & | name | ) |
|
|
overridevirtual |
◆ makeGauge() [1/2]
| Gauge beast::insight::detail::StatsDCollectorImp::makeGauge |
( |
std::string const & | name | ) |
|
|
overridevirtual |
◆ makeMeter() [1/2]
| Meter beast::insight::detail::StatsDCollectorImp::makeMeter |
( |
std::string const & | name | ) |
|
|
overridevirtual |
◆ add()
| void beast::insight::detail::StatsDCollectorImp::add |
( |
StatsDMetricBase & | metric | ) |
|
◆ remove()
| void beast::insight::detail::StatsDCollectorImp::remove |
( |
StatsDMetricBase & | metric | ) |
|
◆ getIoContext()
| boost::asio::io_context & beast::insight::detail::StatsDCollectorImp::getIoContext |
( |
| ) |
|
◆ prefix()
| std::string const & beast::insight::detail::StatsDCollectorImp::prefix |
( |
| ) |
const |
◆ doPostBuffer()
| void beast::insight::detail::StatsDCollectorImp::doPostBuffer |
( |
std::string const & | buffer | ) |
|
◆ postBuffer()
| void beast::insight::detail::StatsDCollectorImp::postBuffer |
( |
std::string && | buffer | ) |
|
◆ onSend()
◆ log()
| void beast::insight::detail::StatsDCollectorImp::log |
( |
std::vector< boost::asio::const_buffer > const & | buffers | ) |
|
|
static |
◆ sendBuffers()
| void beast::insight::detail::StatsDCollectorImp::sendBuffers |
( |
| ) |
|
◆ setTimer()
| void beast::insight::detail::StatsDCollectorImp::setTimer |
( |
| ) |
|
◆ onTimer()
| void beast::insight::detail::StatsDCollectorImp::onTimer |
( |
boost::system::error_code | ec | ) |
|
◆ run()
| void beast::insight::detail::StatsDCollectorImp::run |
( |
| ) |
|
◆ make()
Create a StatsD collector.
- Parameters
-
| 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.
◆ makeHook() [2/2]
template<class Handler>
| Hook beast::insight::Collector::makeHook |
( |
Handler | handler | ) |
|
|
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)
- See also
- Hook
Definition at line 45 of file Collector.h.
◆ makeCounter() [2/2]
◆ makeEvent() [2/2]
◆ makeGauge() [2/2]
◆ makeMeter() [2/2]
◆ kMaxPacketSize
| auto beast::insight::detail::StatsDCollectorImp::kMaxPacketSize = 1472 |
|
staticconstexprprivate |
◆ journal_
| Journal beast::insight::detail::StatsDCollectorImp::journal_ |
|
private |
◆ address_
| IP::Endpoint beast::insight::detail::StatsDCollectorImp::address_ |
|
private |
◆ prefix_
| std::string beast::insight::detail::StatsDCollectorImp::prefix_ |
|
private |
◆ ioContext_
| boost::asio::io_context beast::insight::detail::StatsDCollectorImp::ioContext_ |
|
private |
◆ work_
| std::optional<boost::asio::executor_work_guard<boost::asio::io_context::executor_type> > beast::insight::detail::StatsDCollectorImp::work_ |
|
private |
◆ strand_
| boost::asio::strand<boost::asio::io_context::executor_type> beast::insight::detail::StatsDCollectorImp::strand_ |
|
private |
◆ timer_
◆ socket_
| boost::asio::ip::udp::socket beast::insight::detail::StatsDCollectorImp::socket_ |
|
private |
◆ data_
◆ metricsLock_
◆ metrics_
◆ thread_
| std::thread beast::insight::detail::StatsDCollectorImp::thread_ |
|
private |