summaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_metrics_entry.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-10-20 15:05:06 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-10-27 10:43:42 -0400
commit97731196c4141093f96b632ce38f440fec8db831 (patch)
tree83ef95e306fbbdf1070e08579b2775140407c5e6 /src/feature/hs/hs_metrics_entry.c
parentc081bee38a428dda2bd9ee043f7cbab3cbd77393 (diff)
downloadtor-97731196c4141093f96b632ce38f440fec8db831.tar.gz
tor-97731196c4141093f96b632ce38f440fec8db831.zip
hs: Collect introduction circuit metrics
Tracks the total number of established introduction circuit. Related to #40063 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_metrics_entry.c')
-rw-r--r--src/feature/hs/hs_metrics_entry.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/feature/hs/hs_metrics_entry.c b/src/feature/hs/hs_metrics_entry.c
index 78f5253327..e4da0921aa 100644
--- a/src/feature/hs/hs_metrics_entry.c
+++ b/src/feature/hs/hs_metrics_entry.c
@@ -53,6 +53,12 @@ const hs_metrics_entry_t base_metrics[] =
.name = "hs_rdv_num_total",
.help = "Total number of rendezvous circuit created",
},
+ {
+ .key = HS_METRICS_NUM_ESTABLISHED_INTRO,
+ .type = METRICS_TYPE_GAUGE,
+ .name = "hs_intro_established_count",
+ .help = "Total number of established introduction circuit",
+ },
};
/** Size of base_metrics array that is number of entries. */