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>
This commit is contained in:
David Goulet
2022-03-08 13:50:34 -05:00
parent 92b4e4d041
commit 9efb04bb3e
2 changed files with 19 additions and 8 deletions
+4
View File
@@ -0,0 +1,4 @@
o Minor bugfixes (metrics port, onion service):
- Fix the metrics with a port label to be unique. Before this, all ports of
an onion service would be on the same line which violates the Prometheus
rules of unique labels. Fixes bug 40581; bugfix on 0.4.5.1-alpha.