Prometheus.ex v3.0.2 Prometheus.Contrib.Mnesia View Source
Mnesia instrumentation helpers.
Link to this section Summary
Functions
Returns sum of all mnesia files for the given table
in bytes.
Mnesia can create different files for each table:
- .DAT - DETS files
- .TMP - temp files
- .DMP - dumped ets tables
- .DCD - disc copies data
- .DCL - disc copies log
- .LOGTMP - disc copies log
Returns {pcount, ccount} tuple, where pcount is a number of participant transactions and ccount is a number of coordinator transactions. Can return {:undefined, :undefined} occasionally
Link to this section Functions
Link to this macro
table_disk_size(dir \\ quote() do
:mnesia.system_info(:directory)
end, table)
View Source
(macro)
Returns sum of all mnesia files for the given table
in bytes.
Mnesia can create different files for each table:
- .DAT - DETS files
- .TMP - temp files
- .DMP - dumped ets tables
- .DCD - disc copies data
- .DCL - disc copies log
- .LOGTMP - disc copies log
More on Mnesia files can be found in
Mnesia System Information chapter of Mnesia User's GuideReturns {pcount, ccount} tuple, where pcount is a number of participant transactions and ccount is a number of coordinator transactions. Can return {:undefined, :undefined} occasionally.