Specifying: CHIA_EXPORTER_HOSTNAME=10.0.10.3:25166 results in the following error:
time="2023-01-15T15:06:24Z" level=error msg="dial tcp: address 10.0.10.3:25166:55400: too many colons in address"
Ergo, the accessible daemon port is always assumed to be the same as the one the target daemon is listening on, or hardcoded to 55400. In service mesh environments this is a false assumption and most of the time ports are dynamically configured and redirected to the default port, to avoid manual tweaking of configs since there's no flag or env parameter to override the listen port.
I'd recommend either having one option of:
CHIA_EXPORTER_URL that defaults to localhost:55400 or infers the port from the config, which ever fits your design.
CHIA_EXPORTER_HOSTNAME that defaults to localhost and CHIA_EXPORTER_PORT that defaults to 55400 or config inferring, again up to you.
Specifying:
CHIA_EXPORTER_HOSTNAME=10.0.10.3:25166results in the following error:time="2023-01-15T15:06:24Z" level=error msg="dial tcp: address 10.0.10.3:25166:55400: too many colons in address"Ergo, the accessible daemon port is always assumed to be the same as the one the target daemon is listening on, or hardcoded to 55400. In service mesh environments this is a false assumption and most of the time ports are dynamically configured and redirected to the default port, to avoid manual tweaking of configs since there's no flag or env parameter to override the listen port.
I'd recommend either having one option of:
CHIA_EXPORTER_URLthat defaults tolocalhost:55400or infers the port from the config, which ever fits your design.CHIA_EXPORTER_HOSTNAMEthat defaults tolocalhostandCHIA_EXPORTER_PORTthat defaults to55400or config inferring, again up to you.