-
Notifications
You must be signed in to change notification settings - Fork 26
Add new metrics #342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new metrics #342
Changes from all commits
7d0cc86
fcbe67b
364f143
43102ed
2716b0e
8700e66
8104f9d
dfd32c4
9cc8b3d
00032b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -219,6 +219,33 @@ Requests: | |||||
* - ``tnt_net_requests_current`` | ||||||
- Number of pending network requests | ||||||
|
||||||
Requests in progress: | ||||||
|
||||||
.. container:: table | ||||||
|
||||||
.. list-table:: | ||||||
:widths: 25 75 | ||||||
:header-rows: 0 | ||||||
|
||||||
* - ``tnt_net_requests_in_progress_total`` | ||||||
- Total count of requests processed by tx thread | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It seems like either a mistake or a bad naming |
||||||
* - ``tnt_net_requests_in_progress_current`` | ||||||
- Count of requests currently being processed in the tx thread | ||||||
|
||||||
Requests placed in queues of streams: | ||||||
|
||||||
.. container:: table | ||||||
|
||||||
.. list-table:: | ||||||
:widths: 25 75 | ||||||
:header-rows: 0 | ||||||
|
||||||
* - ``tnt_net_requests_in_stream_total`` | ||||||
- Total count of requests, which was placed in queues of streams | ||||||
for all time | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or |
||||||
* - ``tnt_net_requests_in_stream_current`` | ||||||
- Count of requests currently waiting in queues of streams | ||||||
|
||||||
.. _metrics-reference-fibers: | ||||||
|
||||||
Fibers | ||||||
|
@@ -316,12 +343,16 @@ Learn more about :ref:`replication in Tarantool <replication-mechanism>`. | |||||
- LSN number in vclock. | ||||||
This metric always has the label ``{id="id"}``, | ||||||
where ``id`` is the instance's number in the replica set. | ||||||
* - ``tnt_replication_replica_<id>_lsn`` / ``tnt_replication_master_<id>_lsn`` | ||||||
- LSN of the master/replica, where | ||||||
``id`` is the instance's number in the replica set. | ||||||
* - ``tnt_replication_<id>_lag`` | ||||||
- Replication lag value in seconds, where | ||||||
``id`` is the instance's number in the replica set. | ||||||
* - ``tnt_replication_lsn`` | ||||||
- LSN of the tarantool instance. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
This metric always has labels ``{id="id", type="type"}``, where | ||||||
``id`` is the instance's number in the replica set, | ||||||
``type`` is ``master`` or ``replica``. | ||||||
* - ``tnt_replication_lag`` | ||||||
- Replication lag value in seconds. | ||||||
This metric always has labels ``{id="id", stream="stream"}``, | ||||||
where ``id`` is the instance's number in the replica set, | ||||||
``stream`` is ``downstream`` or ``upstream``. | ||||||
|
||||||
.. _metrics-reference-runtime: | ||||||
|
||||||
|
@@ -556,6 +587,9 @@ efficient. | |||||
The value is slightly smaller | ||||||
than the amount of memory allocated for vinyl trees, | ||||||
reflected in the :ref:`vinyl_memory <cfg_storage-vinyl_memory>` parameter. | ||||||
* - ``tnt_vinyl_regulator_blocked_writers`` | ||||||
- The number of fibers that are blocked waiting | ||||||
for Vinyl level0 memory quota. | ||||||
|
||||||
Transactional activity | ||||||
~~~~~~~~~~~~~~~~~~~~~~ | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,5 +26,10 @@ g.test_vinyl_metrics_present = function() | |
local metrics_cnt = fun.iter(metrics.collect()):filter(function(x) | ||
return x.metric_name:find('tnt_vinyl') | ||
end):length() | ||
t.assert_equals(metrics_cnt, 20) | ||
if utils.is_version_less(_TARANTOOL, '2.8.3') | ||
yngvar-antonsson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
and utils.is_version_greater(_TARANTOOL, '2.0.0') then | ||
t.assert_equals(metrics_cnt, 20) | ||
else | ||
t.assert_equals(metrics_cnt, 21) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, do we really should get there if Tarantool is 1.10.x? Condition says that we will. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, seems that was backported to the latest 1.10 version There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, that's interesting. But I still think we should add strict version comparison here for 1.10 |
||
end | ||
end |
Uh oh!
There was an error while loading. Please reload this page.