24#ifndef METRICS_HANDLER_INCLUDED
25#define METRICS_HANDLER_INCLUDED
199 const uint64_t end_timestamp);
211 const uint64_t begin_timestamp,
const uint64_t end_timestamp);
222 const uint64_t end_timestamp);
232 const uint64_t end_timestamp);
245 const uint64_t bytes,
246 const uint64_t sent_timestamp,
247 const uint64_t received_timestamp);
Class that represents the data that is exchanged within a group.
Definition: gcs_message.h:357
Definition: metrics_handler.h:40
uint64_t get_data_messages_sent_bytes_sum() const
Sum of bytes of messages that contain transaction data sent by this member.
Definition: metrics_handler.cc:70
Metrics_handler()=default
std::atomic< uint64_t > m_certification_garbage_collector_time_sum
Definition: metrics_handler.h:269
std::atomic< uint64_t > m_data_messages_sent_bytes_sum
Definition: metrics_handler.h:253
std::atomic< uint64_t > m_data_messages_sent_count
Definition: metrics_handler.h:250
void add_transaction_consistency_after_sync(const uint64_t begin_timestamp, const uint64_t end_timestamp)
Account transaction that waited for transactions from the primary with group_replication_consistency=...
Definition: metrics_handler.cc:279
uint64_t get_transactions_consistency_after_termination_time_sum() const
Sum of the time spent between the delivery of the transaction executed with group_replication_consist...
Definition: metrics_handler.cc:98
std::atomic< uint64_t > m_data_messages_sent_roundtrip_time_sum
Definition: metrics_handler.h:256
uint64_t get_control_messages_sent_count() const
Number of control messages sent by this member.
Definition: metrics_handler.cc:58
enum_message_type
Definition: metrics_handler.h:42
uint64_t get_control_messages_sent_bytes_sum() const
Sum of bytes of control messages sent by this member.
Definition: metrics_handler.cc:66
void add_transaction_consistency_after_termination(const uint64_t begin_timestamp, const uint64_t end_timestamp)
Account transaction executed with group_replication_consistency=AFTER or BEFORE_AND_AFTER that waited...
Definition: metrics_handler.cc:268
void reset()
Reset the metrics.
Definition: metrics_handler.cc:41
std::atomic< uint64_t > m_transactions_consistency_after_sync_time_sum
Definition: metrics_handler.h:266
uint64_t get_transactions_consistency_before_begin_time_sum() const
Sum of the time that the member waited until its group_replication_applier channel was consumed befor...
Definition: metrics_handler.cc:87
uint64_t get_transactions_consistency_after_sync_count() const
Number of transactions executed with group_replication_consistency=AFTER or BEFORE_AND_AFTER.
Definition: metrics_handler.cc:103
uint64_t get_transactions_consistency_before_begin_count() const
Number of transactions executed with group_replication_consistency=BEFORE or BEFORE_AND_AFTER.
Definition: metrics_handler.cc:82
uint64_t get_certification_garbage_collector_time_sum() const
Sum of the time that garbage collection runs took.
Definition: metrics_handler.cc:117
std::atomic< uint64_t > m_transactions_consistency_after_sync_count
Definition: metrics_handler.h:265
std::atomic< uint64_t > m_transactions_consistency_after_termination_time_sum
Definition: metrics_handler.h:262
uint64_t get_certification_garbage_collector_count() const
Number of times certification garbage collection did run.
Definition: metrics_handler.cc:113
void add_message_sent_internal(const enum_message_type type, const uint64_t bytes, const uint64_t sent_timestamp, const uint64_t received_timestamp)
Account message sent.
Definition: metrics_handler.cc:227
void add_garbage_collection_run(const uint64_t begin_timestamp, const uint64_t end_timestamp)
Account a certification garbage collection run.
Definition: metrics_handler.cc:290
uint64_t get_transactions_consistency_after_sync_time_sum() const
Sum of the time that transactions on secondaries waited to start, while waiting for transactions from...
Definition: metrics_handler.cc:108
virtual ~Metrics_handler()=default
std::atomic< uint64_t > m_control_messages_sent_roundtrip_time_sum
Definition: metrics_handler.h:255
void add_message_sent(const Gcs_message &message)
Account message sent.
Definition: metrics_handler.cc:121
std::atomic< uint64_t > m_transactions_consistency_before_begin_count
Definition: metrics_handler.h:258
std::atomic< uint64_t > m_transactions_consistency_after_termination_count
Definition: metrics_handler.h:261
std::atomic< uint64_t > m_control_messages_sent_count
Definition: metrics_handler.h:249
uint64_t get_data_messages_sent_roundtrip_time_sum() const
Sum of the roundtrip time in micro-seconds of messages that contain transaction data sent by this mem...
Definition: metrics_handler.cc:78
uint64_t get_control_messages_sent_roundtrip_time_sum() const
Sum of the roundtrip time in micro-seconds of control messages sent by this member.
Definition: metrics_handler.cc:74
static uint64_t get_current_time()
Return time in microseconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC)
Definition: metrics_handler.h:56
std::atomic< uint64_t > m_certification_garbage_collector_count
Definition: metrics_handler.h:268
std::atomic< uint64_t > m_transactions_consistency_before_begin_time_sum
Definition: metrics_handler.h:259
uint64_t get_transactions_consistency_after_termination_count() const
Number of transactions executed with group_replication_consistency=AFTER or BEFORE_AND_AFTER.
Definition: metrics_handler.cc:92
uint64_t get_data_messages_sent_count() const
Number of messages that contain transaction data sent by this member.
Definition: metrics_handler.cc:62
std::atomic< uint64_t > m_control_messages_sent_bytes_sum
Definition: metrics_handler.h:252
void add_transaction_consistency_before_begin(const uint64_t begin_timestamp, const uint64_t end_timestamp)
Account transaction that waited until its group_replication_applier channel was consumed before execu...
Definition: metrics_handler.cc:257
Defines for getting and processing the current system type programmatically.
unsigned long long int my_micro_time()
Return time in microseconds.
Definition: my_systime.h:182
required string type
Definition: replication_group_member_actions.proto:34