On 23 Jan (11:36:05), Fran via tor-relays wrote:
Hej,
taking another look and comparing it to onion_services exporter there is a slight difference in the metrics output.
prometheus-onion-service-exporter:
onion_service_up{address="foobar:587",name="mail_v3_587",type="tcp"} 1
vs output from tor:
tor_hs_app_write_bytes_total{onion=foobar,port=80} 298891
Ah wow... you are indeed right.
I had problems recently with an exporter I made for something unrelated that was not exporting labels as quoted strings...
I have opened a ticket:
https://gitlab.torproject.org/tpo/core/tor/-/issues/40552
Thanks for reporting and investigating!! :)
Cheers! David