aboutsummaryrefslogtreecommitdiff
path: root/src/feature/relay/relay_metrics.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2024-01-30 10:13:09 -0500
committerDavid Goulet <dgoulet@torproject.org>2024-01-30 10:13:09 -0500
commit5a5ca444c80ee5ef17a5f0b0d94720e82f51209c (patch)
tree2396d70c3034909832f05ef5c6231055b0c6b88b /src/feature/relay/relay_metrics.h
parent9536c0b0f2e1fb65685471b1728e35ffb61c18f5 (diff)
downloadtor-5a5ca444c80ee5ef17a5f0b0d94720e82f51209c.tar.gz
tor-5a5ca444c80ee5ef17a5f0b0d94720e82f51209c.zip
metrics: Add new relay metrics to MetricsPort
This commit adds the total number of DROP cell seen, the total number of DESTROY cell received and the total number of protocol violation that lead to a circuit close. Closes #40816 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/feature/relay/relay_metrics.h b/src/feature/relay/relay_metrics.h
index cf9dddf955..e7b5b660fa 100644
--- a/src/feature/relay/relay_metrics.h
+++ b/src/feature/relay/relay_metrics.h
@@ -57,6 +57,12 @@ typedef enum {
RELAY_METRICS_NUM_INTRO1_CELLS,
/** Number of times we received a REND1 cell */
RELAY_METRICS_NUM_REND1_CELLS,
+ /** Number of circuit closed by receiving a DESTROY cell. */
+ RELAY_METRICS_CIRC_DESTROY_CELL,
+ /** Number of circuits closed due to protocol violation. */
+ RELAY_METRICS_CIRC_PROTO_VIOLATION,
+ /** Number of drop cell seen. */
+ RELAY_METRICS_CIRC_DROP_CELL,
} relay_metrics_key_t;
/** The metadata of a relay metric. */