From 897344fddc1ea5ba6dc0db814a703932b05560f4 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Wed, 5 May 2021 14:09:07 -0400 Subject: relay: Add the global connection limit metrics This emits two events (read and write) of the total number that the global connection limit was reached. Related to #40367 Signed-off-by: David Goulet --- src/feature/stats/rephist.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/feature/stats/rephist.h') diff --git a/src/feature/stats/rephist.h b/src/feature/stats/rephist.h index 0bb9dd4678..b54fc77883 100644 --- a/src/feature/stats/rephist.h +++ b/src/feature/stats/rephist.h @@ -162,6 +162,9 @@ void rep_hist_note_overload(overload_type_t overload); char *rep_hist_get_overload_general_line(void); char *rep_hist_get_overload_stats_lines(void); +uint64_t rep_hist_get_n_read_limit_reached(void); +uint64_t rep_hist_get_n_write_limit_reached(void); + #ifdef TOR_UNIT_TESTS struct hs_v2_stats_t; const struct hs_v2_stats_t *rep_hist_get_hs_v2_stats(void); -- cgit v1.2.3-54-g00ecf