diff options
author | David Goulet <dgoulet@torproject.org> | 2021-05-05 13:57:19 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-05-12 11:58:25 -0400 |
commit | 9040a5475ddaee4a244ae9e03f4597a75f86d9be (patch) | |
tree | d82460f9fea1540ef9980ecec8bd09703cb68a1e /src/feature/relay/relay_metrics.h | |
parent | 8bb1874f1e80f10c1f222db52471a458c4d6d5bc (diff) | |
download | tor-9040a5475ddaee4a244ae9e03f4597a75f86d9be.tar.gz tor-9040a5475ddaee4a244ae9e03f4597a75f86d9be.zip |
relay: Add number of open and max sockets metrics
With this commit, a relay will emit metrics that give the total number
of sockets and total number of opened sockets.
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 6868bd26df..fd310ec7ae 100644 --- a/src/feature/relay/relay_metrics.h +++ b/src/feature/relay/relay_metrics.h @@ -19,6 +19,8 @@ typedef enum { RELAY_METRICS_NUM_OOM_BYTES = 0, /** Number of onionskines handled. */ RELAY_METRICS_NUM_ONIONSKINS = 1, + /** Number of sockets. */ + RELAY_METRICS_NUM_SOCKETS = 2, } relay_metrics_key_t; /** The metadata of a relay metric. */ |