Skip to content

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

Merged
merged 10 commits into from
Feb 21, 2022
Merged

Add new metrics #342

merged 10 commits into from
Feb 21, 2022

Conversation

yngvar-antonsson
Copy link
Contributor

@yngvar-antonsson yngvar-antonsson commented Feb 17, 2022

  • tnt_replication_upstream_id_lag
  • tnt_replication_downstream_id_lag
  • tnt_vinyl_regulator_blocked_writers
  • tnt_net_requests_in_progress_total
  • tnt_net_requests_in_progress_current
  • tnt_net_requests_in_stream_total
  • tnt_net_requests_in_stream_current

I didn't forget about

  • Tests
  • Changelog
  • Documentation (README and rst)

Close #337

- tnt_replication_upstream_<id>_lag
- tnt_replication_downstream_<id>_lag
- tnt_vinyl_regulator_blocked_writers
- tnt_net_requests_in_progress_total
- tnt_net_requests_in_progress_current
- tnt_net_requests_in_stream_total
- tnt_net_requests_in_stream_current
and utils.is_version_greater(_TARANTOOL, '2.0.0') then
t.assert_equals(metrics_cnt, 20)
else
t.assert_equals(metrics_cnt, 21)
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, seems that was backported to the latest 1.10 version

Copy link
Member

Choose a reason for hiding this comment

The 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

@yngvar-antonsson yngvar-antonsson merged commit cb93509 into master Feb 21, 2022
@yngvar-antonsson yngvar-antonsson deleted the new-metrics branch February 21, 2022 14:48
CHANGELOG.md Outdated
- `tnt_net_requests_in_progress_current`
- `tnt_net_requests_in_stream_total`
- `tnt_net_requests_in_stream_current`
- `replication_lsn`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No tnt_ suffix?

:header-rows: 0

* - ``tnt_net_requests_in_progress_total``
- Total count of requests processed by tx thread
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requests_in_progress
count of requests processed

It seems like either a mistake or a bad naming


* - ``tnt_net_requests_in_stream_total``
- Total count of requests, which was placed in queues of streams
for all time
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for all time
for the whole time

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or for the instance lifetime. We should have many metrics like this, choose something consistent

- Replication lag value in seconds, where
``id`` is the instance's number in the replica set.
* - ``tnt_replication_lsn``
- LSN of the tarantool instance.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- LSN of the tarantool instance.
- LSN of a tarantool instance.

@DifferentialOrange
Copy link
Member

DifferentialOrange commented Feb 21, 2022

Damn, I forgot to submit my last review. If anything still seems relevant, please fix it in separate PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add new metrics
3 participants