[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor] 08/13: metrics: Treat relay connections as gauge, not counter



This is an automated email from the git hooks/post-receive script.

dgoulet pushed a commit to branch main
in repository tor.

commit 6d40e980fb149549bbef5d9e80dbdf886d87d207
Author: David Goulet <dgoulet@xxxxxxxxxxxxxx>
AuthorDate: Thu Oct 27 11:35:27 2022 -0400

    metrics: Treat relay connections as gauge, not counter
    
    Fixes #40699
    
    Signed-off-by: David Goulet <dgoulet@xxxxxxxxxxxxxx>
---
 src/feature/relay/relay_metrics.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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,

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits