diff options
author | Mike Perry <mikeperry-git@torproject.org> | 2022-11-08 17:39:34 +0000 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2022-11-08 12:47:14 -0500 |
commit | 00633bc619046e09536d742e5f862d75c35e476f (patch) | |
tree | b91888bcffe616ed4bd1d947a9fee2f7d55ff08b /src/feature/relay/relay_metrics.c | |
parent | fde87096c35259f9cda42fc5cc812b0bb122a82e (diff) | |
download | tor-00633bc619046e09536d742e5f862d75c35e476f.tar.gz tor-00633bc619046e09536d742e5f862d75c35e476f.zip |
metrics: Report amount of cwnd drop from delta and gamma
Part of #40708.
Diffstat (limited to 'src/feature/relay/relay_metrics.c')
-rw-r--r-- | src/feature/relay/relay_metrics.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/feature/relay/relay_metrics.c b/src/feature/relay/relay_metrics.c index 076ac68618..cd80c5e95e 100644 --- a/src/feature/relay/relay_metrics.c +++ b/src/feature/relay/relay_metrics.c @@ -395,6 +395,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", "slow_start_exit")); + metrics_store_entry_add_label(sentry, + metrics_format_label("action", "gamma_drop")); + metrics_store_entry_update(sentry, + tor_llround(cc_stats_vegas_gamma_drop_ma)); + + 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", "cwnd")); @@ -461,6 +470,15 @@ fill_cc_values(void) metrics_store_entry_add_label(sentry, metrics_format_label("action", "above_ss_cwnd_max")); metrics_store_entry_update(sentry, cc_stats_vegas_above_ss_cwnd_max); + + 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", "delta_drop")); + metrics_store_entry_update(sentry, + tor_llround(cc_stats_vegas_delta_drop_ma)); } /** Helper: Fill in single stream metrics output. */ |