-
Notifications
You must be signed in to change notification settings - Fork 876
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
Re-implement connected_client to have deterministic cardinality #950
Re-implement connected_client to have deterministic cardinality #950
Conversation
Quick comments (warning: I do not know any go):
|
Thanks @hiroshi-ishii for the review - see below:
|
Hey there and thanks for opening the PR! One request though: can we keep the name of the current client detail metric the same so you don't introduce backwards incompatible changes? Let me know when you're ready for code review and want comments and then I'll have a look. Oh, and one more request: can you rebase the PR please? I moved the tests over to Github Actions yesterday and I don't see that here yet. |
356dd9a
to
648f6f8
Compare
Tx!
It is an optional feature and I'm not sure how much it was used given it's current state also it wont have the same labels. Then again the old name doesn't really follow the Prometheus naming convention. I would suggest to duplicate it the name instead.
It's ready :)
I've rebased on the latest and greatest main/master. Thanks! |
@mindw |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looked at the new changes
Thanks @mindw, looks good. Let's see what @oliver006 says. |
7ead98b
to
11daff8
Compare
Pull Request Test Coverage Report for Build 10993316969Details
💛 - Coveralls |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #950 +/- ##
==========================================
+ Coverage 80.25% 81.63% +1.38%
==========================================
Files 17 17
Lines 1980 2129 +149
==========================================
+ Hits 1589 1738 +149
Misses 306 306
Partials 85 85 ☔ View full report in Codecov by Sentry. |
@oliver006 this is ready for your review :) |
11daff8
to
fd3ea08
Compare
Sorry about the delay - having a look now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall approach looks good - just a couple of smaller things
17efb98
to
4f2bf38
Compare
Signed-off-by: Gabi Davar <grizzly.nyo@gmail.com>
@oliver006 IMO all comments were addressed, anything else? |
Apologies for the delay, I didn't have much time last week, will get back to this again in the next few days. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work - thanks for getting this done!
The current connected client suffers from some drawbacks rendering much less useful than it should:
id
field which uniquely identifies the client is missing from the labels.This PR attempts to ratify all that:
connected_clients_details
toconnected_client_info
(as per prometheus naming conventions) - dropping all high cardinality labels.connected_client_output_buffer_memory_usage_bytes
,connected_client_total_memory_consumed
,connected_client_created_at_timestamp
,connected_client_idle_since_timestamp
,connected_client_channel_subscriptions_count
,connected_client_pattern_matching_subscriptions_count
,connected_client_shard_channel_subscriptions_count
andconnected_client_shard_channel_watched_keys
metrics per client.id
to all metrics.I'm still running some tests on the output metrics, so please don't merge it yet :)Input, missing bits (docs?) are welcome!