diff options
author | David Goulet <dgoulet@torproject.org> | 2021-05-05 14:09:07 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-05-12 11:58:25 -0400 |
commit | 897344fddc1ea5ba6dc0db814a703932b05560f4 (patch) | |
tree | 5906976057f27d2be9d496493c20e63ebd20ad12 /src/feature/relay/relay_metrics.h | |
parent | 9040a5475ddaee4a244ae9e03f4597a75f86d9be (diff) | |
download | tor-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.h | 2 |
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. */ |