27 #ifndef Hyperspace_MetricsHandler_h
28 #define Hyperspace_MetricsHandler_h
36 #include <Common/metrics>
116 #endif // Hyperspace_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.
interval_metric< int64_t > m_requests
Hyperspace requests
int64_t m_last_timestamp
Timestamp of last metrics collection
Declarations for DispatchHandler.
Declarations for MetricsProcess.
std::shared_ptr< Properties > PropertiesPtr
std::shared_ptr< MetricsCollectorGanglia > MetricsCollectorGangliaPtr
Smart pointer to MetricsCollectorGanglia.
void stop_collecting()
Stops metrics collection.
int32_t m_collection_interval
Metrics collection interval
virtual ~MetricsHandler()
Destructor.
Entry point to AsyncComm service.
virtual void handle(EventPtr &event)
Collects and publishes metrics.
Computes and publishes general process metrics.
void request_increment()
Increments request count.
MetricsCollectorGangliaPtr m_ganglia_collector
Ganglia metrics collector.
MetricsProcess m_metrics_process
General process metrics tracker.