aboutsummaryrefslogtreecommitdiff
path: root/src/feature/stats/rephist.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-05-05 14:09:07 -0400
committerDavid Goulet <dgoulet@torproject.org>2021-05-12 11:58:25 -0400
commit897344fddc1ea5ba6dc0db814a703932b05560f4 (patch)
tree5906976057f27d2be9d496493c20e63ebd20ad12 /src/feature/stats/rephist.h
parent9040a5475ddaee4a244ae9e03f4597a75f86d9be (diff)
downloadtor-897344fddc1ea5ba6dc0db814a703932b05560f4.tar.gz
tor-897344fddc1ea5ba6dc0db814a703932b05560f4.zip
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 <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/stats/rephist.h')
-rw-r--r--src/feature/stats/rephist.h3
1 files changed, 3 insertions, 0 deletions
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);