27 #ifndef Master_MetricsHandler_h
28 #define Master_MetricsHandler_h
36 #include <Common/metrics>
112 #endif // Master_MetricsHandler_h
std::shared_ptr< MetricsHandler > MetricsHandlerPtr
Smart pointer to MetricsHandler.
Collects and publishes Hyperspace metrics.
MetricsHandler(PropertiesPtr &props)
Constructor.
Abstract base class for application dispatch handlers registered with AsyncComm.
Declarations for MetricsCollectorGanglia.
Program options handling.
std::shared_ptr< Event > EventPtr
Smart pointer to Event.
void start_collecting()
Starts metrics collection.
void operation_increment()
Increments operation count.
Declarations for DispatchHandler.
Declarations for MetricsProcess.
std::shared_ptr< Properties > PropertiesPtr
MetricsProcess m_metrics_process
General process metrics tracker.
std::shared_ptr< MetricsCollectorGanglia > MetricsCollectorGangliaPtr
Smart pointer to MetricsCollectorGanglia.
void stop_collecting()
Stops metrics collection.
int32_t m_collection_interval
Metrics collection interval
Entry point to AsyncComm service.
virtual void handle(EventPtr &event)
Collects and publishes metrics.
MetricsCollectorGangliaPtr m_ganglia_collector
Ganglia metrics collector.
Computes and publishes general process metrics.
bool m_started
Collection has started.
int64_t m_last_timestamp
Timestamp of last metrics collection
interval_metric< int64_t > m_operations
Master operations
virtual ~MetricsHandler()
Destructor.