MySQL 9.1.0
Source Code Documentation
s_mysql_replication_applier_metrics Struct Reference

A service that allows you to extract stats from the replica applier. More...

#include <rpl_applier_metrics_service.h>

Public Attributes

mysql_service_status_t(* get_applier_metrics )(Applier_metrics_table *table)
 Get metrics for the replication applier. More...
 
void(* free_applier_metrics )(Applier_metrics_table *table)
 Free memory for object holding metrics for the replication applier. More...
 
mysql_service_status_t(* get_worker_metrics )(Worker_metrics_table *table)
 Get metrics for replication workers. More...
 
void(* free_worker_metrics )(Worker_metrics_table *table)
 Free memory for object holding metrics for the replication workers. More...
 
mysql_service_status_t(* enable_metric_collection )()
 Enables metric collection in the server for replication applier components. More...
 
mysql_service_status_t(* disable_metric_collection )()
 Enables metric collection in the server for replication applier components. More...
 

Detailed Description

A service that allows you to extract stats from the replica applier.

You can extract general metrics for every running coordindator. You can extract metrics for all replication workers running

Member Data Documentation

◆ disable_metric_collection

mysql_service_status_t(* s_mysql_replication_applier_metrics::disable_metric_collection) ()

Enables metric collection in the server for replication applier components.

Returns
Return values
FALSESucceeded.
TRUEFailed.

◆ enable_metric_collection

mysql_service_status_t(* s_mysql_replication_applier_metrics::enable_metric_collection) ()

Enables metric collection in the server for replication applier components.

Returns
Return values
FALSESucceeded.
TRUEFailed.

◆ free_applier_metrics

void(* s_mysql_replication_applier_metrics::free_applier_metrics) (Applier_metrics_table *table)

Free memory for object holding metrics for the replication applier.

Parameters
[out]tablePointer to object that was previously retrieved from get_applier_metrics.

◆ free_worker_metrics

void(* s_mysql_replication_applier_metrics::free_worker_metrics) (Worker_metrics_table *table)

Free memory for object holding metrics for the replication workers.

Parameters
[out]tablePointer to object that was previously retrieved from get_worker_metrics.

◆ get_applier_metrics

mysql_service_status_t(* s_mysql_replication_applier_metrics::get_applier_metrics) (Applier_metrics_table *table)

Get metrics for the replication applier.

Parameters
[out]tablepointer, whose value will be set to an array of arrays of fields in which the metric values are stored.
Returns
Return values
FALSESucceeded.
TRUEFailed.

◆ get_worker_metrics

mysql_service_status_t(* s_mysql_replication_applier_metrics::get_worker_metrics) (Worker_metrics_table *table)

Get metrics for replication workers.

Parameters
[out]tablepointer, whose value will be set to an array of arrays of fields in which the metric values are stored.
Returns
Return values
FALSESucceeded.
TRUEFailed.

The documentation for this struct was generated from the following file: