Skip to content

FR: Override expected daemon port #63

@jinnatar

Description

@jinnatar

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:

  1. CHIA_EXPORTER_URL that defaults to localhost:55400 or infers the port from the config, which ever fits your design.
  2. CHIA_EXPORTER_HOSTNAME that defaults to localhost and CHIA_EXPORTER_PORT that defaults to 55400 or config inferring, again up to you.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions