From db4c4d656a8d3cc58bd6179c8dedd3f3b5f68dd6 Mon Sep 17 00:00:00 2001 From: Gabriela Moldovan Date: Fri, 10 Feb 2023 12:20:23 +0000 Subject: metrics: Add metrics for rendezvous and introduction request failures. This introduces a couple of new service side metrics: * `hs_intro_rejected_intro_req_count`, which counts the number of introduction requests rejected by the hidden service * `hs_rdv_error_count`, which counts the number of rendezvous errors as seen by the hidden service (this number includes the number of circuit establishment failures, failed retries, end-to-end circuit setup failures) Closes #40755. This partially addresses #40717. Signed-off-by: Gabriela Moldovan --- src/feature/hs/hs_metrics_entry.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/feature/hs/hs_metrics_entry.h') diff --git a/src/feature/hs/hs_metrics_entry.h b/src/feature/hs/hs_metrics_entry.h index b9786ac6f7..2f732aa614 100644 --- a/src/feature/hs/hs_metrics_entry.h +++ b/src/feature/hs/hs_metrics_entry.h @@ -25,8 +25,12 @@ typedef enum { HS_METRICS_NUM_ESTABLISHED_RDV = 3, /** Number of rendezsvous circuits created. */ HS_METRICS_NUM_RDV = 4, + /** Number of failed rendezsvous. */ + HS_METRICS_NUM_FAILED_RDV = 5, /** Number of established introducton points. */ - HS_METRICS_NUM_ESTABLISHED_INTRO = 5, + HS_METRICS_NUM_ESTABLISHED_INTRO = 6, + /** Number of rejected introducton requests. */ + HS_METRICS_NUM_REJECTED_INTRO_REQ = 7, } hs_metrics_key_t; /** The metadata of an HS metrics. */ -- cgit v1.2.3-54-g00ecf