Skip to content

Commit e4c5fe5

Browse files
committed
Metrics docs: update per TW review 2
1 parent 4470310 commit e4c5fe5

File tree

1 file changed

+33
-58
lines changed

1 file changed

+33
-58
lines changed

doc/book/admin/monitoring/metrics_reference.rst

+33-58
Original file line numberDiff line numberDiff line change
@@ -731,13 +731,13 @@ Shows the current state of a replica set node in regards to leader election.
731731
:header-rows: 0
732732

733733
* - ``tnt_election_state``
734-
- election state (mode) of the node.
734+
- Election state (mode) of the node.
735735
When election is enabled, the node is writable only in the leader state.
736736
Possible values:
737737

738-
* 0 (``follower``) -- all the non-leader nodes are called followers
739-
* 1 (``candidate``) -- the nodes that start a new election round are called candidates.
740-
* 2 (``leader``) -- the node that collected a quorum of votes becomes the leader
738+
* 0 (``follower``): all the non-leader nodes are called followers
739+
* 1 (``candidate``): the nodes that start a new election round are called candidates.
740+
* 2 (``leader``): the node that collected a quorum of votes becomes the leader
741741

742742
* - ``tnt_election_vote``
743743
- ID of a node the current node votes for.
@@ -758,6 +758,7 @@ Memtx
758758

759759
Memtx mvcc memory statistics.
760760
Transaction manager consists of two parts:
761+
761762
- the transactions themselves (TXN section)
762763
- MVCC
763764

@@ -778,38 +779,29 @@ TXN
778779
This metric always has the label ``{kind="..."}``,
779780
which has the following possible values:
780781

781-
* ``total``
782-
The number of bytes that are allocated for the statements of all current transactions.
783-
* ``average``
784-
Average bytes used by transactions for statements
782+
* ``total``: the number of bytes that are allocated for the statements of all current transactions.
783+
* ``average``: average bytes used by transactions for statements
785784
(`txn.statements.total` bytes / number of open transactions).
786-
* ``max``
787-
The maximum number of bytes used by one the current transaction for statements.
785+
* ``max``: the maximum number of bytes used by one the current transaction for statements.
788786

789787
* - ``tnt_memtx_tnx_user``
790788
- In Tarantool C API there is a function `box_txn_alloc()`.
791789
By using this function user can allocate memory for the current transaction.
792790
This metric always has the label ``{kind="..."}``,
793791
which has the following possible values:
794792

795-
* ``total``
796-
Memory allocated by the `box_txn_alloc()` function on all current transactions.
797-
* ``average``
798-
Transaction average (total allocated bytes / number of all current transactions).
799-
* ``max``
800-
The maximum number of bytes allocated by `box_txn_alloc()` function per transaction.
793+
* ``total``: memory allocated by the `box_txn_alloc()` function on all current transactions.
794+
* ``average``: transaction average (total allocated bytes / number of all current transactions).
795+
* ``max``: the maximum number of bytes allocated by `box_txn_alloc()` function per transaction.
801796

802797
* - ``tnt_memtx_tnx_system``
803798
- There are internals: logs, savepoints.
804799
This metric always has the label ``{kind="..."}``,
805800
which has the following possible values:
806801

807-
* ``total``
808-
Memory allocated by internals on all current transactions.
809-
* ``average``
810-
Average allocated memory by internals (total memory / number of all current transactions).
811-
* ``max``
812-
The maximum number of bytes allocated by internals per transaction.
802+
* ``total``: memory allocated by internals on all current transactions.
803+
* ``average``: average allocated memory by internals (total memory / number of all current transactions).
804+
* ``max``: the maximum number of bytes allocated by internals per transaction.
813805

814806
.. _metrics-reference-memtx_mvcc:
815807

@@ -831,24 +823,18 @@ It detects conflicts and makes sure that tuples that are no longer in the space,
831823
This metric always has the label ``{kind="..."}``,
832824
which has the following possible values:
833825

834-
* ``total``
835-
Trackers of all current transactions are allocated in total (in bytes).
836-
* ``average``
837-
Average for all current transactions (total memory bytes / number of transactions).
838-
* ``max``
839-
Maximum trackers allocated per transaction (in bytes).
826+
* ``total``: trackers of all current transactions are allocated in total (in bytes).
827+
* ``average``: average for all current transactions (total memory bytes / number of transactions).
828+
* ``max``: maximum trackers allocated per transaction (in bytes).
840829

841830
* - ``tnt_memtx_mvcc_conflicts``
842831
- Allocated in case of transaction conflicts.
843832
This metric always has the label ``{kind="..."}``,
844833
which has the following possible values:
845834

