-
Notifications
You must be signed in to change notification settings - Fork 1
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
TCP proxy metrics server #13
Conversation
DuplexEvent::DownstreamRead(n) => { | ||
state | ||
.metrics | ||
.count_total_packages_bytes(&consumer, &namespace, &instance, n); | ||
|
||
io_client.write_all(&upstream_buf[0..n]).await.unwrap(); | ||
io_client.flush().await.unwrap(); | ||
} | ||
DuplexEvent::UpstreamRead(n) => { | ||
state | ||
.metrics | ||
.count_total_packages_bytes(&consumer, &namespace, &instance, n); | ||
|
||
io_server.write_all(&downstream_buf[0..n]).await.unwrap(); | ||
io_server.flush().await.unwrap(); | ||
} |
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.
Here is where the byte rate limiter should act right?
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.
yes
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.
n is the quantity
Close #9