diff options
author | David Goulet <dgoulet@torproject.org> | 2022-10-27 11:35:27 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2022-10-27 11:37:21 -0400 |
commit | 6d40e980fb149549bbef5d9e80dbdf886d87d207 (patch) | |
tree | b67b1d0b721f8497009b6a18f76d0c426217ef8c /src/feature/relay/relay_metrics.c | |
parent | a1c40c8511b841db773e82bd8024ef3581262900 (diff) | |
download | tor-6d40e980fb149549bbef5d9e80dbdf886d87d207.tar.gz tor-6d40e980fb149549bbef5d9e80dbdf886d87d207.zip |
metrics: Treat relay connections as gauge, not counter
Fixes #40699
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/relay/relay_metrics.c')
-rw-r--r-- | src/feature/relay/relay_metrics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/relay/relay_metrics.c b/src/feature/relay/relay_metrics.c index 814afa6006..392100e4b9 100644 --- a/src/feature/relay/relay_metrics.c +++ b/src/feature/relay/relay_metrics.c @@ -94,7 +94,7 @@ static const relay_metrics_entry_t base_metrics[] = }, { .key = RELAY_METRICS_NUM_CONNECTIONS, - .type = METRICS_TYPE_COUNTER, + .type = METRICS_TYPE_GAUGE, .name = METRICS_NAME(relay_connections_total), .help = "Total number of connections", .fill_fn = fill_connections_values, |