diff options
author | David Goulet <dgoulet@torproject.org> | 2022-11-03 13:12:47 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2022-11-07 09:55:06 -0500 |
commit | 62ce557b0baaa463c523c71eb640cc4f4cff590f (patch) | |
tree | 5676fc100dd3712037a198f84718af9509ec211e /src/feature/relay/relay_metrics.c | |
parent | a0e72fcb976e38de20bf53629c96a489dc626096 (diff) | |
download | tor-62ce557b0baaa463c523c71eb640cc4f4cff590f.tar.gz tor-62ce557b0baaa463c523c71eb640cc4f4cff590f.zip |
metrics: Add stats when reaching vegas delta or ss_cwnd_max
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 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/feature/relay/relay_metrics.c b/src/feature/relay/relay_metrics.c index c034ca02bd..b95ca4ba06 100644 --- a/src/feature/relay/relay_metrics.c +++ b/src/feature/relay/relay_metrics.c @@ -392,6 +392,22 @@ fill_cc_values(void) metrics_format_label("action", "cwnd")); metrics_store_entry_update(sentry, tor_llround(cc_stats_circ_close_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")); + metrics_store_entry_update(sentry, cc_stats_vegas_above_delta); + + 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_ss_cwnd_max")); + metrics_store_entry_update(sentry, cc_stats_vegas_above_ss_cwnd_max); } /** Helper: Fill in single stream metrics output. */ |