diff options
author | Mike Perry <mikeperry-git@torproject.org> | 2022-11-03 19:48:16 +0000 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2022-11-07 09:55:06 -0500 |
commit | 83fdaff7c0920c8943b483e4146d2762b8e6ca94 (patch) | |
tree | cd17b679458fd41b6d625cdcc363ca7373848a7e /src/feature/relay/relay_metrics.c | |
parent | f270d20cb0a29ffb3e33434f353cbf315a4d1a52 (diff) | |
download | tor-83fdaff7c0920c8943b483e4146d2762b8e6ca94.tar.gz tor-83fdaff7c0920c8943b483e4146d2762b8e6ca94.zip |
metrics: Add running average of CC cwnd in slow start when closing circuit
Count slow start separately.
Part of #40708
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 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/feature/relay/relay_metrics.c b/src/feature/relay/relay_metrics.c index b95ca4ba06..9ceb61836e 100644 --- a/src/feature/relay/relay_metrics.c +++ b/src/feature/relay/relay_metrics.c @@ -375,7 +375,6 @@ fill_cc_values(void) sentry = metrics_store_add(the_store, rentry->type, rentry->name, rentry->help); - metrics_store_entry_add_label(sentry, metrics_format_label("state", "slow_start_exit")); metrics_store_entry_add_label(sentry, @@ -385,7 +384,6 @@ fill_cc_values(void) sentry = metrics_store_add(the_store, rentry->type, rentry->name, rentry->help); - metrics_store_entry_add_label(sentry, metrics_format_label("state", "on_circ_close")); metrics_store_entry_add_label(sentry, @@ -396,6 +394,15 @@ fill_cc_values(void) sentry = metrics_store_add(the_store, rentry->type, rentry->name, rentry->help); metrics_store_entry_add_label(sentry, + metrics_format_label("state", "on_circ_close")); + metrics_store_entry_add_label(sentry, + metrics_format_label("action", "ss_cwnd")); + metrics_store_entry_update(sentry, + tor_llround(cc_stats_circ_close_ss_cwnd_ma)); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, metrics_format_label("state", "process_sendme")); metrics_store_entry_add_label(sentry, metrics_format_label("action", "above_delta")); |