9 #define HS_METRICS_ENTRY_PRIVATE
22 static const int64_t hs_metrics_circ_build_time_buckets[] =
31 static const size_t hs_metrics_circ_build_time_buckets_size =
41 .key = HS_METRICS_NUM_INTRODUCTIONS,
42 .type = METRICS_TYPE_COUNTER,
43 .name = METRICS_NAME(hs_intro_num_total),
44 .help =
"Total number of introduction received",
45 .port_as_label =
false,
48 .key = HS_METRICS_APP_WRITE_BYTES,
49 .type = METRICS_TYPE_COUNTER,
50 .name = METRICS_NAME(hs_app_write_bytes_total),
51 .help =
"Total number of bytes written to the application",
52 .port_as_label =
true,
55 .key = HS_METRICS_APP_READ_BYTES,
56 .type = METRICS_TYPE_COUNTER,
57 .name = METRICS_NAME(hs_app_read_bytes_total),
58 .help =
"Total number of bytes read from the application",
59 .port_as_label =
true,
62 .key = HS_METRICS_NUM_ESTABLISHED_RDV,
63 .type = METRICS_TYPE_GAUGE,
64 .name = METRICS_NAME(hs_rdv_established_count),
65 .help =
"Total number of established rendezvous circuits",
68 .key = HS_METRICS_NUM_RDV,
69 .type = METRICS_TYPE_COUNTER,
70 .name = METRICS_NAME(hs_rdv_num_total),
71 .help =
"Total number of rendezvous circuits created",
74 .key = HS_METRICS_NUM_FAILED_RDV,
75 .type = METRICS_TYPE_COUNTER,
76 .name = METRICS_NAME(hs_rdv_error_count),
77 .help =
"Total number of rendezvous circuit errors",
80 .key = HS_METRICS_NUM_ESTABLISHED_INTRO,
81 .type = METRICS_TYPE_GAUGE,
82 .name = METRICS_NAME(hs_intro_established_count),
83 .help =
"Total number of established introduction circuit",
86 .key = HS_METRICS_NUM_REJECTED_INTRO_REQ,
87 .type = METRICS_TYPE_COUNTER,
88 .name = METRICS_NAME(hs_intro_rejected_intro_req_count),
89 .help =
"Total number of rejected introduction circuits",
92 .key = HS_METRICS_INTRO_CIRC_BUILD_TIME,
93 .type = METRICS_TYPE_HISTOGRAM,
94 .name = METRICS_NAME(hs_intro_circ_build_time),
95 .buckets = hs_metrics_circ_build_time_buckets,
96 .bucket_count = hs_metrics_circ_build_time_buckets_size,
97 .help =
"The introduction circuit build time in milliseconds",
100 .key = HS_METRICS_REND_CIRC_BUILD_TIME,
101 .type = METRICS_TYPE_HISTOGRAM,
102 .name = METRICS_NAME(hs_rend_circ_build_time),
103 .buckets = hs_metrics_circ_build_time_buckets,
104 .bucket_count = hs_metrics_circ_build_time_buckets_size,
105 .help =
"The rendezvous circuit build time in milliseconds",
116 HS_METRICS_ERR_INTRO_REQ_BAD_AUTH_KEY,
117 HS_METRICS_ERR_INTRO_REQ_INTRODUCE2,
118 HS_METRICS_ERR_INTRO_REQ_SUBCREDENTIAL,
119 HS_METRICS_ERR_INTRO_REQ_INTRODUCE2_REPLAY,
129 HS_METRICS_ERR_RDV_RP_CONN_FAILURE,
130 HS_METRICS_ERR_RDV_PATH,
131 HS_METRICS_ERR_RDV_RENDEZVOUS1,
132 HS_METRICS_ERR_RDV_E2E,
133 HS_METRICS_ERR_RDV_RETRY,
Utility macros to handle different features and behavior in different compilers.
const char * hs_metrics_rend_error_reasons[]
const hs_metrics_entry_t base_metrics[]
const size_t hs_metrics_intro_req_error_reasons_size
const size_t base_metrics_size
const char * hs_metrics_intro_req_error_reasons[]
const size_t hs_metrics_rend_error_reasons_size
Header for feature/hs/hs_metrics_entry.c.
Macros to manage assertions, fatal and non-fatal.