metrics: Treat relay connections as gauge, not counter

Fixes #40699

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
David Goulet
2022-10-27 11:35:27 -04:00
parent a1c40c8511
commit 6d40e980fb
+1 -1
View 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,