diff options
author | Mike Perry <mikeperry-git@torproject.org> | 2022-11-03 20:08:01 +0000 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2022-11-07 09:55:06 -0500 |
commit | 2f7e05d89d710f09bff9377edfb6d30e78163084 (patch) | |
tree | fcf05a24986799f073641eaf96101bce7c457ab4 /src/feature | |
parent | 83fdaff7c0920c8943b483e4146d2762b8e6ca94 (diff) | |
download | tor-2f7e05d89d710f09bff9377edfb6d30e78163084.tar.gz tor-2f7e05d89d710f09bff9377edfb6d30e78163084.zip |
metrics: Add stats when the clock stalls.
Part of #40708.
Diffstat (limited to 'src/feature')
-rw-r--r-- | src/feature/relay/relay_metrics.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/feature/relay/relay_metrics.c b/src/feature/relay/relay_metrics.c index 9ceb61836e..af59eb3dcc 100644 --- a/src/feature/relay/relay_metrics.c +++ b/src/feature/relay/relay_metrics.c @@ -376,6 +376,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", "clock_stalls")); + metrics_store_entry_add_label(sentry, + metrics_format_label("action", "rtt_skipped")); + metrics_store_entry_update(sentry, + congestion_control_get_num_clock_stalls()); + + 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", "cwnd")); |