# Module mrdb_stats # * [Description](#description) * [Data Types](#types) * [Function Index](#index) * [Function Details](#functions) Statistics API for the mnesia_rocksdb plugin. ## Description ## Some counters are maintained for each active alias. Currently, the following counters are supported: * inner_retries * outer_retries ## Data Types ## ### alias() ###
alias() = mnesia_rocksdb:alias()
### counter() ###
counter() = atom()
### counters() ###
counters() = #{counter() => integer()}
### db_ref() ###
db_ref() = mrdb:db_ref()
### increment() ###
increment() = integer()
## Function Index ##
| get/1 | Fetches all known counters for Alias, in the form of a map,
#{Counter => Value}. |
| get/2 | Fetches the integer value of the known counter Ctr for Alias. |
| incr/3 | Increment Ctr counter for Alias` with increment `N. |
| new/0 |
get(Alias::alias() | db_ref()) -> counters()
get(Alias::alias() | db_ref(), Ctr::counter()) -> integer()
incr(Alias::alias() | db_ref(), Ctr::counter(), N::increment()) -> ok