diff options
author | David Goulet <dgoulet@torproject.org> | 2022-11-03 12:41:21 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2022-11-07 09:55:06 -0500 |
commit | a0e72fcb976e38de20bf53629c96a489dc626096 (patch) | |
tree | 0a6ea5a886eaca2a4e7de1d85088327a1b759d83 /src/feature/relay/relay_metrics.c | |
parent | c565ef9c58546a815431d575c9ad16fb0bf2dc22 (diff) | |
download | tor-a0e72fcb976e38de20bf53629c96a489dc626096.tar.gz tor-a0e72fcb976e38de20bf53629c96a489dc626096.zip |
metrics: Add running average of CC cwnd when closing circuit
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 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/feature/relay/relay_metrics.c b/src/feature/relay/relay_metrics.c index 1bfbfbd898..c034ca02bd 100644 --- a/src/feature/relay/relay_metrics.c +++ b/src/feature/relay/relay_metrics.c @@ -382,6 +382,16 @@ fill_cc_values(void) metrics_format_label("action", "cwnd")); metrics_store_entry_update(sentry, tor_llround(cc_stats_vegas_exit_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", "on_circ_close")); + metrics_store_entry_add_label(sentry, + metrics_format_label("action", "cwnd")); + metrics_store_entry_update(sentry, + tor_llround(cc_stats_circ_close_cwnd_ma)); } /** Helper: Fill in single stream metrics output. */ |