MySQL 8.4.2
Source Code Documentation
mysql_server_telemetry_metrics_service_imp.cc File Reference

The performance schema implementation of server telemetry metrics service. More...

Classes

class  meter_iterator
 
class  metric_iterator
 

Functions

void initialize_mysql_server_telemetry_metrics_service ()
 
void cleanup_mysql_server_telemetry_metrics_service ()
 
bool imp_meters_iterator_create (telemetry_meters_iterator *out_iterator)
 
bool imp_meters_iterator_destroy (telemetry_meters_iterator iterator)
 
bool imp_meters_iterator_next (telemetry_meters_iterator iterator)
 
bool imp_meters_get_name (telemetry_meters_iterator iterator, my_h_string *out_name_handle)
 
bool imp_meters_get_frequency (telemetry_meters_iterator iterator, unsigned int &value)
 
bool imp_meters_get_enabled (telemetry_meters_iterator iterator, bool &enabled)
 
bool imp_meters_get_description (telemetry_meters_iterator iterator, my_h_string *out_desc_handle)
 
bool imp_metrics_iterator_create (const char *meter, telemetry_metrics_iterator *out_iterator)
 
bool imp_metrics_iterator_destroy (telemetry_metrics_iterator iterator)
 
bool imp_metrics_iterator_next (telemetry_metrics_iterator iterator)
 
bool imp_metrics_get_group (telemetry_metrics_iterator iterator, my_h_string *out_group_handle)
 
bool imp_metrics_get_name (telemetry_metrics_iterator iterator, my_h_string *out_name_handle)
 
bool imp_metrics_get_description (telemetry_metrics_iterator iterator, my_h_string *out_desc_handle)
 
bool imp_metrics_get_unit (telemetry_metrics_iterator iterator, my_h_string *out_unit_handle)
 
bool imp_metric_get_numeric_type (telemetry_metrics_iterator iterator, MetricNumType &numeric)
 
bool imp_metric_get_metric_type (telemetry_metrics_iterator iterator, MetricOTELType &metric_type)
 
bool imp_metrics_get_value (telemetry_metrics_iterator iterator, measurement_delivery_callback_t delivery, void *delivery_context)
 
bool imp_metrics_get_callback (telemetry_metrics_iterator iterator, measurement_callback_t &callback, void *&measurement_context)
 
bool imp_measurement_start ()
 
bool imp_measurement_end ()
 

Variables

mysql_rwlock_t LOCK_pfs_metrics
 
mysql_mutex_t LOCK_status
 
const mysql_service_mysql_server_telemetry_metrics_v1_t imp_performance_schema_mysql_server_telemetry_metrics_v1
 
bool server_telemetry_metrics_service_initialized = false
 

Detailed Description

The performance schema implementation of server telemetry metrics service.

Function Documentation

◆ cleanup_mysql_server_telemetry_metrics_service()

void cleanup_mysql_server_telemetry_metrics_service ( )

◆ imp_measurement_end()

bool imp_measurement_end ( )

◆ imp_measurement_start()

bool imp_measurement_start ( )

◆ imp_meters_get_description()

bool imp_meters_get_description ( telemetry_meters_iterator  iterator,
my_h_string out_desc_handle 
)

◆ imp_meters_get_enabled()

bool imp_meters_get_enabled ( telemetry_meters_iterator  iterator,
bool &  enabled 
)

◆ imp_meters_get_frequency()

bool imp_meters_get_frequency ( telemetry_meters_iterator  iterator,
unsigned int &  value 
)

◆ imp_meters_get_name()

bool imp_meters_get_name ( telemetry_meters_iterator  iterator,
my_h_string out_name_handle 
)

◆ imp_meters_iterator_create()

bool imp_meters_iterator_create ( telemetry_meters_iterator out_iterator)

◆ imp_meters_iterator_destroy()

bool imp_meters_iterator_destroy ( telemetry_meters_iterator  iterator)

◆ imp_meters_iterator_next()

bool imp_meters_iterator_next ( telemetry_meters_iterator  iterator)

◆ imp_metric_get_metric_type()

bool imp_metric_get_metric_type ( telemetry_metrics_iterator  iterator,
MetricOTELType metric_type 
)

◆ imp_metric_get_numeric_type()

bool imp_metric_get_numeric_type ( telemetry_metrics_iterator  iterator,
MetricNumType numeric 
)

◆ imp_metrics_get_callback()

bool imp_metrics_get_callback ( telemetry_metrics_iterator  iterator,
measurement_callback_t callback,
void *&  measurement_context 
)

◆ imp_metrics_get_description()

bool imp_metrics_get_description ( telemetry_metrics_iterator  iterator,
my_h_string out_desc_handle 
)

◆ imp_metrics_get_group()

bool imp_metrics_get_group ( telemetry_metrics_iterator  iterator,
my_h_string out_group_handle 
)

◆ imp_metrics_get_name()

