hs: Fix multiple port label on single metric
commitf4aa985cf7b5ee0b617d235d5f121f5a1762aff2
authorDavid Goulet <dgoulet@torproject.org>
Tue, 8 Mar 2022 18:50:34 +0000 (8 13:50 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Tue, 8 Mar 2022 18:50:34 +0000 (8 13:50 -0500)
treec7869192136a8182a541361bc81444135b7ee155
parent1c3cefe2cfcd9320e5be32c9659bd4726b69fa93
hs: Fix multiple port label on single metric

Prometheus needs unique labels and so this bug was causing an onion
service with multiple ports to have multiple "port=" label for the
metrics requiring a port label.

Fixes #40581

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/ticket40581 [new file with mode: 0644]
src/feature/hs/hs_metrics.c