Active MetricsPort logs "Address already in use"

Hello, when I activate the "MetricsPort" feature, the Tor log reports that it is going to open the port, then it says "Address already in use". According to "netstat", the address is indeed in use, but by "tor". Sending GET requests to the address returns empty responses. Any ideas? Kind regards, Alexander -- PGP Key: https://dietrich.cx/pgp | 0x52FA4EE1722D54EB

On 19 Mar (21:11:25), Alexander Dietrich wrote:
Hello,
when I activate the "MetricsPort" feature, the Tor log reports that it is going to open the port, then it says "Address already in use". According to "netstat", the address is indeed in use, but by "tor".
Thanks for this report! I'll open a ticket about this "already in use".
Sending GET requests to the address returns empty responses.
You should be able to get the metrics with a GET on /metrics. Let us know if this works for you! David -- IFgD210MlJt+yahijraRB/TGC29Q74yIQ65x9UnKnXs=

David Goulet <dgoulet@torproject.org> hat am 22.03.2021 13:24 geschrieben:
Sending GET requests to the address returns empty responses.
You should be able to get the metrics with a GET on /metrics.
Let us know if this works for you!
The empty 200 response is returned from "/metrics", I guess due to the "address already in use" problem. Requests to "/" return a 404. Kind regards, Alexander

On 23 Mar (23:18:32), Alexander Dietrich wrote:
David Goulet <dgoulet@torproject.org> hat am 22.03.2021 13:24 geschrieben:
Sending GET requests to the address returns empty responses.
You should be able to get the metrics with a GET on /metrics.
Let us know if this works for you!
The empty 200 response is returned from "/metrics", I guess due to the "address already in use" problem. Requests to "/" return a 404.
At the moment, the only metrics exported are those of onion services. We still need to implement exporting relay and client metrics. If you set an onion service, you should get more stuff :) else we have a bug! Cheers! David -- XV9G5n2Z8S7JqTM4GHU9eKrLUI9POwB5m0+OohPUEsM=

David Goulet <dgoulet@torproject.org> hat am 24.03.2021 13:07 geschrieben:
At the moment, the only metrics exported are those of onion services. We still need to implement exporting relay and client metrics.
If you set an onion service, you should get more stuff :) else we have a bug!
I just checked, an instance with an Onion Service does return metrics! Thanks, Alexander
participants (2)
-
Alexander Dietrich
-
David Goulet