View Source prometheus_mnesia_collector (prometheus v4.13.0)
Collects Mnesia metrics mainly using mnesia:system_info/1.
Exported metrics
erlang_mnesia_held_locksType: gauge. Number of held locks.erlang_mnesia_lock_queueType: gauge. Number of transactions waiting for a lock.erlang_mnesia_transaction_participantsType: gauge. Number of participant transactions.erlang_mnesia_transaction_coordinatorsType: gauge. Number of coordinator transactions.erlang_mnesia_failed_transactionsType: counter. Number of failed (i.e. aborted) transactions.erlang_mnesia_committed_transactionsType: gauge. Number of committed transactions.erlang_mnesia_logged_transactionsType: counter. Number of transactions logged.erlang_mnesia_restarted_transactionsType: counter. Total number of transaction restarts.erlang_mnesia_memory_usage_bytesType: gauge. Total number of bytes allocated by all mnesia tables.erlang_mnesia_tablewise_memory_usage_bytes' Type: gauge. Number of bytes allocated per mnesia table *erlang_mnesia_tablewise_size' Type: gauge. Number of rows present per table
Configuration
Metrics exported by this collector can be configured via mnesia_collector_metrics key
of the prometheus app environment.
Available options:
held_locksforerlang_mnesia_held_locks;lock_queueforerlang_mnesia_lock_queue;transaction_participantsforerlang_mnesia_transaction_participants;transaction_coordinatorsforerlang_mnesia_transaction_coordinators;transaction_failuresforerlang_mnesia_failed_transactions;transaction_commitsforerlang_mnesia_committed_transactions;transaction_log_writesforerlang_mnesia_logged_transactions;transaction_restartsforerlang_mnesia_restarted_transactions;memory_usage_bytesforerlang_mnesia_memory_usage_bytes.
By default all metrics are enabled.