bool imp_metrics_get_name ( telemetry_metrics_iterator  iterator,
my_h_string out_name_handle 
)

◆ imp_metrics_get_unit()

bool imp_metrics_get_unit ( telemetry_metrics_iterator  iterator,
my_h_string out_unit_handle 
)

◆ imp_metrics_get_value()

bool imp_metrics_get_value ( telemetry_metrics_iterator  iterator,
measurement_delivery_callback_t  delivery,
void *  delivery_context 
)

◆ imp_metrics_iterator_create()

bool imp_metrics_iterator_create ( const char *  meter,
telemetry_metrics_iterator out_iterator 
)

◆ imp_metrics_iterator_destroy()

bool imp_metrics_iterator_destroy ( telemetry_metrics_iterator  iterator)

◆ imp_metrics_iterator_next()

bool imp_metrics_iterator_next ( telemetry_metrics_iterator  iterator)

◆ initialize_mysql_server_telemetry_metrics_service()

void initialize_mysql_server_telemetry_metrics_service ( )

Variable Documentation

◆ imp_performance_schema_mysql_server_telemetry_metrics_v1

const mysql_service_mysql_server_telemetry_metrics_v1_t imp_performance_schema_mysql_server_telemetry_metrics_v1
Initial value:
= {
bool imp_metric_get_metric_type(telemetry_metrics_iterator iterator, MetricOTELType &metric_type)
Definition: mysql_server_telemetry_metrics_service_imp.cc:595
bool imp_meters_iterator_create(telemetry_meters_iterator *out_iterator)
Definition: mysql_server_telemetry_metrics_service_imp.cc:277
bool imp_metric_get_numeric_type(telemetry_metrics_iterator iterator, MetricNumType &numeric)
Definition: mysql_server_telemetry_metrics_service_imp.cc:574
bool imp_meters_get_description(telemetry_meters_iterator iterator, my_h_string *out_desc_handle)
Definition: mysql_server_telemetry_metrics_service_imp.cc:389
bool imp_metrics_get_unit(telemetry_metrics_iterator iterator, my_h_string *out_unit_handle)
Definition: mysql_server_telemetry_metrics_service_imp.cc:548
bool imp_metrics_get_name(telemetry_metrics_iterator iterator, my_h_string *out_name_handle)
Definition: mysql_server_telemetry_metrics_service_imp.cc:490
bool imp_meters_iterator_next(telemetry_meters_iterator iterator)
Definition: mysql_server_telemetry_metrics_service_imp.cc:306
bool imp_meters_get_enabled(telemetry_meters_iterator iterator, bool &enabled)
Definition: mysql_server_telemetry_metrics_service_imp.cc:369
bool imp_metrics_iterator_destroy(telemetry_metrics_iterator iterator)
Definition: mysql_server_telemetry_metrics_service_imp.cc:435
bool imp_metrics_get_value(telemetry_metrics_iterator iterator, measurement_delivery_callback_t delivery, void *delivery_context)
Definition: mysql_server_telemetry_metrics_service_imp.cc:616
bool imp_meters_get_frequency(telemetry_meters_iterator iterator, unsigned int &value)
Definition: mysql_server_telemetry_metrics_service_imp.cc:348
bool imp_meters_iterator_destroy(telemetry_meters_iterator iterator)
Definition: mysql_server_telemetry_metrics_service_imp.cc:294
bool imp_measurement_start()
Definition: mysql_server_telemetry_metrics_service_imp.cc:665
bool imp_metrics_get_description(telemetry_metrics_iterator iterator, my_h_string *out_desc_handle)
Definition: mysql_server_telemetry_metrics_service_imp.cc:518
bool imp_measurement_end()
Definition: mysql_server_telemetry_metrics_service_imp.cc:674
bool imp_metrics_iterator_next(telemetry_metrics_iterator iterator)
Definition: mysql_server_telemetry_metrics_service_imp.cc:447
bool imp_metrics_get_group(telemetry_metrics_iterator iterator, my_h_string *out_group_handle)
Definition: mysql_server_telemetry_metrics_service_imp.cc:463
bool imp_metrics_get_callback(telemetry_metrics_iterator iterator, measurement_callback_t &callback, void *&measurement_context)
Definition: mysql_server_telemetry_metrics_service_imp.cc:642
bool imp_meters_get_name(telemetry_meters_iterator iterator, my_h_string *out_name_handle)
Definition: mysql_server_telemetry_metrics_service_imp.cc:322
bool imp_metrics_iterator_create(const char *meter, telemetry_metrics_iterator *out_iterator)
Definition: mysql_server_telemetry_metrics_service_imp.cc:416

◆ LOCK_pfs_metrics

mysql_rwlock_t LOCK_pfs_metrics
extern

◆ LOCK_status

mysql_mutex_t LOCK_status
extern

◆ server_telemetry_metrics_service_initialized

bool server_telemetry_metrics_service_initialized = false