STATrt library API

STATrt is a component of the mcolib library responsible for collecting runtime statistics. The collected data can then be exposed externally via a REST API using the RESTrt and EWSLite libraries.

mco_stat_counter_count
Retrieve the total number of registered runtime statistics counters and histograms.
mco_stat_counter_get
Retrieve the current value of a registered runtime statistics counter.
mco_stat_get_all
Retrieve and optionally reset aggregated runtime statistics for all active database connections.
mco_stat_get_conn_stats
Retrieve and optionally reset statistics for a specific database connection or aggregated across all connections of a database.
mco_stat_get_counter_info
Retrieve metadata for a registered runtime statistics counter.
mco_stat_get_histogram_source
Retrieve the internal histogram index associated with a given statistics counter.
mco_stat_histogram_append
Add a new value to a statistics histogram.
mco_stat_histogram_get
Retrieve a pointer to a specific histogram by its internal index.
mco_stat_histogram_init
Initialize a statistics histogram structure to its default state.
mco_statrt_get
Retrieve the current value of a registered runtime statistics counter.
mco_statrt_register_counter
Register a new runtime statistics counter with an optional histogram.
mco_statrt_update
Update the value of a registered runtime statistics counter using a specified operation.
mco_stat_memsize
Calculate the amount of memory required to store runtime statistics for a database instance.
mco_stat_get_disk_stats
Get and reset disk statistics for the current connection.
mco_disk_stat
Retrieve and reset disk I/O statistics for the current database connection.