Skip to content

Latest commit

 

History

History
75 lines (51 loc) · 2.04 KB

prometheus_mnesia_collector.md

File metadata and controls

75 lines (51 loc) · 2.04 KB

Module prometheus_mnesia_collector

Collects Mnesia metrics mainly using mnesia:system_info/1 .

Behaviours: prometheus_collector.

Description

  • 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.

Metrics exported by this collector can be configured via mnesia_collector_metrics key of prometheus app environment.

Available options:

  • held_locks for erlang_mnesia_held_locks;
  • lock_queue for erlang_mnesia_lock_queue;
  • transaction_participants for erlang_mnesia_transaction_participants;
  • transaction_coordinators for erlang_mnesia_transaction_coordinators;
  • transaction_failures for erlang_mnesia_failed_transactions;
  • transaction_commits for erlang_mnesia_committed_transactions;
  • transaction_log_writes for erlang_mnesia_logged_transactions;
  • transaction_restarts for erlang_mnesia_restarted_transactions;
  • memory_usage_bytes for erlang_mnesia_memory_usage_bytes.

By default all metrics are enabled.