hs: New metrics module
commit50f44afeb4e2222518b64f022ca74f3fa31f8819
authorDavid Goulet <dgoulet@torproject.org>
Tue, 20 Oct 2020 16:48:54 +0000 (20 12:48 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Tue, 27 Oct 2020 14:43:42 +0000 (27 10:43 -0400)
tree25d321a2f876d760798323fa09fdf15fde0eaa22
parent4f5cea1f592d9e9e6c69fc0e772dd46a0fa43799
hs: New metrics module

At this commit, a new service registers to the module and a store is created.
It also remove itself from the metrics module if it goes away.

In order to hook into the metrics subsystem, this commit attaches the HS
subsystem into the subsystem global list so its get_metrics() call can be
accessible.

HS initialization is still _not_ done through the subsys module as it is
likely require much more testing.

Related to #40063

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/app/main/subsystem_list.c
src/feature/hs/hs_metrics.c [new file with mode: 0644]
src/feature/hs/hs_metrics.h [new file with mode: 0644]
src/feature/hs/hs_metrics_entry.c [new file with mode: 0644]
src/feature/hs/hs_metrics_entry.h [new file with mode: 0644]
src/feature/hs/hs_service.c
src/feature/hs/hs_service.h
src/feature/hs/hs_sys.c [new file with mode: 0644]
src/feature/hs/hs_sys.h [new file with mode: 0644]
src/feature/hs/include.am