relay: Add number of open and max sockets metrics
commit9040a5475ddaee4a244ae9e03f4597a75f86d9be
authorDavid Goulet <dgoulet@torproject.org>
Wed, 5 May 2021 17:57:19 +0000 (5 13:57 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Wed, 12 May 2021 15:58:25 +0000 (12 11:58 -0400)
treed82460f9fea1540ef9980ecec8bd09703cb68a1e
parent8bb1874f1e80f10c1f222db52471a458c4d6d5bc
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>
src/feature/relay/relay_metrics.c
src/feature/relay/relay_metrics.h