diff options
author | Mike Perry <mikeperry-git@torproject.org> | 2022-11-08 18:25:07 +0000 |
---|---|---|
committer | Mike Perry <mikeperry-git@torproject.org> | 2022-11-08 18:25:07 +0000 |
commit | 59bef48490e4191be978aa023f05242f889be720 (patch) | |
tree | 027665393823f57be3a59479e6f363e648bdf451 /src/feature | |
parent | 00633bc619046e09536d742e5f862d75c35e476f (diff) | |
download | tor-59bef48490e4191be978aa023f05242f889be720.tar.gz tor-59bef48490e4191be978aa023f05242f889be720.zip |
metrics: Record percentage of blocked channels
Part of #40708.
Diffstat (limited to 'src/feature')
-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 cd80c5e95e..ca8fbe706d 100644 --- a/src/feature/relay/relay_metrics.c +++ b/src/feature/relay/relay_metrics.c @@ -404,6 +404,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", "chan_blocked_pct")); + metrics_store_entry_update(sentry, + tor_llround(cc_stats_vegas_ss_csig_blocked_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")); @@ -479,6 +488,15 @@ fill_cc_values(void) metrics_format_label("action", "delta_drop")); metrics_store_entry_update(sentry, tor_llround(cc_stats_vegas_delta_drop_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", "chan_blocked_pct")); + metrics_store_entry_update(sentry, + tor_llround(cc_stats_vegas_csig_blocked_ma)); } /** Helper: Fill in single stream metrics output. */ |