aboutsummaryrefslogtreecommitdiff
path: root/src/feature/stats/rephist.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-05-06 11:17:26 -0400
committerDavid Goulet <dgoulet@torproject.org>2021-05-12 11:58:25 -0400
commit22861c2f4083e7e29a732a4907c2dcadd6a6a4db (patch)
tree09b188e0d1e4b97322f9601fc2dee18fab7ca0b2 /src/feature/stats/rephist.h
parentc6f41d6038752d847b2c60cf6dfd7fbcb163c345 (diff)
downloadtor-22861c2f4083e7e29a732a4907c2dcadd6a6a4db.tar.gz
tor-22861c2f4083e7e29a732a4907c2dcadd6a6a4db.zip
relay: Add TCP port exhaustion metrics
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 9d2e457b4b..ca305dfd8d 100644
--- a/src/feature/stats/rephist.h
+++ b/src/feature/stats/rephist.h
@@ -167,6 +167,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);
+void rep_hist_note_tcp_exhaustion(void);
+uint64_t rep_hist_get_n_tcp_exhaustion(void);
+
uint64_t rep_hist_get_n_read_limit_reached(void);
uint64_t rep_hist_get_n_write_limit_reached(void);