diff options
author | Gabriela Moldovan <gabi@torproject.org> | 2023-02-10 12:20:23 +0000 |
---|---|---|
committer | Gabriela Moldovan <gabi@torproject.org> | 2023-02-16 18:54:30 +0000 |
commit | db4c4d656a8d3cc58bd6179c8dedd3f3b5f68dd6 (patch) | |
tree | a972533634b7dc888dafacd1d47026d3663dcf00 /src/feature/hs/hs_metrics_entry.h | |
parent | 482ce87a8de23bf6d29ec55c1c7b9399dbdfac3b (diff) | |
download | tor-db4c4d656a8d3cc58bd6179c8dedd3f3b5f68dd6.tar.gz tor-db4c4d656a8d3cc58bd6179c8dedd3f3b5f68dd6.zip |
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 <gabi@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_metrics_entry.h')
-rw-r--r-- | src/feature/hs/hs_metrics_entry.h | 6 |
1 files changed, 5 insertions, 1 deletions
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. */ |