Mnesia Collector
View SourceMnesia Collector
Collects Mnesia metrics mainly using :mnesia:system_info/1.
Exported metrics
-
erlang_mnesia_held_locks
Type: gauge.
Number of held locks. -
erlang_mnesia_lock_queue
Type: gauge.
Number of transactions waiting for a lock. -
erlang_mnesia_transaction_participants
Type: gauge.
Number of participant transactions. -
erlang_mnesia_transaction_coordinators
Type: gauge.
Number of coordinator transactions. -
erlang_mnesia_failed_transactions
Type: counter.
Number of failed (i.e. aborted) transactions. -
erlang_mnesia_committed_transactions
Type: gauge.
Number of committed transactions. -
erlang_mnesia_logged_transactions
Type: counter.
Number of transactions logged. -
erlang_mnesia_restarted_transactions
Type: counter.
Total number of transaction restarts.
Configuration
Metrics exported by this collector can be configured via
mnesia_collector_metrics
key of prometheus
app environment.
Available options:
:held_locks
forerlang_mnesia_held_locks
;:lock_queue
forerlang_mnesia_lock_queue
;:transaction_participants
forerlang_mnesia_transaction_participants
;:transaction_coordinators
forerlang_mnesia_transaction_coordinators
;:transaction_failures
forerlang_mnesia_failed_transactions
;:transaction_commits
forerlang_mnesia_committed_transactions
;:transaction_log_writes
forerlang_mnesia_logged_transactions
;:transaction_restarts
forerlang_mnesia_restarted_transactions
.
By default all metrics are enabled.