View Source prometheus_mnesia_collector (prometheus v5.0.0)
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.erlang_mnesia_memory_usage_bytes
Type: 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_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
;memory_usage_bytes
forerlang_mnesia_memory_usage_bytes
.
By default all metrics are enabled.