summaryrefslogtreecommitdiff
path: root/src/feature/relay/relay_metrics.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/relay/relay_metrics.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/relay/relay_metrics.h')
-rw-r--r--src/feature/relay/relay_metrics.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/relay/relay_metrics.h b/src/feature/relay/relay_metrics.h
index fd310ec7ae..0fb7e82fa4 100644
--- a/src/feature/relay/relay_metrics.h
+++ b/src/feature/relay/relay_metrics.h
@@ -21,6 +21,8 @@ typedef enum {
RELAY_METRICS_NUM_ONIONSKINS = 1,
/** Number of sockets. */
RELAY_METRICS_NUM_SOCKETS = 2,
+ /** Number of global connection rate limit. */
+ RELAY_METRICS_NUM_GLOBAL_RW_LIMIT = 3,
} relay_metrics_key_t;
/** The metadata of a relay metric. */