Skip to content

Commit

Permalink
net: add rate-rejected connection metric
Browse files Browse the repository at this point in the history
Add connections_rejected_rate_limit which counts connections rejected
due to the rate limit, analogously to the existing metric which counts
rejected connections due to the hitting the open connection limit.

Fixes CORE-6827.
  • Loading branch information
travisdowns committed Aug 8, 2024
1 parent e55a2be commit b1f3372
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/v/net/probes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ void server_probe::setup_metrics(
"{}: Number of connection attempts rejected for hitting open "
"connection count limits",
proto))),
sm::make_counter(
"connections_rejected_rate_limit",
[this] { return _connections_rejected_rate_limit; },
sm::description(ssx::sformat(
"{}: Number of connection attempts rejected for hitting "
"connection rate limits",
proto))),
sm::make_counter(
"requests_completed",
[this] { return _requests_completed; },
Expand Down

0 comments on commit b1f3372

Please sign in to comment.