diff options
author | David Goulet <dgoulet@torproject.org> | 2022-11-10 07:29:18 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2022-11-10 07:29:18 -0500 |
commit | 2737037ccd8391adcfe18f90d80a64310df88c84 (patch) | |
tree | 5a2ebe000a5405c616dbdb5723490fbd0f5a2008 /src/feature/relay/relay_metrics.h | |
parent | e2a94e050d9e4d4ab654503d8fec49e5d151cdbf (diff) | |
download | tor-2737037ccd8391adcfe18f90d80a64310df88c84.tar.gz tor-2737037ccd8391adcfe18f90d80a64310df88c84.zip |
metrics: Split connections with a counter and gauge
Created and Rejected connections are ever going up counters. While
Opened connections are gauges going up and down.
Fixes #40712
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 | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/feature/relay/relay_metrics.h b/src/feature/relay/relay_metrics.h index 8ac24ebdb4..f9fafd427c 100644 --- a/src/feature/relay/relay_metrics.h +++ b/src/feature/relay/relay_metrics.h @@ -29,20 +29,22 @@ typedef enum { RELAY_METRICS_NUM_DNS_ERRORS = 5, /** Number of TCP exhaustion reached. */ RELAY_METRICS_NUM_TCP_EXHAUSTION = 6, - /** Number of connections. */ - RELAY_METRICS_NUM_CONNECTIONS = 7, + /** Connections counters (always going up). */ + RELAY_METRICS_CONN_COUNTERS = 7, + /** Connections gauges. */ + RELAY_METRICS_CONN_GAUGES = 8, /** Number of streams. */ - RELAY_METRICS_NUM_STREAMS = 8, + RELAY_METRICS_NUM_STREAMS = 9, /** Congestion control counters. */ - RELAY_METRICS_NUM_CC = 9, + RELAY_METRICS_NUM_CC = 10, /** Denial of Service defenses subsystem. */ - RELAY_METRICS_NUM_DOS = 10, + RELAY_METRICS_NUM_DOS = 11, /** Denial of Service defenses subsystem. */ - RELAY_METRICS_NUM_TRAFFIC = 11, + RELAY_METRICS_NUM_TRAFFIC = 12, /** Relay flags. */ - RELAY_METRICS_RELAY_FLAGS = 12, + RELAY_METRICS_RELAY_FLAGS = 13, /** Numer of circuits. */ - RELAY_METRICS_NUM_CIRCUITS = 13, + RELAY_METRICS_NUM_CIRCUITS = 14, } relay_metrics_key_t; /** The metadata of a relay metric. */ |