aboutsummaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_metrics_entry.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-10-20 14:47:05 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-10-27 10:43:42 -0400
commit2fe0322fe4550e59cb8757fbff6984286bf8e121 (patch)
treeaba4c9b3857465aa1a6d5adb52513a567ffe6d5a /src/feature/hs/hs_metrics_entry.c
parent695957511b95d5b6cbe4a13d30b591aed572c9e5 (diff)
downloadtor-2fe0322fe4550e59cb8757fbff6984286bf8e121.tar.gz
tor-2fe0322fe4550e59cb8757fbff6984286bf8e121.zip
hs: Collect service traffic metrics
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.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/feature/hs/hs_metrics_entry.c b/src/feature/hs/hs_metrics_entry.c
index d6b2e0e62b..6d0a143503 100644
--- a/src/feature/hs/hs_metrics_entry.c
+++ b/src/feature/hs/hs_metrics_entry.c
@@ -27,6 +27,20 @@ const hs_metrics_entry_t base_metrics[] =
.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",
+ .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",
+ .help = "Total number of bytes read from the application",
+ .port_as_label = true,
+ },
};
/** Size of base_metrics array that is number of entries. */