]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
metrics: Treat relay connections as gauge, not counter
authorDavid Goulet <dgoulet@torproject.org>
Thu, 27 Oct 2022 15:35:27 +0000 (11:35 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Thu, 27 Oct 2022 15:37:21 +0000 (11:37 -0400)
Fixes #40699

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/feature/relay/relay_metrics.c

index 814afa60061e0e60e3ccdf113af77a7257e2d07e..392100e4b9fefc312cda7129cd2a79f31a41c88f 100644 (file)
@@ -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,