846-
* ``total``
847-
Bytes allocated for conflicts in total.
848-
* ``average``
849-
Average for all current transactions (total memory bytes / number of transactions).
850-
* ``max``
851-
Maximum bytes allocated for conflicts per transaction.
835+
* ``total``: bytes allocated for conflicts in total.
836+
* ``average``: average for all current transactions (total memory bytes / number of transactions).
837+
* ``max``: maximum bytes allocated for conflicts per transaction.
852838

853839

854840
.. _metrics-reference-tuples:
@@ -860,6 +846,7 @@ Tuples
860846
Saved tuples are divided into 3 categories: ``used``, ``read_view``, ``tracking``.
861847

862848
Each category has two metrics:
849+
863850
- ``retained`` tuples - they are no longer in the index, but MVCC does not allow them to be removed.
864851
- ``stories`` - MVCC is based on the story mechanism, almost every tuple has a story.
865852
This is a separate metric because even the tuples that are in the index can have a story.
@@ -876,32 +863,26 @@ So ``stories`` and ``retained`` need to be measured separately.
876863
This metric always has the label ``{kind="..."}``,
877864
which has the following possible values:
878865

879-
* ``count``
880-
Number of ``used`` tuples / number of stories.
881-
* ``total``
882-
Amount of bytes used by stories ``used`` tuples.
866+
* ``count``: number of ``used`` tuples / number of stories.
867+
* ``total``: amount of bytes used by stories ``used`` tuples.
883868

884869
* - ``tnt_memtx_mvcc_tuples_used_retained``
885870
- Tuples that are used by active read-write transactions.
886871
But they are no longer in the index, but MVCC does not allow them to be removed.
887872
This metric always has the label ``{kind="..."}``,
888873
which has the following possible values:
889874

890-
* ``count``
891-
Number of retained ``used`` tuples / number of stories.
892-
* ``total``
893-
Amount of bytes used by retained ``used`` tuples.
875+
* ``count``: number of retained ``used`` tuples / number of stories.
876+
* ``total``: amount of bytes used by retained ``used`` tuples.
894877

895878
* - ``tnt_memtx_mvcc_tuples_read_view_stories``
896879
- Tuples that are not used by active read-write transactions,
897880
but are used by read-only transactions (i.e. in read view).
898881
This metric always has the label ``{kind="..."}``,
899882
which has the following possible values:
900883

901-
* ``count``
902-
Number of ``read_view`` tuples / number of stories.
903-
* ``total``
904-
Amount of bytes used by stories ``read_view`` tuples.
884+
* ``count``: number of ``read_view`` tuples / number of stories.
885+
* ``total``: amount of bytes used by stories ``read_view`` tuples.
905886

906887
* - ``tnt_memtx_mvcc_tuples_read_view_retained``
907888
- Tuples that are not used by active read-write transactions,
@@ -910,31 +891,25 @@ So ``stories`` and ``retained`` need to be measured separately.
910891
This metric always has the label ``{kind="..."}``,
911892
which has the following possible values:
912893

913-
* ``count``
914-
Number of retained ``read_view`` tuples / number of stories.
915-
* ``total``
916-
Amount of bytes used by retained ``read_view`` tuples.
894+
* ``count``: number of retained ``read_view`` tuples / number of stories.
895+
* ``total``: amount of bytes used by retained ``read_view`` tuples.
917896

918897
* - ``tnt_memtx_mvcc_tuples_tracking_stories``
919898
- Tuples that are not directly used by any transactions, but are used by MVCC to track reads.
920899
This metric always has the label ``{kind="..."}``,
921900
which has the following possible values:
922901

923-
* ``count``
924-
Number of ``tracking`` tuples / number of tracking stories.
925-
* ``total``
926-
Amount of bytes used by stories ``tracking`` tuples.
902+
* ``count``: number of ``tracking`` tuples / number of tracking stories.
903+
* ``total``: amount of bytes used by stories ``tracking`` tuples.
927904

928905
* - ``tnt_memtx_mvcc_tuples_tracking_retained``
929906
- Tuples that are not directly used by any transactions, but are used by MVCC to track reads.
930907
This tuples are no longer in the index, but MVCC does not allow them to be removed.
931908
This metric always has the label ``{kind="..."}``,
932909
which has the following possible values:
933910

934-
* ``count``
935-
Number of retained ``tracking`` tuples / number of stories.
936-
* ``total``
937-
Amount of bytes used by retained ``tracking`` tuples.
911+
* ``count``: number of retained ``tracking`` tuples / number of stories.
912+
* ``total``: amount of bytes used by retained ``tracking`` tuples.
938913

939914

940915
.. _metrics-reference-read-view:

0 commit comments

Comments
 (0)