Definition at line 211 of file StatsDCollector.cpp.
◆ ptr
◆ anonymous enum
◆ StatsDCollectorImp()
◆ ~StatsDCollectorImp()
| beast::insight::detail::StatsDCollectorImp::~StatsDCollectorImp |
( |
| ) |
|
|
override |
◆ to_endpoint()
| static boost::asio::ip::udp::endpoint beast::insight::detail::StatsDCollectorImp::to_endpoint |
( |
IP::Endpoint const & |
ep | ) |
|
|
staticprivate |
◆ make_hook() [1/2]
◆ make_counter() [1/2]
| Counter beast::insight::detail::StatsDCollectorImp::make_counter |
( |
std::string const & |
name | ) |
|
|
overridevirtual |
◆ make_event() [1/2]
| Event beast::insight::detail::StatsDCollectorImp::make_event |
( |
std::string const & |
name | ) |
|
|
overridevirtual |
◆ make_gauge() [1/2]
| Gauge beast::insight::detail::StatsDCollectorImp::make_gauge |
( |
std::string const & |
name | ) |
|
|
overridevirtual |
◆ make_meter() [1/2]
| Meter beast::insight::detail::StatsDCollectorImp::make_meter |
( |
std::string const & |
name | ) |
|
|
overridevirtual |
◆ add()
| void beast::insight::detail::StatsDCollectorImp::add |
( |
StatsDMetricBase & |
metric | ) |
|
◆ remove()
| void beast::insight::detail::StatsDCollectorImp::remove |
( |
StatsDMetricBase & |
metric | ) |
|
◆ get_io_context()
| boost::asio::io_context & beast::insight::detail::StatsDCollectorImp::get_io_context |
( |
| ) |
|
◆ prefix()
| std::string const & beast::insight::detail::StatsDCollectorImp::prefix |
( |
| ) |
const |
◆ do_post_buffer()
| void beast::insight::detail::StatsDCollectorImp::do_post_buffer |
( |
std::string const & |
buffer | ) |
|
◆ post_buffer()
| void beast::insight::detail::StatsDCollectorImp::post_buffer |
( |
std::string && |
buffer | ) |
|
◆ on_send()
◆ log()
| void beast::insight::detail::StatsDCollectorImp::log |
( |
std::vector< boost::asio::const_buffer > const & |
buffers | ) |
|
◆ send_buffers()
| void beast::insight::detail::StatsDCollectorImp::send_buffers |
( |
| ) |
|
◆ set_timer()
| void beast::insight::detail::StatsDCollectorImp::set_timer |
( |
| ) |
|
◆ on_timer()
| void beast::insight::detail::StatsDCollectorImp::on_timer |
( |
boost::system::error_code |
ec | ) |
|
◆ run()
| void beast::insight::detail::StatsDCollectorImp::run |
( |
| ) |
|
◆ New()
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 760 of file StatsDCollector.cpp.
◆ make_hook() [2/2]
template<class Handler >
| Hook beast::insight::Collector::make_hook |
( |
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 47 of file Collector.h.
◆ make_counter() [2/2]
◆ make_event() [2/2]
◆ make_gauge() [2/2]
◆ make_meter() [2/2]
◆ m_journal
| Journal beast::insight::detail::StatsDCollectorImp::m_journal |
|
private |
◆ m_address
| IP::Endpoint beast::insight::detail::StatsDCollectorImp::m_address |
|
private |
◆ m_prefix
| std::string beast::insight::detail::StatsDCollectorImp::m_prefix |
|
private |
◆ m_io_context
| boost::asio::io_context beast::insight::detail::StatsDCollectorImp::m_io_context |
|
private |
◆ m_work
| std::optional<boost::asio::executor_work_guard< boost::asio::io_context::executor_type> > beast::insight::detail::StatsDCollectorImp::m_work |
|
private |
◆ m_strand
| boost::asio::strand<boost::asio::io_context::executor_type> beast::insight::detail::StatsDCollectorImp::m_strand |
|
private |
◆ m_timer
◆ m_socket
| boost::asio::ip::udp::socket beast::insight::detail::StatsDCollectorImp::m_socket |
|
private |
◆ m_data
◆ metricsLock_
◆ metrics_
◆ m_thread
| std::thread beast::insight::detail::StatsDCollectorImp::m_thread |
|
private |