-
Notifications
You must be signed in to change notification settings - Fork 10
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
Instrument connection limit and current count for http blackholes #1190
Instrument connection limit and current count for http blackholes #1190
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
CC @remeh |
lading/src/blackhole/common.rs
Outdated
let shutdown_fut = shutdown.recv(); | ||
pin!(shutdown_fut); | ||
loop { | ||
gauge!("connection.current", &labels).set(sem.available_permits() as f64); |
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.
we claim a permit upon accepting a connection, so wouldn't available_permits
be the inverse of what we want? ie, we should use sem.claimed_permits
to track the number of current connections
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.
D'oh, yep.
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.
Addressed in 75ecd70
2e1a3a2
to
a8a5566
Compare
4d7e361
to
b2f3c8b
Compare
a8a5566
to
3fe8e76
Compare
This commit introduces telemetry keeping track of the connection limit for http blackholes and the current connection count. This is desirable information for targets that wish to trade total connections for other resources. Signed-off-by: Brian L. Troutwine <[email protected]>
Signed-off-by: Brian L. Troutwine <[email protected]>
3fe8e76
to
75ecd70
Compare
Merge activity
|
What does this PR do?
This commit introduces telemetry keeping track of the connection
limit for http blackholes and the current connection count. This is
desirable information for targets that wish to trade total connections
for other resources.