MySQL 9.1.0
Source Code Documentation
|
Service exposes the following methods to discover registered meters using an meter iterator:
meter_iterator_create
: create meter iterator (on success points to 1st meter)meter_iterator_destroy
: destroy meter iteratormeter_iterator_advance
: advance meter iterator to point to next meter (if exists)meter_get_name
: get name of the meter, given an iterator pointing to itmeter_get_frequency
: get export frequency of the meter (in seconds), given an iteratormeter_get_enabled
: get enabled status of the meter, given an iteratormeter_get_description
: get meter description, given an iteratorAnother set of methods is used to discover (or get measurements of) metrics within a given meter using a metric iterator:
metric_iterator_create
: create metric iterator (on success points to 1st metric of a given meter)metric_iterator_destroy
: destroy metric iteratormetric_iterator_advance
: advance metric iterator to point to next meter (if exists)metric_get_group
: get meter name this metric belongs to, given an iteratormetric_get_name
: get metric name, given an iteratormetric_get_description
: get metric description, given an iteratormetric_get_unit
: get metric unit, given an iteratormetric_get_numeric_type
: get metric measurement numeric type (integer or float), given an iteratormetric_get_metric_type
: get metric Open Telemetry type, given an iteratormetric_get_value
: get metric measurement values (with optional key/value attributes attached to each value)metrics_get_callback
: get metric measurement callback function pointermetrics_get_callback_context
: get metric measurement context pointerThe last set of methods is used on telemetry metrics measurement export to optimize internal locking:
measurement_start
: call this before the exportmeasurement_end
: call this after the export