diff options
author | Mike Perry <mikeperry-git@torproject.org> | 2022-12-02 21:50:59 +0000 |
---|---|---|
committer | Mike Perry <mikeperry-git@torproject.org> | 2022-12-02 21:50:59 +0000 |
commit | a51cd9a56971bbee67a3e0c1d34d56aa4689b3f1 (patch) | |
tree | 1720e354a8cdffea2e44f0c8e8bd7d6c9c323f47 /src/feature/relay/relay_metrics.c | |
parent | 4c419183cc4c414ad0ce300c9cd7f6d663106f37 (diff) | |
download | tor-a51cd9a56971bbee67a3e0c1d34d56aa4689b3f1.tar.gz tor-a51cd9a56971bbee67a3e0c1d34d56aa4689b3f1.zip |
Ticket 40724: Add metrics for CC circuit counts
Diffstat (limited to 'src/feature/relay/relay_metrics.c')
-rw-r--r-- | src/feature/relay/relay_metrics.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/feature/relay/relay_metrics.c b/src/feature/relay/relay_metrics.c index f80efe17fe..e18770b4e2 100644 --- a/src/feature/relay/relay_metrics.c +++ b/src/feature/relay/relay_metrics.c @@ -457,6 +457,30 @@ fill_cc_counters_values(void) metrics_store_entry_add_label(sentry, metrics_format_label("action", "below_ss_inc_floor")); metrics_store_entry_update(sentry, cc_stats_vegas_below_ss_inc_floor); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("state", "cc_circuits")); + metrics_store_entry_add_label(sentry, + metrics_format_label("action", "circs_creared")); + metrics_store_entry_update(sentry, cc_stats_circs_created); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("state", "cc_circuits")); + metrics_store_entry_add_label(sentry, + metrics_format_label("action", "circs_closed")); + metrics_store_entry_update(sentry, cc_stats_circs_closed); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("state", "cc_circuits")); + metrics_store_entry_add_label(sentry, + metrics_format_label("action", "circs_exited_ss")); + metrics_store_entry_update(sentry, cc_stats_vegas_circ_exited_ss); } /** Fill function for the RELAY_METRICS_CC_GAUGES metric. */ |