summaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_metrics_entry.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-10-27 10:43:19 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-10-27 10:43:42 -0400
commit5de66739724451801487dbec0eb210c0595cc00f (patch)
tree80650d93149bbcaed23215ccd25b79b71d44b8db /src/feature/hs/hs_metrics_entry.c
parent238340ce54d1e0b2b7ef593697b971e951d9bd23 (diff)
downloadtor-5de66739724451801487dbec0eb210c0595cc00f.tar.gz
tor-5de66739724451801487dbec0eb210c0595cc00f.zip
metrics: Add tor_ namespace to all metrics
Closes #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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/feature/hs/hs_metrics_entry.c b/src/feature/hs/hs_metrics_entry.c
index e4da0921aa..7eb78db5ac 100644
--- a/src/feature/hs/hs_metrics_entry.c
+++ b/src/feature/hs/hs_metrics_entry.c
@@ -23,40 +23,40 @@ const hs_metrics_entry_t base_metrics[] =
{
.key = HS_METRICS_NUM_INTRODUCTIONS,
.type = METRICS_TYPE_COUNTER,
- .name = "hs_intro_num_total",
+ .name = METRICS_NAME(hs_intro_num_total),
.help = "Total number of introduction received",
.port_as_label = false,
},
{
.key = HS_METRICS_APP_WRITE_BYTES,
.type = METRICS_TYPE_COUNTER,
- .name = "hs_app_write_bytes_total",
+ .name = METRICS_NAME(hs_app_write_bytes_total),
.help = "Total number of bytes written to the application",
.port_as_label = true,
},
{
.key = HS_METRICS_APP_READ_BYTES,
.type = METRICS_TYPE_COUNTER,
- .name = "hs_app_read_bytes_total",
+ .name = METRICS_NAME(hs_app_read_bytes_total),
.help = "Total number of bytes read from the application",
.port_as_label = true,
},
{
.key = HS_METRICS_NUM_ESTABLISHED_RDV,
.type = METRICS_TYPE_GAUGE,
- .name = "hs_rdv_established_count",
+ .name = METRICS_NAME(hs_rdv_established_count),
.help = "Total number of established rendezvous circuit",
},
{
.key = HS_METRICS_NUM_RDV,
.type = METRICS_TYPE_COUNTER,
- .name = "hs_rdv_num_total",
+ .name = 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",
+ .name = METRICS_NAME(hs_intro_established_count),
.help = "Total number of established introduction circuit",
},
};